diff --git a/functions/Person.v1.get.html b/functions/Person.v1.get.html index ecde02f..0b9d313 100644 --- a/functions/Person.v1.get.html +++ b/functions/Person.v1.get.html @@ -2,4 +2,4 @@

Error if the provided context or qualifier is invalid

+
diff --git a/functions/Person.v1.getWithLineage.html b/functions/Person.v1.getWithLineage.html index b6caab6..6735c9f 100644 --- a/functions/Person.v1.getWithLineage.html +++ b/functions/Person.v1.getWithLineage.html @@ -2,4 +2,4 @@

Error if the provided context or qualifier is invalid

+
diff --git a/functions/Place.v1.get.html b/functions/Place.v1.get.html index 19b97fe..6e5f089 100644 --- a/functions/Place.v1.get.html +++ b/functions/Place.v1.get.html @@ -2,4 +2,4 @@

Error if the provided context or qualifier is invalid

+
diff --git a/functions/Place.v1.getWithLineage.html b/functions/Place.v1.getWithLineage.html index 3abc30e..085f02e 100644 --- a/functions/Place.v1.getWithLineage.html +++ b/functions/Place.v1.getWithLineage.html @@ -2,4 +2,4 @@

Error if the provided context or qualifier is invalid

+
diff --git a/functions/Qualifier.byUuid.html b/functions/Qualifier.byUuid.html index 7b763f6..c111c0e 100644 --- a/functions/Qualifier.byUuid.html +++ b/functions/Qualifier.byUuid.html @@ -2,4 +2,4 @@

Error if the UUID is invalid

+
diff --git a/functions/Qualifier.isUuidQualifier.html b/functions/Qualifier.isUuidQualifier.html index f31f8d8..3e7855b 100644 --- a/functions/Qualifier.isUuidQualifier.html +++ b/functions/Qualifier.isUuidQualifier.html @@ -2,4 +2,4 @@
+
diff --git a/functions/getDatasource.html b/functions/getDatasource.html index a8a0aaf..7aae4c1 100644 --- a/functions/getDatasource.html +++ b/functions/getDatasource.html @@ -26,4 +26,4 @@

Error if no UUID is provided

+
diff --git a/functions/getLocalDataContext.html b/functions/getLocalDataContext.html index 8f9758d..08f97ad 100644 --- a/functions/getLocalDataContext.html +++ b/functions/getLocalDataContext.html @@ -4,4 +4,4 @@
+
diff --git a/functions/getRemoteDataContext.html b/functions/getRemoteDataContext.html index 49bc82f..62060df 100644 --- a/functions/getRemoteDataContext.html +++ b/functions/getRemoteDataContext.html @@ -3,4 +3,4 @@
+
diff --git a/interfaces/DataContext.html b/interfaces/DataContext.html index ca1601c..c8dc83d 100644 --- a/interfaces/DataContext.html +++ b/interfaces/DataContext.html @@ -1,8 +1,8 @@ DataContext | @medic/cht-datasource

Context for interacting with the data. This may represent a local data context where data can be accessed even while offline. Or it may represent a remote data context where all data operations are performed against a remote CHT instance.

-
interface DataContext {
    bind: (<T>(fn: ((ctx: DataContext) => T)) => T);
}

Properties

interface DataContext {
    bind: (<T>(fn: ((ctx: DataContext) => T)) => T);
}

Properties

Properties

bind: (<T>(fn: ((ctx: DataContext) => T)) => T)

Executes the provided function with this data context as the argument.

Type declaration

    • <T>(fn): T
    • Type Parameters

      • T

      Parameters

      Returns T

      the result of the function

      -
+
diff --git a/interfaces/Person.v1.Person.html b/interfaces/Person.v1.Person.html index 193a8e1..215bc50 100644 --- a/interfaces/Person.v1.Person.html +++ b/interfaces/Person.v1.Person.html @@ -1,5 +1,5 @@ Person | @medic/cht-datasource

Immutable data about a person contact.

-
interface Person {
    _id: string;
    _rev: string;
    contact_type?: string;
    date_of_birth?: Date;
    name?: string;
    parent?: NormalizedParent;
    patient_id?: string;
    phone?: string;
    reported_date?: Date;
    sex?: string;
    type: string;
}

Hierarchy (view full)

Properties

_id +
interface Person {
    _id: string;
    _rev: string;
    contact_type?: string;
    date_of_birth?: Date;
    name?: string;
    parent?: NormalizedParent;
    patient_id?: string;
    phone?: string;
    reported_date?: Date;
    sex?: string;
    type: string;
}

Hierarchy (view full)

Properties

_id: string
_rev: string
contact_type?: string
date_of_birth?: Date
name?: string
parent?: NormalizedParent
patient_id?: string
phone?: string
reported_date?: Date
sex?: string
type: string
+

Properties

_id: string
_rev: string
contact_type?: string
date_of_birth?: Date
name?: string
parent?: NormalizedParent
patient_id?: string
phone?: string
reported_date?: Date
sex?: string
type: string
diff --git a/interfaces/Person.v1.PersonWithLineage.html b/interfaces/Person.v1.PersonWithLineage.html index 1c19ee3..dbf3062 100644 --- a/interfaces/Person.v1.PersonWithLineage.html +++ b/interfaces/Person.v1.PersonWithLineage.html @@ -1,5 +1,5 @@ PersonWithLineage | @medic/cht-datasource

Immutable data about a person contact, including the full records of the parent place lineage.

-
interface PersonWithLineage {
    _id: string;
    _rev: string;
    contact_type?: string;
    date_of_birth?: Date;
    name?: string;
    parent?: NormalizedParent | PlaceWithLineage;
    patient_id?: string;
    phone?: string;
    reported_date?: Date;
    sex?: string;
    type: string;
}

Hierarchy (view full)

Properties

_id +
interface PersonWithLineage {
    _id: string;
    _rev: string;
    contact_type?: string;
    date_of_birth?: Date;
    name?: string;
    parent?: NormalizedParent | PlaceWithLineage;
    patient_id?: string;
    phone?: string;
    reported_date?: Date;
    sex?: string;
    type: string;
}

Hierarchy (view full)

Properties

_id: string
_rev: string
contact_type?: string
date_of_birth?: Date
name?: string
parent?: NormalizedParent | PlaceWithLineage
patient_id?: string
phone?: string
reported_date?: Date
sex?: string
type: string
+

Properties

_id: string
_rev: string
contact_type?: string
date_of_birth?: Date
name?: string
parent?: NormalizedParent | PlaceWithLineage
patient_id?: string
phone?: string
reported_date?: Date
sex?: string
type: string
diff --git a/interfaces/Place.v1.Place.html b/interfaces/Place.v1.Place.html index 24667e7..d991595 100644 --- a/interfaces/Place.v1.Place.html +++ b/interfaces/Place.v1.Place.html @@ -1,5 +1,5 @@ Place | @medic/cht-datasource

Immutable data about a place contact.

-
interface Place {
    _id: string;
    _rev: string;
    contact?: NormalizedParent;
    contact_type?: string;
    name?: string;
    parent?: NormalizedParent;
    place_id?: string;
    reported_date?: Date;
    type: string;
}

Hierarchy (view full)

Properties

_id +
interface Place {
    _id: string;
    _rev: string;
    contact?: NormalizedParent;
    contact_type?: string;
    name?: string;
    parent?: NormalizedParent;
    place_id?: string;
    reported_date?: Date;
    type: string;
}

Hierarchy (view full)

Properties

_id: string
_rev: string
contact?: NormalizedParent
contact_type?: string
name?: string
parent?: NormalizedParent
place_id?: string
reported_date?: Date
type: string
+

Properties

_id: string
_rev: string
contact?: NormalizedParent
contact_type?: string
name?: string
parent?: NormalizedParent
place_id?: string
reported_date?: Date
type: string
diff --git a/interfaces/Place.v1.PlaceWithLineage.html b/interfaces/Place.v1.PlaceWithLineage.html index 33ddcfe..2117dbf 100644 --- a/interfaces/Place.v1.PlaceWithLineage.html +++ b/interfaces/Place.v1.PlaceWithLineage.html @@ -1,6 +1,6 @@ PlaceWithLineage | @medic/cht-datasource

Immutable data about a place contact, including the full records of the parent place lineage and the primary contact for the place.

-
interface PlaceWithLineage {
    _id: string;
    _rev: string;
    contact?: NormalizedParent | PersonWithLineage;
    contact_type?: string;
    name?: string;
    parent?: NormalizedParent | PlaceWithLineage;
    place_id?: string;
    reported_date?: Date;
    type: string;
}

Hierarchy (view full)

Properties

_id +
interface PlaceWithLineage {
    _id: string;
    _rev: string;
    contact?: NormalizedParent | PersonWithLineage;
    contact_type?: string;
    name?: string;
    parent?: NormalizedParent | PlaceWithLineage;
    place_id?: string;
    reported_date?: Date;
    type: string;
}

Hierarchy (view full)

Properties

_id: string
_rev: string
contact?: NormalizedParent | PersonWithLineage
contact_type?: string
name?: string
parent?: NormalizedParent | PlaceWithLineage
place_id?: string
reported_date?: Date
type: string
+

Properties

_id: string
_rev: string
contact?: NormalizedParent | PersonWithLineage
contact_type?: string
name?: string
parent?: NormalizedParent | PlaceWithLineage
place_id?: string
reported_date?: Date
type: string
diff --git a/modules/Person.html b/modules/Person.html index 83edf71..c784a97 100644 --- a/modules/Person.html +++ b/modules/Person.html @@ -1,2 +1,2 @@ -Person | @medic/cht-datasource

Index

Namespaces

v1 +Person | @medic/cht-datasource

Index

Namespaces

diff --git a/modules/Person.v1.html b/modules/Person.v1.html index bc5269d..1137947 100644 --- a/modules/Person.v1.html +++ b/modules/Person.v1.html @@ -1,4 +1,4 @@ -v1 | @medic/cht-datasource

Index

Interfaces

Person +v1 | @medic/cht-datasource

Index

Interfaces

Functions

get getWithLineage diff --git a/modules/Place.html b/modules/Place.html index f9c4496..5c58104 100644 --- a/modules/Place.html +++ b/modules/Place.html @@ -1,2 +1,2 @@ -Place | @medic/cht-datasource

Index

Namespaces

v1 +Place | @medic/cht-datasource

Index

Namespaces

diff --git a/modules/Place.v1.html b/modules/Place.v1.html index aa3073d..e05aab7 100644 --- a/modules/Place.v1.html +++ b/modules/Place.v1.html @@ -1,4 +1,4 @@ -v1 | @medic/cht-datasource

Index

Interfaces

Place +v1 | @medic/cht-datasource

Index

Interfaces

Functions

get getWithLineage diff --git a/modules/Qualifier.html b/modules/Qualifier.html index e9c1f12..e8613d7 100644 --- a/modules/Qualifier.html +++ b/modules/Qualifier.html @@ -1,4 +1,4 @@ -Qualifier | @medic/cht-datasource

Index

Type Aliases

UuidQualifier +Qualifier | @medic/cht-datasource

Index

Type Aliases

Functions

diff --git a/types/NonEmptyArray.html b/types/NonEmptyArray.html index 1dab9ab..62dfee6 100644 --- a/types/NonEmptyArray.html +++ b/types/NonEmptyArray.html @@ -1,2 +1,2 @@ NonEmptyArray | @medic/cht-datasource

Type Alias NonEmptyArray<T>

NonEmptyArray<T>: [T, ...T[]]

An array that is guaranteed to have at least one element.

-

Type Parameters

  • T
+

Type Parameters

  • T
diff --git a/types/Nullable.html b/types/Nullable.html index c0029c9..d6bb686 100644 --- a/types/Nullable.html +++ b/types/Nullable.html @@ -1,2 +1,2 @@ Nullable | @medic/cht-datasource

Type Alias Nullable<T>

Nullable<T>: T | null

A value that could be null.

-

Type Parameters

  • T
+

Type Parameters

  • T
diff --git a/types/Qualifier.UuidQualifier.html b/types/Qualifier.UuidQualifier.html index 037a98f..8a99e81 100644 --- a/types/Qualifier.UuidQualifier.html +++ b/types/Qualifier.UuidQualifier.html @@ -1,2 +1,2 @@ UuidQualifier | @medic/cht-datasource
UuidQualifier: Readonly<{
    uuid: string;
}>

A qualifier that identifies an entity by its UUID.

-
+