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

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.
@@ -14,6 +14,8 @@ import { Reference } from "./reference.js";
14
14
  * @excerpt Represents an extension to FHIR resources
15
15
  */
16
16
  export type Extension = {
17
+ /** Extension identifier */
18
+ id: string | null;
17
19
  /** Extension URL */
18
20
  url: string | null;
19
21
  /** Boolean extension value */
@@ -1,4 +1,4 @@
1
- import type { Annotation, CodeableConcept, HumanName, Identifier, Meta, Period, Reference } from "../common/index.js";
1
+ import type { Annotation, CodeableConcept, EntryBundle, Extension, IdentifiedResourceEntry, Identifier, Meta, Narrative, Patient, Period, Practitioner, Reference } from "../common/index.js";
2
2
  /**
3
3
  * Represents a condition resource.
4
4
  *
@@ -7,14 +7,22 @@ import type { Annotation, CodeableConcept, HumanName, Identifier, Meta, Period,
7
7
  * @excerpt Represents a condition resource.
8
8
  */
9
9
  export type Condition = {
10
+ /** Resource type */
11
+ resourceType: string | null;
10
12
  /**
11
13
  * The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
12
14
  */
13
15
  id: string;
16
+ /** Identifiers for this condition */
17
+ identifier: (Identifier | null)[] | null;
14
18
  /**
15
19
  * The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
16
20
  */
17
21
  meta: Meta | null;
22
+ /** Text summary of the resource, for human interpretation. */
23
+ text: Narrative | null;
24
+ /** Additional condition extensions. */
25
+ extension: (Extension | null)[] | null;
18
26
  /**
19
27
  * Identification of the condition, problem or diagnosis.
20
28
  */
@@ -34,7 +42,7 @@ export type Condition = {
34
42
  /**
35
43
  * Individual who recorded the record and takes responsibility for its content.
36
44
  */
37
- recorder: Reference<ConditionRecorder> | null;
45
+ recorder: Reference<Patient | Practitioner> | null;
38
46
  /**
39
47
  * Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis.
40
48
  */
@@ -51,6 +59,10 @@ export type Condition = {
51
59
  * None
52
60
  */
53
61
  abatementPeriod: Period | null;
62
+ /**
63
+ * The patient the condition record is associated with.
64
+ */
65
+ subject: Reference<Patient> | null;
54
66
  /**
55
67
  * A category assigned to the condition.
56
68
  */
@@ -67,41 +79,24 @@ export type Condition = {
67
79
  * The anatomical location where this condition manifests itself.
68
80
  */
69
81
  bodySite: CodeableConcept[] | null;
82
+ /** Individual who is making the condition statement. */
83
+ asserter: Reference<Patient> | null;
70
84
  };
71
85
  /**
72
- * Represents a patient who recorded a health condition.
86
+ * Represents an entry in a condition bundle.
87
+ * Contains a condition resource and metadata.
73
88
  *
74
89
  * @category Models
75
- * @type ConditionRecorderPatient
76
- * @excerpt Patient Recorder for Condition
90
+ * @title ConditionEntry
91
+ * @excerpt Represents an entry in a condition bundle
77
92
  */
78
- export type ConditionRecorderPatient = {
79
- /** The GraphQL typename for the patient entity. */
80
- __typename: "Patient";
81
- /** Unique identifier for the patient. */
82
- id: string;
83
- /** An array of human names associated with the patient, or null if not available. */
84
- name: (HumanName | null)[] | null;
85
- };
93
+ export type ConditionEntry = IdentifiedResourceEntry<Condition>;
86
94
  /**
87
- * Represents a practitioner who recorded a health condition.
95
+ * Bundle of condition search results.
96
+ * Contains multiple conditions from search operations.
88
97
  *
89
98
  * @category Models
90
- * @type ConditionRecorderPractitioner
91
- * @excerpt Practitioner Recorder for Condition
92
- */
93
- export type ConditionRecorderPractitioner = {
94
- /** The GraphQL typename, always "Practitioner". */
95
- __typename: "Practitioner";
96
- /** An array of identifiers for the practitioner, or null if not available. */
97
- identifier: (Identifier | null)[] | null;
98
- /** An array of human names for the practitioner, or null if not available. */
99
- name: (HumanName | null)[] | null;
100
- };
101
- /**
102
- * Represents the entity that recorded the condition.
103
- *
104
- * @see ConditionRecorderPatient
105
- * @see ConditionRecorderPractitioner
99
+ * @title ConditionBundle
100
+ * @excerpt Bundle of condition search results
106
101
  */
107
- export type ConditionRecorder = ConditionRecorderPatient | ConditionRecorderPractitioner;
102
+ export type ConditionBundle = EntryBundle<ConditionEntry>;
@@ -14,6 +14,8 @@ export type { VitalSignGroupBundle, VitalSignGroup, } from "./vital-sign-group.j
14
14
  export type { MedicationGroupBundle, MedicationGroup, } from "./medication-group.js";
15
15
  export type { DiagnosticReportLabGroupBundle, DiagnosticReportLabGroup, } from "./diagnostic-report-lab-group.js";
16
16
  export type { CarePlanBundle, CarePlan } from "./care-plan.js";
17
- export type { Condition } from "./condition.js";
18
17
  export { ImmunizationBundle, Immunization } from "./immunization.js";
19
18
  export { Observation } from "./observation.js";
19
+ export { ConditionBundle, Condition } from "./condition.js";
20
+ export { ProcedureBundle, Procedure } from "./procedure.js";
21
+ export { VitalSignBundle } from "./vital-sign-bundle.js";
@@ -1,7 +1,6 @@
1
1
  import { Organization, Patient, Practitioner } from "../common/index.js";
2
- import { ServiceRequest } from "../common/service-request.js";
3
2
  import { Value } from "../common/value.js";
4
- import { Annotation, CodeableConcept, Component, HumanName, Identifier, Meta, Narrative, Period, Reference, ReferenceRange, Specimen } from "../index.js";
3
+ import { Annotation, CodeableConcept, Component, HumanName, Identifier, Meta, Narrative, Period, Reference, ReferenceRange, ServiceRequest, Specimen } from "../index.js";
5
4
  /**
6
5
  * Represents a observation resource.
7
6
  *
@@ -0,0 +1,81 @@
1
+ import { EntryBundle, IdentifiedResourceEntry } from "../common/bundle.js";
2
+ import { Annotation, CodeableConcept, Identifier, Location, Meta, Narrative, Organization, Patient, Period, Practitioner, Reference } from "../common/index.js";
3
+ /**
4
+ * Represents a clinical procedure performed on a patient.
5
+ *
6
+ * @category Models
7
+ * @title Procedure
8
+ * @excerpt Represents a clinical procedure performed on a patient.
9
+ */
10
+ export type Procedure = {
11
+ /** The type of resource. */
12
+ resourceType: "Procedure";
13
+ /** Logical id of the procedure resource. */
14
+ id: string;
15
+ /** Identifiers for the procedure. */
16
+ identifier: (Identifier | null)[] | null;
17
+ /** Metadata about the resource. */
18
+ meta: Meta | null;
19
+ /** Text summary of the resource, for human interpretation. */
20
+ text: Narrative | null;
21
+ /** Additional notes or comments about the procedure. */
22
+ note: (Annotation | null)[] | null;
23
+ /** The status of the procedure (e.g., completed, in-progress). */
24
+ status: string | null;
25
+ /** Classification of the procedure (e.g., surgical, diagnostic). */
26
+ category: CodeableConcept | null;
27
+ /** Specific procedure code (e.g., CPT, SNOMED). */
28
+ code: CodeableConcept | null;
29
+ /** Location where the procedure was performed. */
30
+ location: Reference<Location> | null;
31
+ /** Date and time when the procedure was performed. */
32
+ performedDateTime: string | null;
33
+ /** Period during which the procedure was performed. */
34
+ performedPeriod: Period | null;
35
+ /** Free-text description of when the procedure was performed. */
36
+ performedString: string | null;
37
+ /** List of people and organizations who performed the procedure. */
38
+ performer: (ProcedurePerformer | null)[] | null;
39
+ /** Reason codes for why the procedure was performed. */
40
+ reasonCode: (CodeableConcept | null)[] | null;
41
+ /** Anatomical site(s) on the patient where the procedure was performed. */
42
+ bodySite: (CodeableConcept | null)[] | null;
43
+ /** The result or outcome of the procedure. */
44
+ outcome: CodeableConcept | null;
45
+ /** Instructions or follow-up actions after the procedure. */
46
+ followUp: (CodeableConcept | null)[] | null;
47
+ /** Complications that occurred during or after the procedure. */
48
+ complication: (CodeableConcept | null)[] | null;
49
+ /** The patient on whom the procedure was performed. */
50
+ subject: Reference<Patient> | null;
51
+ /** The person who recorded the procedure. */
52
+ recorder: Reference<Patient | Practitioner> | null;
53
+ /** The person who asserted the procedure as having been performed. */
54
+ asserter: Reference<Patient | Practitioner> | null;
55
+ };
56
+ /**
57
+ * Indicates who performed the procedure.
58
+ *
59
+ * @category Models
60
+ * @title ProcedurePerformer
61
+ * @excerpt Indicates organization/practitioner who performed the procedure.
62
+ */
63
+ export type ProcedurePerformer = {
64
+ actor: Reference<Practitioner | Organization> | null;
65
+ };
66
+ /**
67
+ * Entry in a procedure bundle w. procedure resource and metadata.
68
+ *
69
+ * @category Models
70
+ * @title ProcedureEntry
71
+ * @excerpt Entry in a procedure bundle
72
+ */
73
+ export type ProcedureEntry = IdentifiedResourceEntry<Procedure>;
74
+ /**
75
+ * Bundle of procedure search results.
76
+ *
77
+ * @category Models
78
+ * @title ProcedureBundle
79
+ * @excerpt Bundle of procedure search results
80
+ */
81
+ export type ProcedureBundle = EntryBundle<ProcedureEntry>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,18 @@
1
+ import { EntryBundle, IdentifiedResourceEntry } from "../common/bundle.js";
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
+ /**
12
+ * Bundle of vital sign search results.
13
+ *
14
+ * @category Models
15
+ * @title VitalSignBundle
16
+ * @excerpt Bundle of vital sign search results
17
+ */
18
+ export type VitalSignBundle = EntryBundle<VitalSignEntry>;
@@ -0,0 +1 @@
1
+ export {};
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.1757440654",
3
+ "version": "2.0.0-alpha.0-rc.1757958971",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",