@icanbwell/bwell-sdk-ts 2.0.0-alpha.0-rc.1758310056 → 2.0.0-alpha.0-rc.1758316655
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__version__.d.ts +1 -1
- package/dist/__version__.js +1 -1
- package/dist/api/base/health-data/health-manager.d.ts +14 -1
- package/dist/api/graphql-api/healthdata/graphql-health-manager.d.ts +2 -1
- package/dist/api/graphql-api/healthdata/graphql-health-manager.js +20 -0
- package/dist/graphql/operations/index.d.ts +21 -14
- package/dist/graphql/operations/index.js +164 -210
- package/dist/graphql/operations/types.d.ts +222 -373
- package/dist/models/common/index.d.ts +2 -0
- package/dist/models/common/location.d.ts +0 -2
- package/dist/models/common/organization.d.ts +1 -7
- package/dist/models/common/practitioner-role.d.ts +42 -0
- package/dist/models/common/practitioner-role.js +1 -0
- package/dist/models/common/related-person.d.ts +34 -0
- package/dist/models/common/related-person.js +1 -0
- package/dist/models/health-data/care-team.d.ts +61 -0
- package/dist/models/health-data/care-team.js +1 -0
- package/dist/models/health-data/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -29,3 +29,5 @@ export type { Specimen } from "./specimen.js";
|
|
|
29
29
|
export type { ServiceRequest } from "./service-request.js";
|
|
30
30
|
export type { Practitioner } from "./practitioner.js";
|
|
31
31
|
export type { Patient } from "./patient.js";
|
|
32
|
+
export type { PractitionerRole } from "./practitioner-role.js";
|
|
33
|
+
export type { RelatedPerson } from "./related-person.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Endpoint } from "./endpoint.js";
|
|
2
|
-
import { Address,
|
|
2
|
+
import { Address, ContactPoint, Identifier, Reference } from "./index.js";
|
|
3
3
|
/**
|
|
4
4
|
* Represents a healthcare organization.
|
|
5
5
|
*
|
|
@@ -20,12 +20,6 @@ export type Organization = {
|
|
|
20
20
|
address: (Address | null)[] | null;
|
|
21
21
|
/** Contact information */
|
|
22
22
|
telecom: (ContactPoint | null)[] | null;
|
|
23
|
-
/** Active status of the organization */
|
|
24
|
-
active: boolean | null;
|
|
25
|
-
/** The unique identifier for the organization resource */
|
|
26
|
-
id: string | null;
|
|
27
|
-
/** The type of the organization */
|
|
28
|
-
type: Array<CodeableConcept | null> | null;
|
|
29
23
|
};
|
|
30
24
|
/**
|
|
31
25
|
* Represents a healthcare organization.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { CodeableConcept } from "./codeable-concept.js";
|
|
2
|
+
import { ContactPoint } from "./contact-point.js";
|
|
3
|
+
import { Endpoint } from "./endpoint.js";
|
|
4
|
+
import { Identifier } from "./identifier.js";
|
|
5
|
+
import { Location } from "./location.js";
|
|
6
|
+
import { Organization } from "./organization.js";
|
|
7
|
+
import { Period } from "./period.js";
|
|
8
|
+
import { Practitioner } from "./practitioner.js";
|
|
9
|
+
import { Reference } from "./reference.js";
|
|
10
|
+
/**
|
|
11
|
+
* The types of services that may be provided by a practitioner for a organization.
|
|
12
|
+
*
|
|
13
|
+
* @category Models
|
|
14
|
+
* @title PractitionerRole
|
|
15
|
+
* @excerpt The types of services that may be provided by a practitioner for a organization.
|
|
16
|
+
*/
|
|
17
|
+
export type PractitionerRole = {
|
|
18
|
+
/** The type of resource, always "PractitionerRole". */
|
|
19
|
+
resourceType: "PractitionerRole";
|
|
20
|
+
/** Logical id of the practitioner role resource. */
|
|
21
|
+
id: string | null;
|
|
22
|
+
/** Business identifiers for the practitioner role. */
|
|
23
|
+
identifier: (Identifier | null)[] | null;
|
|
24
|
+
/** Reference to the practitioner who is performing the role. */
|
|
25
|
+
practitioner: Reference<Practitioner> | null;
|
|
26
|
+
/** Reference to the organization where the practitioner is performing the role. */
|
|
27
|
+
organization: Reference<Organization> | null;
|
|
28
|
+
/** Roles which this practitioner is authorized to perform (e.g., doctor, nurse). */
|
|
29
|
+
code: (CodeableConcept | null)[] | null;
|
|
30
|
+
/** Specific specialties practiced by the practitioner in this role. */
|
|
31
|
+
specialty: (CodeableConcept | null)[] | null;
|
|
32
|
+
/** Locations where the practitioner provides care. */
|
|
33
|
+
location: (Reference<Location> | null)[] | null;
|
|
34
|
+
/** Contact details for the practitioner relevant to this role. */
|
|
35
|
+
telecom: (ContactPoint | null)[] | null;
|
|
36
|
+
/** Whether this practitioner role record is in active use. */
|
|
37
|
+
active: boolean | null;
|
|
38
|
+
/** Endpoints associated with the practitioner for this role. */
|
|
39
|
+
endpoint: (Reference<Endpoint> | null)[] | null;
|
|
40
|
+
/** The period during which the practitioner is authorized to perform the role. */
|
|
41
|
+
period: Period | null;
|
|
42
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Address } from "./address.js";
|
|
2
|
+
import { CodeableConcept } from "./codeable-concept.js";
|
|
3
|
+
import { ContactPoint } from "./contact-point.js";
|
|
4
|
+
import { HumanName } from "./human-name.js";
|
|
5
|
+
import { Identifier } from "./identifier.js";
|
|
6
|
+
import { Patient } from "./patient.js";
|
|
7
|
+
import { Reference } from "./reference.js";
|
|
8
|
+
/**
|
|
9
|
+
* Represents a personal or non-healthcare-specific relationship.
|
|
10
|
+
*
|
|
11
|
+
* @category Models
|
|
12
|
+
* @title RelatedPerson
|
|
13
|
+
* @excerpt Represents a personal or non-healthcare-specific relationship.
|
|
14
|
+
*/
|
|
15
|
+
export type RelatedPerson = {
|
|
16
|
+
/** The type of resource, always "RelatedPerson". */
|
|
17
|
+
resourceType: "RelatedPerson";
|
|
18
|
+
/** Logical id of the related person resource. */
|
|
19
|
+
id: string;
|
|
20
|
+
/** Whether this related person record is in active use. */
|
|
21
|
+
active: boolean | null;
|
|
22
|
+
/** A list of names associated with the related person. */
|
|
23
|
+
name: (HumanName | null)[] | null;
|
|
24
|
+
/** A list of identifiers for the related person. */
|
|
25
|
+
identifier: (Identifier | null)[] | null;
|
|
26
|
+
/** A list of contact points (e.g., phone, email) for the related person. */
|
|
27
|
+
telecom: (ContactPoint | null)[] | null;
|
|
28
|
+
/** A list of addresses for the related person. */
|
|
29
|
+
address: (Address | null)[] | null;
|
|
30
|
+
/** The nature of the relationship between the patient and the related person. */
|
|
31
|
+
relationship: (CodeableConcept | null)[] | null;
|
|
32
|
+
/** Reference to the patient associated with this related person. */
|
|
33
|
+
patient: Reference<Patient> | null;
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { CodeableConcept, EntryBundle, IdentifiedResourceEntry, Identifier, Meta, Organization, Practitioner, Reference, RelatedPerson } from "../common/index.js";
|
|
2
|
+
import { PractitionerRole } from "../common/practitioner-role.js";
|
|
3
|
+
/**
|
|
4
|
+
* A care team resource representing a set of people, organizations, and/or other care teams coordinating to deliver care.
|
|
5
|
+
*
|
|
6
|
+
* @category Models
|
|
7
|
+
* @title CareTeam
|
|
8
|
+
* @excerpt A care team represents people, organizations, and other care teams coordinating to deliver care.
|
|
9
|
+
*/
|
|
10
|
+
export type CareTeam = {
|
|
11
|
+
/** The type of resource, always "CareTeam". */
|
|
12
|
+
resourceType: "CareTeam";
|
|
13
|
+
/** Logical id of the care team resource. */
|
|
14
|
+
id: string;
|
|
15
|
+
/** Business identifiers for the care team. */
|
|
16
|
+
identifier: (Identifier | null)[] | null;
|
|
17
|
+
/** Metadata about the resource. */
|
|
18
|
+
meta: Meta | null;
|
|
19
|
+
/** Status of the care team (e.g., active, suspended, inactive). */
|
|
20
|
+
status: string | null;
|
|
21
|
+
/** Name of the care team. */
|
|
22
|
+
name: string | null;
|
|
23
|
+
/** Category of the care team (e.g., long-term care, encounter-focused). */
|
|
24
|
+
category: (CodeableConcept | null)[] | null;
|
|
25
|
+
/** List of participants in the care team. */
|
|
26
|
+
participant: (CareTeamParticipant | null)[] | null;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Participant in a care team.
|
|
30
|
+
*
|
|
31
|
+
* @category Models
|
|
32
|
+
* @title CareTeamParticipant
|
|
33
|
+
* @excerpt Participant in a care team.
|
|
34
|
+
*/
|
|
35
|
+
export type CareTeamParticipant = {
|
|
36
|
+
/** Roles of the participant in the care team. */
|
|
37
|
+
role: (CodeableConcept | null)[] | null;
|
|
38
|
+
/** Member reference and details. */
|
|
39
|
+
member: Reference<CareTeamParticipantMember> | null;
|
|
40
|
+
};
|
|
41
|
+
type CareTeamParticipantMemberOrganization = {
|
|
42
|
+
organizationName: string;
|
|
43
|
+
} & Omit<Organization, "name">;
|
|
44
|
+
type CareTeamParticipantMember = CareTeamParticipantMemberOrganization | Practitioner | PractitionerRole | RelatedPerson;
|
|
45
|
+
/**
|
|
46
|
+
* An entry in a care team bundle.
|
|
47
|
+
*
|
|
48
|
+
* @category Models
|
|
49
|
+
* @title CareTeamEntry
|
|
50
|
+
* @excerpt An entry in a care team bundle.
|
|
51
|
+
*/
|
|
52
|
+
export type CareTeamEntry = IdentifiedResourceEntry<CareTeam>;
|
|
53
|
+
/**
|
|
54
|
+
* Bundle containing care team search results.
|
|
55
|
+
*
|
|
56
|
+
* @category Models
|
|
57
|
+
* @title CareTeamBundle
|
|
58
|
+
* @excerpt Bundle containing care team search results
|
|
59
|
+
*/
|
|
60
|
+
export type CareTeamBundle = EntryBundle<CareTeamEntry>;
|
|
61
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -19,3 +19,4 @@ export { Observation } from "./observation.js";
|
|
|
19
19
|
export { ConditionBundle, Condition } from "./condition.js";
|
|
20
20
|
export { ProcedureBundle, Procedure } from "./procedure.js";
|
|
21
21
|
export { VitalSignBundle } from "./vital-sign-bundle.js";
|
|
22
|
+
export { CareTeamBundle, CareTeam } from "./care-team.js";
|