@icanbwell/bwell-sdk-ts 2.0.0-alpha.0-rc.1757362315 → 2.0.0-alpha.0-rc.1757440654

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.
Files changed (41) hide show
  1. package/dist/__version__.d.ts +1 -1
  2. package/dist/__version__.js +1 -1
  3. package/dist/api/base/health-data/health-data-request.d.ts +3 -0
  4. package/dist/api/base/health-data/health-manager.d.ts +25 -1
  5. package/dist/api/base/requests/field-sort-order.d.ts +11 -0
  6. package/dist/api/base/requests/field-sort-order.js +1 -0
  7. package/dist/api/base/requests/index.d.ts +1 -0
  8. package/dist/api/base/search/search-health-resources-request.d.ts +3 -11
  9. package/dist/api/graphql-api/healthdata/graphql-health-manager.d.ts +3 -1
  10. package/dist/api/graphql-api/healthdata/graphql-health-manager.js +42 -0
  11. package/dist/api/graphql-api/healthdata/health-data-request-factory.js +13 -1
  12. package/dist/graphql/operations/index.d.ts +44 -5
  13. package/dist/graphql/operations/index.js +690 -33
  14. package/dist/graphql/operations/types.d.ts +4999 -2248
  15. package/dist/models/common/contact-point.d.ts +4 -0
  16. package/dist/models/common/index.d.ts +6 -1
  17. package/dist/models/common/location.d.ts +5 -0
  18. package/dist/models/common/organization.d.ts +22 -0
  19. package/dist/models/common/patient.d.ts +13 -0
  20. package/dist/models/common/patient.js +1 -0
  21. package/dist/models/common/practitioner.d.ts +15 -0
  22. package/dist/models/common/practitioner.js +1 -0
  23. package/dist/models/common/service-request.d.ts +21 -0
  24. package/dist/models/common/service-request.js +1 -0
  25. package/dist/models/common/specimen.d.ts +13 -0
  26. package/dist/models/common/specimen.js +1 -0
  27. package/dist/models/common/timing.d.ts +107 -0
  28. package/dist/models/common/timing.js +1 -0
  29. package/dist/models/common/value.d.ts +22 -0
  30. package/dist/models/common/value.js +1 -0
  31. package/dist/models/health-data/care-plan.d.ts +134 -0
  32. package/dist/models/health-data/care-plan.js +1 -0
  33. package/dist/models/health-data/condition.d.ts +107 -0
  34. package/dist/models/health-data/condition.js +1 -0
  35. package/dist/models/health-data/immunization.d.ts +149 -0
  36. package/dist/models/health-data/immunization.js +1 -0
  37. package/dist/models/health-data/index.d.ts +4 -0
  38. package/dist/models/health-data/observation.d.ts +101 -0
  39. package/dist/models/health-data/observation.js +1 -0
  40. package/dist/models/search/health-resources.d.ts +2 -2
  41. package/package.json +1 -1
@@ -0,0 +1,149 @@
1
+ import type { CodeableConcept, EntryBundle, HumanName, IdentifiedResourceEntry, Identifier, Location, Meta, Narrative, Organization, Quantity, Reference } from "../common/index.js";
2
+ import { Observation } from "./index.js";
3
+ /**
4
+ * Represents an immunization resource matching GraphQL structure.
5
+ * Based on FHIR Immunization resource with GraphQL-compatible structure.
6
+ *
7
+ * @category Models
8
+ * @title Immunization
9
+ * @excerpt Represents an immunization resource
10
+ */
11
+ export type Immunization = {
12
+ /** A set of rules under which this content was created */
13
+ resourceType: string | null;
14
+ /** Logical id of this artifact */
15
+ id: string;
16
+ /** Business identifiers for this immunization */
17
+ identifier: (Identifier | null)[] | null;
18
+ /** Metadata about the resource */
19
+ meta: Meta | null;
20
+ /** Text summary of the resource, for human interpretation */
21
+ text: Narrative | null;
22
+ /** Status of the immunization event */
23
+ status: string | null;
24
+ /** Expiration date of vaccine */
25
+ expirationDate: string | null;
26
+ /** Report origin */
27
+ reportOrigin: CodeableConcept | null;
28
+ /** Vaccine administered */
29
+ vaccineCode: CodeableConcept | null;
30
+ /** Reason for the current status */
31
+ statusReason: CodeableConcept | null;
32
+ /** Date vaccine administered */
33
+ occurrenceDateTime: string | null;
34
+ /** Whether the record is from the primary source */
35
+ primarySource: boolean | null;
36
+ /** Dose quantity administered */
37
+ doseQuantity: Quantity | null;
38
+ /** Reactions following immunization */
39
+ reaction: (ImmunizationReaction | null)[] | null;
40
+ /** Protocols applied */
41
+ protocolApplied: (ImmunizationProtocolApplied | null)[] | null;
42
+ /** Manufacturer organization */
43
+ manufacturer: Reference<Organization> | null;
44
+ /** Lot number of vaccine */
45
+ lotNumber: string | null;
46
+ /** Body site of administration */
47
+ site: CodeableConcept | null;
48
+ /** Route of administration */
49
+ route: CodeableConcept | null;
50
+ /** Performer(s) of the immunization */
51
+ performer: (ImmunizationPerformer | null)[] | null;
52
+ /** Location where immunization was given */
53
+ location: Reference<Location> | null;
54
+ /** Reason codes for immunization */
55
+ reasonCode: (CodeableConcept | null)[] | null;
56
+ };
57
+ /**
58
+ * Represents a reaction that occurred as a result of an immunization.
59
+ *
60
+ * @category Models
61
+ * @type ImmunizationReaction
62
+ * @excerpt Immunization Reaction
63
+ */
64
+ type ImmunizationReaction = {
65
+ /** Date(/time) when the reaction occurred. */
66
+ date: string | null;
67
+ /** Indicates if the reaction was reported. */
68
+ reported: boolean | null;
69
+ /** Reference to the detailed observation of the reaction. */
70
+ detail: Reference<Observation> | null;
71
+ };
72
+ /**
73
+ * Represents a protocol applied during immunization.
74
+ *
75
+ * @category Models
76
+ * @type ImmunizationProtocolApplied
77
+ * @excerpt Immunization Protocol Applied
78
+ */
79
+ type ImmunizationProtocolApplied = {
80
+ /** Dose number as a string, if available. */
81
+ doseNumberString: string | null;
82
+ /** Dose number as a positive integer, if available. */
83
+ doseNumberPositiveInt: number | null;
84
+ };
85
+ /**
86
+ * Represents a performer of the immunization event.
87
+ *
88
+ * @category Models
89
+ * @type ImmunizationPerformer
90
+ * @excerpt Immunization Performer
91
+ */
92
+ type ImmunizationPerformer = {
93
+ /** Reference to the actor (practitioner or organization) who performed the immunization. */
94
+ actor: Reference<ImmunizationPerformerActor> | null;
95
+ };
96
+ /**
97
+ * Represents the actor who performed the immunization, which can be a practitioner or an organization.
98
+ *
99
+ * @category Models
100
+ * @type ImmunizationPerformerActor
101
+ * @excerpt Immunization Performer Actor
102
+ */
103
+ type ImmunizationPerformerActor = ImmunizationPerformerPractitioner | ImmunizationPerformerOrganization;
104
+ /**
105
+ * Represents a practitioner who performed an immunization.
106
+ *
107
+ * @category Models
108
+ * @type ImmunizationPerformerPractitioner
109
+ * @excerpt Immunization Performer Practitioner
110
+ */
111
+ type ImmunizationPerformerPractitioner = {
112
+ __typename: "Practitioner";
113
+ identifier: (Identifier | null)[] | null;
114
+ name: (HumanName | null)[] | null;
115
+ };
116
+ /**
117
+ * Represents an organization that performed an immunization.
118
+ *
119
+ * @category Models
120
+ * @type ImmunizationPerformerOrganization
121
+ * @excerpt Immunization Performer Organization
122
+ */
123
+ type ImmunizationPerformerOrganization = {
124
+ /** The GraphQL typename for the organization. */
125
+ __typename: "Organization";
126
+ /** A list of identifiers associated with the organization, or null if none. */
127
+ identifier: (Identifier | null)[] | null;
128
+ /** The name of the organization, or null if not available. */
129
+ organizationName: string | null;
130
+ };
131
+ /**
132
+ * Represents an entry in an immunization bundle.
133
+ * Contains an immunization resource and metadata.
134
+ *
135
+ * @category Models
136
+ * @title ImmunizationEntry
137
+ * @excerpt Represents an entry in an immunization bundle
138
+ */
139
+ export type ImmunizationResourceEntry = IdentifiedResourceEntry<Immunization>;
140
+ /**
141
+ * Bundle of immunization search results.
142
+ * Contains multiple immunization entries from search operations.
143
+ *
144
+ * @category Models
145
+ * @title ImmunizationBundle
146
+ * @excerpt Bundle of immunization search results
147
+ */
148
+ export type ImmunizationBundle = EntryBundle<ImmunizationResourceEntry>;
149
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -13,3 +13,7 @@ export type { ProcedureGroupBundle, ProcedureGroup, } from "./procedure-group.js
13
13
  export type { VitalSignGroupBundle, VitalSignGroup, } from "./vital-sign-group.js";
14
14
  export type { MedicationGroupBundle, MedicationGroup, } from "./medication-group.js";
15
15
  export type { DiagnosticReportLabGroupBundle, DiagnosticReportLabGroup, } from "./diagnostic-report-lab-group.js";
16
+ export type { CarePlanBundle, CarePlan } from "./care-plan.js";
17
+ export type { Condition } from "./condition.js";
18
+ export { ImmunizationBundle, Immunization } from "./immunization.js";
19
+ export { Observation } from "./observation.js";
@@ -0,0 +1,101 @@
1
+ import { Organization, Patient, Practitioner } from "../common/index.js";
2
+ import { ServiceRequest } from "../common/service-request.js";
3
+ import { Value } from "../common/value.js";
4
+ import { Annotation, CodeableConcept, Component, HumanName, Identifier, Meta, Narrative, Period, Reference, ReferenceRange, Specimen } from "../index.js";
5
+ /**
6
+ * Represents a observation resource.
7
+ *
8
+ * @category Models
9
+ * @title Observation
10
+ * @excerpt Represents an observation resource.
11
+ */
12
+ export type Observation = Value & {
13
+ /** A set of rules under which this content was created */
14
+ resourceType: string | null;
15
+ /** Logical id of this artifact */
16
+ id: string;
17
+ /** Business identifiers for this observation */
18
+ identifier: (Identifier | null)[] | null;
19
+ /** Metadata about the resource */
20
+ meta: Meta | null;
21
+ /** Text summary of the resource, for human interpretation */
22
+ text: Narrative | null;
23
+ /** Status of the observation */
24
+ status: string | null;
25
+ /** Category of the observation */
26
+ category: (CodeableConcept | null)[] | null;
27
+ /** The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation. */
28
+ subject: Reference<ObservationSubject> | null;
29
+ /** The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified. */
30
+ issued: string | null;
31
+ /** A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed. */
32
+ basedOn: (Reference<ObservationBasedOn> | null)[] | null;
33
+ /** Describes what was observed. Sometimes this is called the observation "name". */
34
+ code: CodeableConcept | null;
35
+ /** Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an "OR". In other words, to represent two distinct target populations, two `referenceRange` elements would be used. */
36
+ referenceRange: (ReferenceRange | null)[] | null;
37
+ /** A categorical assessment of an observation value. For example, high, low, normal. */
38
+ interpretation: (CodeableConcept | null)[] | null;
39
+ /** Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations */
40
+ component: (ObservationComponent | null)[] | null;
41
+ /** The date and time the observation was made */
42
+ effectiveDateTime: string | null;
43
+ /** The period over which the observation was made */
44
+ effectivePeriod: Period | null;
45
+ /** Comments about the observation or the results. */
46
+ note: (Annotation | null)[] | null;
47
+ /** Who was responsible for asserting the observed value as "true". */
48
+ performer: (Reference<ObservationPerformer> | null)[] | null;
49
+ /** This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group. */
50
+ hasMember: (Reference<ObservationHasMember> | null)[] | null;
51
+ /** The specimen that was used when this observation was made. */
52
+ specimen: Reference<Specimen> | null;
53
+ /** Provides a reason why the expected value in the element Observation.value[x] is missing. */
54
+ dataAbsentReason: CodeableConcept | null;
55
+ };
56
+ export type ObservationBasedOn = ServiceRequest;
57
+ export type ObservationHasMember = ObservationHasMemberObservation;
58
+ /**
59
+ * Represents an Observation that is a member of a group observation.
60
+ *
61
+ * @category Models
62
+ * @type ObservationHasMemberObservation
63
+ * @excerpt Member Observation in Group
64
+ */
65
+ type ObservationHasMemberObservation = {
66
+ /** Logical id of the member observation. */
67
+ id: string | null;
68
+ /** Code describing the member observation. */
69
+ code: CodeableConcept | null;
70
+ };
71
+ /**
72
+ * Represents the performer of the observation, which can be a practitioner, patient, or organization.
73
+ *
74
+ * @category Models
75
+ * @type ObservationPerformer
76
+ * @excerpt Performer of Observation
77
+ */
78
+ export type ObservationPerformer = Patient | Practitioner | Organization;
79
+ /**
80
+ * Represents a component observation, combining Value and Component properties.
81
+ *
82
+ * @category Models
83
+ * @type ObservationComponent
84
+ * @excerpt Component Observation
85
+ */
86
+ type ObservationComponent = Value & Component;
87
+ type ObservationSubject = ObservationSubjectPatient;
88
+ /**
89
+ * Represents a patient who is the subject of the observation.
90
+ *
91
+ * @category Models
92
+ * @type ObservationSubjectPatient
93
+ * @excerpt Subject Patient for Observation
94
+ */
95
+ type ObservationSubjectPatient = {
96
+ /** The GraphQL typename for the patient. */
97
+ __typename: "Patient";
98
+ /** Name(s) of the patient. */
99
+ name: (HumanName | null)[] | null;
100
+ };
101
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { Coding } from "../common/coding.js";
2
2
  import { Endpoint } from "../common/endpoint.js";
3
+ import { SearchResponseOrganization } from "../common/index.js";
3
4
  import { Location } from "../common/location.js";
4
- import { Organization } from "../common/organization.js";
5
5
  import { Score } from "../common/score.js";
6
6
  import { FilterField } from "../enums/filter-field.js";
7
7
  import { Gender } from "../enums/gender.js";
@@ -44,7 +44,7 @@ export type HealthResource = {
44
44
  /** Associated locations */
45
45
  location: (HealthResourceLocation | null)[] | null;
46
46
  /** Associated organizations */
47
- organization: (Organization | null)[] | null;
47
+ organization: (SearchResponseOrganization | null)[] | null;
48
48
  /** Direct endpoints */
49
49
  endpoint: Endpoint[] | null;
50
50
  /** Detailed scoring information */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/bwell-sdk-ts",
3
- "version": "2.0.0-alpha.0-rc.1757362315",
3
+ "version": "2.0.0-alpha.0-rc.1757440654",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",