@icanbwell/bwell-sdk-ts 2.0.0-alpha.0-rc.1760653171 → 2.0.0-alpha.0-rc.1760729227

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 (38) 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-response-factory.d.ts +26 -0
  4. package/dist/api/base/health-data/health-manager.d.ts +3 -3
  5. package/dist/api/base/health-data/index.d.ts +1 -0
  6. package/dist/api/graphql-api/healthdata/graphql-health-manager.d.ts +4 -3
  7. package/dist/api/graphql-api/healthdata/graphql-health-manager.js +19 -6
  8. package/dist/api/graphql-api/healthdata/health-data-response-factory.d.ts +7 -0
  9. package/dist/api/graphql-api/healthdata/health-data-response-factory.js +58 -0
  10. package/dist/graphql/operations/index.d.ts +2 -2
  11. package/dist/graphql/operations/index.js +3 -0
  12. package/dist/graphql/operations/types.d.ts +3 -0
  13. package/dist/graphql/schema.d.ts +12 -0
  14. package/dist/models/common/bundle.d.ts +38 -14
  15. package/dist/models/common/index.d.ts +1 -1
  16. package/dist/models/health-data/allergy-intolerance-bundle.d.ts +2 -2
  17. package/dist/models/health-data/care-plan-group.d.ts +9 -1
  18. package/dist/models/health-data/care-plan.d.ts +11 -11
  19. package/dist/models/health-data/care-team.d.ts +2 -10
  20. package/dist/models/health-data/condition.d.ts +2 -11
  21. package/dist/models/health-data/diagnostic-report.d.ts +2 -10
  22. package/dist/models/health-data/encounter.d.ts +2 -10
  23. package/dist/models/health-data/immunization.d.ts +2 -11
  24. package/dist/models/health-data/index.d.ts +2 -3
  25. package/dist/models/health-data/lab-bundle.d.ts +1 -1
  26. package/dist/models/health-data/medication-dispense.d.ts +2 -10
  27. package/dist/models/health-data/medication-request.d.ts +2 -10
  28. package/dist/models/health-data/medication-statement.d.ts +2 -10
  29. package/dist/models/health-data/procedure.d.ts +2 -10
  30. package/dist/models/health-data/vital-sign-bundle.d.ts +2 -10
  31. package/dist/models/health-space/appointment-bundle.d.ts +2 -2
  32. package/dist/models/health-space/index.d.ts +0 -1
  33. package/dist/models/user/consent.d.ts +2 -13
  34. package/package.json +1 -1
  35. package/dist/models/health-data/allergy-intolerance-entry.d.ts +0 -11
  36. package/dist/models/health-space/appointment-entry.d.ts +0 -11
  37. package/dist/models/health-space/appointment-entry.js +0 -1
  38. /package/dist/{models/health-data/allergy-intolerance-entry.js → api/base/health-data/health-data-response-factory.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { CodeableConcept, EntryBundle, IdentifiedResourceEntry, Identifier, Meta, Organization, Practitioner, Reference, RelatedPerson } from "../common/index.js";
1
+ import { CodeableConcept, EntryBundle, Identifier, Meta, Organization, Practitioner, Reference, RelatedPerson } from "../common/index.js";
2
2
  import { PractitionerRole } from "../common/practitioner-role.js";
3
3
  /**
4
4
  * A care team resource representing a set of people, organizations, and/or other care teams coordinating to deliver care.
@@ -42,14 +42,6 @@ type CareTeamParticipantMemberOrganization = {
42
42
  organizationName: string;
43
43
  } & Omit<Organization, "name">;
44
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
45
  /**
54
46
  * Bundle containing care team search results.
55
47
  *
@@ -57,5 +49,5 @@ export type CareTeamEntry = IdentifiedResourceEntry<CareTeam>;
57
49
  * @title CareTeamBundle
58
50
  * @excerpt Bundle containing care team search results
59
51
  */
60
- export type CareTeamBundle = EntryBundle<CareTeamEntry>;
52
+ export type CareTeamBundle = EntryBundle<CareTeam>;
61
53
  export {};
@@ -1,4 +1,4 @@
1
- import type { Annotation, CodeableConcept, EntryBundle, Extension, IdentifiedResourceEntry, Identifier, Meta, Narrative, Patient, Period, Practitioner, Reference } from "../common/index.js";
1
+ import type { Annotation, CodeableConcept, EntryBundle, Extension, Identifier, Meta, Narrative, Patient, Period, Practitioner, Reference } from "../common/index.js";
2
2
  import { Encounter } from "./index.js";
3
3
  /**
4
4
  * Represents a condition resource.
@@ -85,15 +85,6 @@ export type Condition = {
85
85
  /** The encounter during which this condition was made. */
86
86
  encounter: Reference<Encounter> | null;
87
87
  };
88
- /**
89
- * Represents an entry in a condition bundle.
90
- * Contains a condition resource and metadata.
91
- *
92
- * @category Models
93
- * @title ConditionEntry
94
- * @excerpt Represents an entry in a condition bundle
95
- */
96
- export type ConditionEntry = IdentifiedResourceEntry<Condition>;
97
88
  /**
98
89
  * Bundle of condition search results.
99
90
  * Contains multiple conditions from search operations.
@@ -102,4 +93,4 @@ export type ConditionEntry = IdentifiedResourceEntry<Condition>;
102
93
  * @title ConditionBundle
103
94
  * @excerpt Bundle of condition search results
104
95
  */
105
- export type ConditionBundle = EntryBundle<ConditionEntry>;
96
+ export type ConditionBundle = EntryBundle<Condition>;
@@ -1,4 +1,4 @@
1
- import type { Attachment, CodeableConcept, EntryBundle, IdentifiedResourceEntry, Identifier, Meta, Reference } from "../common/index.js";
1
+ import type { Attachment, CodeableConcept, EntryBundle, Identifier, Meta, Reference } from "../common/index.js";
2
2
  /**
3
3
  * Represents a diagnostic report resource.
4
4
  * The findings and interpretation of diagnostic tests performed on patients, groups of patients,
@@ -64,14 +64,6 @@ export type DiagnosticReport = {
64
64
  */
65
65
  result: (Reference | null)[] | null;
66
66
  };
67
- /**
68
- * Entry in diagnostic report bundle.
69
- *
70
- * @category Models
71
- * @title DiagnosticReportEntry
72
- * @excerpt Entry in diagnostic report bundle.
73
- */
74
- export type DiagnosticReportEntry = IdentifiedResourceEntry<DiagnosticReport>;
75
67
  /**
76
68
  * Bundle of diagnostic report results.
77
69
  *
@@ -79,4 +71,4 @@ export type DiagnosticReportEntry = IdentifiedResourceEntry<DiagnosticReport>;
79
71
  * @title DiagnosticReportBundle
80
72
  * @excerpt Bundle of diagnostic report results.
81
73
  */
82
- export type DiagnosticReportBundle = EntryBundle<DiagnosticReportEntry>;
74
+ export type DiagnosticReportBundle = EntryBundle<DiagnosticReport>;
@@ -1,4 +1,4 @@
1
- import type { CodeableConcept, Coding, EntryBundle, IdentifiedResourceEntry, Identifier, Location, Meta, Narrative, Organization, Patient, Period, Practitioner, PractitionerRole, Reference, RelatedPerson } from "../common/index.js";
1
+ import type { CodeableConcept, Coding, EntryBundle, Identifier, Location, Meta, Narrative, Organization, Patient, Period, Practitioner, PractitionerRole, Reference, RelatedPerson } from "../common/index.js";
2
2
  import { Condition } from "./index.js";
3
3
  /**
4
4
  * Represents an Encounter resource.
@@ -60,14 +60,6 @@ type EncounterParticipant = {
60
60
  /** The period of time the participant was involved in the encounter */
61
61
  period: Period | null;
62
62
  };
63
- /**
64
- * Entry in encounter bundle.
65
- *
66
- * @category Models
67
- * @title EncounterEntry
68
- * @excerpt Entry in encounter bundle.
69
- */
70
- export type EncounterEntry = IdentifiedResourceEntry<Encounter>;
71
63
  /**
72
64
  * Bundle of encounter results.
73
65
  *
@@ -75,5 +67,5 @@ export type EncounterEntry = IdentifiedResourceEntry<Encounter>;
75
67
  * @title EncounterBundle
76
68
  * @excerpt Bundle of encounter results.
77
69
  */
78
- export type EncounterBundle = EntryBundle<EncounterEntry>;
70
+ export type EncounterBundle = EntryBundle<Encounter>;
79
71
  export {};
@@ -1,4 +1,4 @@
1
- import type { CodeableConcept, EntryBundle, HumanName, IdentifiedResourceEntry, Identifier, Location, Meta, Narrative, Organization, Quantity, Reference } from "../common/index.js";
1
+ import type { CodeableConcept, EntryBundle, HumanName, Identifier, Location, Meta, Narrative, Organization, Quantity, Reference } from "../common/index.js";
2
2
  import { Encounter, Observation } from "./index.js";
3
3
  /**
4
4
  * Represents an immunization resource matching GraphQL structure.
@@ -130,15 +130,6 @@ type ImmunizationPerformerOrganization = {
130
130
  /** The name of the organization, or null if not available. */
131
131
  organizationName: string | null;
132
132
  };
133
- /**
134
- * Represents an entry in an immunization bundle.
135
- * Contains an immunization resource and metadata.
136
- *
137
- * @category Models
138
- * @title ImmunizationEntry
139
- * @excerpt Represents an entry in an immunization bundle
140
- */
141
- export type ImmunizationResourceEntry = IdentifiedResourceEntry<Immunization>;
142
133
  /**
143
134
  * Bundle of immunization search results.
144
135
  * Contains multiple immunization entries from search operations.
@@ -147,5 +138,5 @@ export type ImmunizationResourceEntry = IdentifiedResourceEntry<Immunization>;
147
138
  * @title ImmunizationBundle
148
139
  * @excerpt Bundle of immunization search results
149
140
  */
150
- export type ImmunizationBundle = EntryBundle<ImmunizationResourceEntry>;
141
+ export type ImmunizationBundle = EntryBundle<Immunization>;
151
142
  export {};
@@ -3,17 +3,16 @@ export type { AllergyIntoleranceGroupBundle, AllergyIntoleranceGroup, } from "./
3
3
  export type { AllergyIntoleranceBundle } from "./allergy-intolerance-bundle.js";
4
4
  export type { AllergyIntoleranceReaction } from "./allergy-intolerance-reaction.js";
5
5
  export type { AllergyIntolerance } from "./allergy-intolerance.js";
6
- export type { AllergyIntoleranceEntry } from "./allergy-intolerance-entry.js";
7
6
  export type { ConditionGroupBundle, ConditionGroup, } from "./condition-group.js";
8
7
  export type { LabGroupBundle, LabGroup } from "./lab-group.js";
9
- export type { CarePlanGroupBundle, CarePlanGroup } from "./care-plan-group.js";
8
+ export type { CarePlanGroupBundle, CarePlanGroup, CarePlanGroupsResponse, } from "./care-plan-group.js";
10
9
  export type { EncounterGroupBundle, EncounterGroup, } from "./encounter-group.js";
11
10
  export type { ImmunizationGroupBundle, ImmunizationGroup, } from "./immunization-group.js";
12
11
  export type { ProcedureGroupBundle, ProcedureGroup, } from "./procedure-group.js";
13
12
  export type { VitalSignGroupBundle, VitalSignGroup, } from "./vital-sign-group.js";
14
13
  export type { MedicationGroupBundle, MedicationGroup, } from "./medication-group.js";
15
14
  export type { DiagnosticReportLabGroupBundle, DiagnosticReportLabGroup, } from "./diagnostic-report-lab-group.js";
16
- export type { CarePlanBundle, CarePlan } from "./care-plan.js";
15
+ export type { CarePlanBundle, CarePlan, CarePlanResponse, } from "./care-plan.js";
17
16
  export { ImmunizationBundle, Immunization } from "./immunization.js";
18
17
  export { Observation } from "./observation.js";
19
18
  export { ConditionBundle, Condition } from "./condition.js";
@@ -15,4 +15,4 @@ export type LabEntry = IdentifiedResourceEntry<Observation>;
15
15
  * @title LabBundle
16
16
  * @excerpt Bundle of lab search results
17
17
  */
18
- export type LabBundle = EntryBundle<LabEntry>;
18
+ export type LabBundle = EntryBundle<Observation>;
@@ -1,4 +1,4 @@
1
- import type { CodeableConcept, Dosage, EntryBundle, IdentifiedResourceEntry, Identifier, Location, Medication, Meta, Patient, Practitioner, PractitionerRole, Quantity, Reference } from "../common/index.js";
1
+ import type { CodeableConcept, Dosage, EntryBundle, Identifier, Location, Medication, Meta, Patient, Practitioner, PractitionerRole, Quantity, Reference } from "../common/index.js";
2
2
  import { Encounter } from "./index.js";
3
3
  /**
4
4
  * Represents a MedicationDispense performer actor.
@@ -90,14 +90,6 @@ export type MedicationDispense = {
90
90
  */
91
91
  authorizingPrescription: (Reference | null)[] | null;
92
92
  };
93
- /**
94
- * Entry in medication dispense bundle.
95
- *
96
- * @category Models
97
- * @title MedicationDispenseEntry
98
- * @excerpt Entry in medication dispense bundle.
99
- */
100
- export type MedicationDispenseEntry = IdentifiedResourceEntry<MedicationDispense>;
101
93
  /**
102
94
  * Bundle of medication dispense results.
103
95
  *
@@ -105,4 +97,4 @@ export type MedicationDispenseEntry = IdentifiedResourceEntry<MedicationDispense
105
97
  * @title MedicationDispenseBundle
106
98
  * @excerpt Bundle of medication dispense results.
107
99
  */
108
- export type MedicationDispenseBundle = EntryBundle<MedicationDispenseEntry>;
100
+ export type MedicationDispenseBundle = EntryBundle<MedicationDispense>;
@@ -1,4 +1,4 @@
1
- import type { CodeableConcept, DispenseRequest, Dosage, EntryBundle, IdentifiedResourceEntry, Identifier, Medication, Meta, Narrative, Patient, Practitioner, Reference } from "../common/index.js";
1
+ import type { CodeableConcept, DispenseRequest, Dosage, EntryBundle, Identifier, Medication, Meta, Narrative, Patient, Practitioner, Reference } from "../common/index.js";
2
2
  import type { Encounter } from "./index.js";
3
3
  /**
4
4
  * Represents a medication request resource.
@@ -89,14 +89,6 @@ export type MedicationRequest = {
89
89
  */
90
90
  courseOfTherapyType: CodeableConcept | null;
91
91
  };
92
- /**
93
- * Entry in medication request bundle.
94
- *
95
- * @category Models
96
- * @title MedicationRequestEntry
97
- * @excerpt Entry in medication request bundle.
98
- */
99
- export type MedicationRequestEntry = IdentifiedResourceEntry<MedicationRequest>;
100
92
  /**
101
93
  * Bundle of medication request results.
102
94
  *
@@ -104,4 +96,4 @@ export type MedicationRequestEntry = IdentifiedResourceEntry<MedicationRequest>;
104
96
  * @title MedicationRequestBundle
105
97
  * @excerpt Bundle of medication request results.
106
98
  */
107
- export type MedicationRequestBundle = EntryBundle<MedicationRequestEntry>;
99
+ export type MedicationRequestBundle = EntryBundle<MedicationRequest>;
@@ -1,4 +1,4 @@
1
- import type { CodeableConcept, Dosage, EntryBundle, IdentifiedResourceEntry, Meta, Period, Reference } from "../common/index.js";
1
+ import type { CodeableConcept, Dosage, EntryBundle, Meta, Period, Reference } from "../common/index.js";
2
2
  /**
3
3
  * Represents a medication statement resource.
4
4
  * A record of a medication that is being consumed by a patient.
@@ -50,14 +50,6 @@ export type MedicationStatement = {
50
50
  */
51
51
  derivedFrom: (Reference | null)[] | null;
52
52
  };
53
- /**
54
- * Entry in medication statement bundle.
55
- *
56
- * @category Models
57
- * @title MedicationStatementEntry
58
- * @excerpt Entry in medication statement bundle.
59
- */
60
- export type MedicationStatementEntry = IdentifiedResourceEntry<MedicationStatement>;
61
53
  /**
62
54
  * Bundle of medication statement results.
63
55
  *
@@ -65,4 +57,4 @@ export type MedicationStatementEntry = IdentifiedResourceEntry<MedicationStateme
65
57
  * @title MedicationStatementBundle
66
58
  * @excerpt Bundle of medication statement results.
67
59
  */
68
- export type MedicationStatementBundle = EntryBundle<MedicationStatementEntry>;
60
+ export type MedicationStatementBundle = EntryBundle<MedicationStatement>;
@@ -1,4 +1,4 @@
1
- import { EntryBundle, IdentifiedResourceEntry } from "../common/bundle.js";
1
+ import { EntryBundle } from "../common/bundle.js";
2
2
  import { Annotation, CodeableConcept, Identifier, Location, Meta, Narrative, Organization, Patient, Period, Practitioner, Reference } from "../common/index.js";
3
3
  import { Encounter } from "../index.js";
4
4
  /**
@@ -66,14 +66,6 @@ export type Procedure = {
66
66
  export type ProcedurePerformer = {
67
67
  actor: Reference<Practitioner | Organization> | null;
68
68
  };
69
- /**
70
- * Entry in a procedure bundle w. procedure resource and metadata.
71
- *
72
- * @category Models
73
- * @title ProcedureEntry
74
- * @excerpt Entry in a procedure bundle
75
- */
76
- export type ProcedureEntry = IdentifiedResourceEntry<Procedure>;
77
69
  /**
78
70
  * Bundle of procedure search results.
79
71
  *
@@ -81,4 +73,4 @@ export type ProcedureEntry = IdentifiedResourceEntry<Procedure>;
81
73
  * @title ProcedureBundle
82
74
  * @excerpt Bundle of procedure search results
83
75
  */
84
- export type ProcedureBundle = EntryBundle<ProcedureEntry>;
76
+ export type ProcedureBundle = EntryBundle<Procedure>;
@@ -1,13 +1,5 @@
1
- import { EntryBundle, IdentifiedResourceEntry } from "../common/bundle.js";
1
+ import { EntryBundle } from "../common/bundle.js";
2
2
  import { Observation } from "../index.js";
3
- /**
4
- * Entry in a vital sign bundle with observation resource and metadata.
5
- *
6
- * @category Models
7
- * @title VitalSignEntry
8
- * @excerpt Entry in a vital sign bundle
9
- */
10
- export type VitalSignEntry = IdentifiedResourceEntry<Observation>;
11
3
  /**
12
4
  * Bundle of vital sign search results.
13
5
  *
@@ -15,4 +7,4 @@ export type VitalSignEntry = IdentifiedResourceEntry<Observation>;
15
7
  * @title VitalSignBundle
16
8
  * @excerpt Bundle of vital sign search results
17
9
  */
18
- export type VitalSignBundle = EntryBundle<VitalSignEntry>;
10
+ export type VitalSignBundle = EntryBundle<Observation>;
@@ -1,5 +1,5 @@
1
1
  import type { EntryBundle } from "../common/index.js";
2
- import type { AppointmentEntry } from "./appointment-entry.js";
2
+ import { Appointment } from "./appointment.js";
3
3
  /**
4
4
  * Bundle containing appointment search results.
5
5
  * Used for paginated appointment queries with entries.
@@ -8,4 +8,4 @@ import type { AppointmentEntry } from "./appointment-entry.js";
8
8
  * @title AppointmentBundle
9
9
  * @excerpt Bundle containing appointment search results
10
10
  */
11
- export type AppointmentBundle = EntryBundle<AppointmentEntry>;
11
+ export type AppointmentBundle = EntryBundle<Appointment>;
@@ -1,6 +1,5 @@
1
1
  export type { Appointment } from "./appointment.js";
2
2
  export type { AppointmentUpdate } from "./appointment-update.js";
3
- export type { AppointmentEntry } from "./appointment-entry.js";
4
3
  export type { AppointmentBundle } from "./appointment-bundle.js";
5
4
  export type { AppointmentParticipant } from "./appointment-participant.js";
6
5
  export type { CancellationReasons, CancellationReasonConcept, } from "./cancellation-reasons.js";
@@ -1,4 +1,4 @@
1
- import type { CodeableConcept, EntryBundle, IdentifiedResourceEntry, Meta, Period, Reference } from "../common/index.js";
1
+ import type { CodeableConcept, EntryBundle, Meta, Period, Reference } from "../common/index.js";
2
2
  /**
3
3
  * A record of a healthcare consumer's choices or choices made on their behalf by a third party.
4
4
  * Captures permissions, prohibitions and obligations with respect to access to or use of a resource.
@@ -89,16 +89,6 @@ export type ConsentProvision = {
89
89
  */
90
90
  period: Period | null;
91
91
  };
92
- /**
93
- * Represents an entry in an allergy intolerance bundle.
94
- * Represents an entry in a consent bundle.
95
- * Contains a consent resource and metadata.
96
- *
97
- * @category Models
98
- * @title ConsentEntry
99
- * @excerpt Represents an entry in a consent bundle
100
- */
101
- type ConsentEntry = IdentifiedResourceEntry<Consent>;
102
92
  /**
103
93
  * Bundle of consent search results.
104
94
  * Contains multiple consent entries from search operations.
@@ -107,5 +97,4 @@ type ConsentEntry = IdentifiedResourceEntry<Consent>;
107
97
  * @title ConsentBundle
108
98
  * @excerpt Bundle of consent search results
109
99
  */
110
- export type ConsentBundle = EntryBundle<ConsentEntry>;
111
- export {};
100
+ export type ConsentBundle = EntryBundle<Consent>;
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.1760653171",
3
+ "version": "2.0.0-alpha.0-rc.1760729227",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -1,11 +0,0 @@
1
- import type { IdentifiedResourceEntry } from "../common/index.js";
2
- import type { AllergyIntolerance } from "./allergy-intolerance.js";
3
- /**
4
- * Represents an entry in an allergy intolerance bundle.
5
- * Contains an allergy intolerance resource and metadata.
6
- *
7
- * @category Models
8
- * @title AllergyIntoleranceEntry
9
- * @excerpt Represents an entry in an allergy intolerance bundle
10
- */
11
- export type AllergyIntoleranceEntry = IdentifiedResourceEntry<AllergyIntolerance>;
@@ -1,11 +0,0 @@
1
- import type { ResourceEntry } from "../common/index.js";
2
- import type { Appointment } from "./appointment.js";
3
- /**
4
- * Bundle entry containing appointment resource.
5
- * Wrapper for appointment data within search result bundles.
6
- *
7
- * @category Models
8
- * @title AppointmentEntry
9
- * @excerpt Bundle entry containing appointment resource
10
- */
11
- export type AppointmentEntry = ResourceEntry<Appointment>;
@@ -1 +0,0 @@
1
- export {};