@healthcloudai/hc-sdk 3.13.4 → 3.15.1
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/index.cjs +495 -72
- package/dist/index.d.cts +2342 -1390
- package/dist/index.d.ts +2342 -1390
- package/dist/index.js +495 -72
- package/docs/clients/AthenaHealthClient.md +1 -1
- package/docs/clients/PatientClient.md +11 -0
- package/docs/docs-manifest.json +35 -3
- package/docs/examples/index.md +12 -1
- package/docs/index.md +12 -1
- package/docs/models/AssignImpiloDeviceRequest.md +17 -0
- package/docs/models/AssignImpiloDeviceResponse.md +20 -0
- package/docs/models/AthenaLabResult.md +2 -0
- package/docs/models/CancelTestOrderResponse.md +19 -0
- package/docs/models/CreateDeliveryOrderRequest.md +21 -0
- package/docs/models/DeliveryContact.md +24 -0
- package/docs/models/DeliveryOrder.md +30 -0
- package/docs/models/DeliveryPharmacy.md +25 -0
- package/docs/models/GetDefaultProviderResponse.md +2 -0
- package/docs/models/GetPatientResponse.md +1 -0
- package/docs/models/GetTestOrderResponse.md +44 -0
- package/docs/models/ImpiloDeviceItem.md +23 -0
- package/docs/models/ListDeliveryOrdersResponse.md +19 -0
- package/docs/models/ListImpiloDevicesResponse.md +18 -0
- package/docs/models/ListOrderItemsResponse.md +18 -0
- package/docs/models/ListTestOrdersResponse.md +18 -0
- package/docs/models/OrderItem.md +19 -0
- package/docs/models/OrderPriority.md +15 -0
- package/docs/models/OrderStatus.md +15 -0
- package/docs/models/PatientDemographics.md +1 -0
- package/docs/models/PlaceTestOrderRequest.md +43 -0
- package/docs/models/PlaceTestOrderResponse.md +44 -0
- package/docs/models/Specimen.md +30 -0
- package/docs/models/SpecimenStatus.md +15 -0
- package/docs/models/TestOrder.md +44 -0
- package/docs/models/_InsuranceOcrResult.md +1 -0
- package/docs/models/index.md +21 -0
- package/docs/operations/connectors.athenaAddLabResultDocument.md +2 -2
- package/docs/operations/connectors.athenaGetInsurancePackages.md +1 -1
- package/docs/operations/connectors.athenaGetLabResult.md +2 -0
- package/docs/operations/connectors.athenaListLabResults.md +2 -0
- package/docs/operations/fieldagent.listPatients.md +1 -0
- package/docs/operations/patient.addInsurance.md +48 -16
- package/docs/operations/patient.addPatientIntake.md +12 -1
- package/docs/operations/patient.assignImpiloDevice.md +112 -0
- package/docs/operations/patient.assistantOcrInsurance.md +64 -13
- package/docs/operations/patient.cancelTestOrder.md +152 -0
- package/docs/operations/patient.checkPatientInsuranceEligibility.md +133 -38
- package/docs/operations/patient.createDeliveryOrder.md +171 -0
- package/docs/operations/patient.getDefaultProvider.md +2 -0
- package/docs/operations/patient.getDeliveryOrder.md +156 -0
- package/docs/operations/patient.getPatient.md +1 -0
- package/docs/operations/patient.getPatientSidebarPatientSidebar.md +1 -0
- package/docs/operations/patient.getTestOrder.md +194 -0
- package/docs/operations/patient.importImpiloVitals.md +129 -0
- package/docs/operations/patient.listDeliveryOrders.md +156 -0
- package/docs/operations/patient.listImpiloDevices.md +100 -0
- package/docs/operations/patient.listOrderItems.md +129 -0
- package/docs/operations/patient.listTestOrders.md +201 -0
- package/docs/operations/patient.placeTestOrder.md +309 -0
- package/docs/operations/patient.submitPatientIntake.md +17 -3
- package/package.json +1 -1
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
# Place a diagnostic test order
|
|
2
|
+
|
|
3
|
+
Operation ID: `patient.placeTestOrder`
|
|
4
|
+
|
|
5
|
+
Place a diagnostic test order
|
|
6
|
+
|
|
7
|
+
## Public method
|
|
8
|
+
|
|
9
|
+
`placeTestOrder`
|
|
10
|
+
|
|
11
|
+
Signature: `patient.placeTestOrder(request)`
|
|
12
|
+
|
|
13
|
+
Return type: `Promise<PlaceTestOrderResponse>`
|
|
14
|
+
|
|
15
|
+
## Authentication
|
|
16
|
+
|
|
17
|
+
Classification: **AUTHENTICATED**
|
|
18
|
+
|
|
19
|
+
Schemes: `bearerAuth`
|
|
20
|
+
|
|
21
|
+
## Prerequisites
|
|
22
|
+
|
|
23
|
+
None documented.
|
|
24
|
+
|
|
25
|
+
## HTTP
|
|
26
|
+
|
|
27
|
+
`POST /patients/orders`
|
|
28
|
+
|
|
29
|
+
## Path parameters
|
|
30
|
+
|
|
31
|
+
None.
|
|
32
|
+
|
|
33
|
+
## Query parameters
|
|
34
|
+
|
|
35
|
+
None.
|
|
36
|
+
|
|
37
|
+
## Body parameters
|
|
38
|
+
|
|
39
|
+
| Name | Type | Required | Format | Allowed values | Default | Nullable | Description |
|
|
40
|
+
|---|---|---:|---|---|---|---:|---|
|
|
41
|
+
| `body` | [`PlaceTestOrderRequest`](../models/PlaceTestOrderRequest.md) | Yes | | | | No | |
|
|
42
|
+
|
|
43
|
+
Request model: [`PlaceTestOrderRequest`](../models/PlaceTestOrderRequest.md)
|
|
44
|
+
|
|
45
|
+
## Request example
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{
|
|
49
|
+
"cpt_code": "string",
|
|
50
|
+
"diagnosis_codes": [
|
|
51
|
+
"string"
|
|
52
|
+
],
|
|
53
|
+
"display": "string",
|
|
54
|
+
"encounter_id": "string",
|
|
55
|
+
"fasting_required": false,
|
|
56
|
+
"idempotency_key": "00000000-0000-0000-0000-000000000000",
|
|
57
|
+
"lab_name": "string",
|
|
58
|
+
"loinc_code": "string",
|
|
59
|
+
"notes": "string",
|
|
60
|
+
"occurrence_date": "2026-01-01",
|
|
61
|
+
"occurrence_datetime": "2026-01-01T09:00:00Z",
|
|
62
|
+
"performer_name": "string",
|
|
63
|
+
"priority": "routine",
|
|
64
|
+
"reason": "string",
|
|
65
|
+
"requester_name": "string",
|
|
66
|
+
"requester_npi": "string",
|
|
67
|
+
"requisition_number": "string",
|
|
68
|
+
"snomed_code": "string",
|
|
69
|
+
"standing_order": false,
|
|
70
|
+
"test_name": "string"
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Success responses
|
|
75
|
+
|
|
76
|
+
| Status | Shape | Content type | Description |
|
|
77
|
+
|---|---|---|---|
|
|
78
|
+
| `200` | [`PlaceTestOrderResponse`](../models/PlaceTestOrderResponse.md) | application/json | Existing order returned for the same idempotency key |
|
|
79
|
+
| `201` | [`PlaceTestOrderResponse`](../models/PlaceTestOrderResponse.md) | application/json | Test order placed |
|
|
80
|
+
|
|
81
|
+
## Success response examples
|
|
82
|
+
|
|
83
|
+
### 200
|
|
84
|
+
|
|
85
|
+
```json
|
|
86
|
+
{
|
|
87
|
+
"athena_encounter_id": "string",
|
|
88
|
+
"athena_order_id": "string",
|
|
89
|
+
"athena_order_status": "string",
|
|
90
|
+
"authored_on": "2026-01-01",
|
|
91
|
+
"cpt_code": "string",
|
|
92
|
+
"diagnosis_codes": [
|
|
93
|
+
"string"
|
|
94
|
+
],
|
|
95
|
+
"display": "string",
|
|
96
|
+
"encounter_id": "string",
|
|
97
|
+
"fasting_required": false,
|
|
98
|
+
"fhir_id": "string",
|
|
99
|
+
"intent": "order",
|
|
100
|
+
"lab_name": "string",
|
|
101
|
+
"loinc_code": "string",
|
|
102
|
+
"notes": "string",
|
|
103
|
+
"occurrence_date": "2026-01-01",
|
|
104
|
+
"occurrence_datetime": "2026-01-01T09:00:00Z",
|
|
105
|
+
"order_id": "string",
|
|
106
|
+
"patient_fhir_id": "string",
|
|
107
|
+
"performer_name": "string",
|
|
108
|
+
"priority": "routine",
|
|
109
|
+
"reason": "string",
|
|
110
|
+
"requester_name": "string",
|
|
111
|
+
"requester_npi": "string",
|
|
112
|
+
"requisition_number": "string",
|
|
113
|
+
"snomed_code": "string",
|
|
114
|
+
"specimen": {
|
|
115
|
+
"accession_number": "string",
|
|
116
|
+
"body_site": "string",
|
|
117
|
+
"collected_by": "string",
|
|
118
|
+
"collection_date": "2026-01-01",
|
|
119
|
+
"collection_datetime": "2026-01-01T09:00:00Z",
|
|
120
|
+
"condition": "string",
|
|
121
|
+
"container": "string",
|
|
122
|
+
"fhir_id": "string",
|
|
123
|
+
"notes": "string",
|
|
124
|
+
"received_datetime": "2026-01-01T09:00:00Z",
|
|
125
|
+
"specimen_id": "00000000-0000-0000-0000-000000000000",
|
|
126
|
+
"status": "available",
|
|
127
|
+
"type": "blood",
|
|
128
|
+
"volume_ml": 1
|
|
129
|
+
},
|
|
130
|
+
"standing_order": false,
|
|
131
|
+
"status": "active"
|
|
132
|
+
}
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### 201
|
|
136
|
+
|
|
137
|
+
```json
|
|
138
|
+
{
|
|
139
|
+
"athena_encounter_id": "string",
|
|
140
|
+
"athena_order_id": "string",
|
|
141
|
+
"athena_order_status": "string",
|
|
142
|
+
"authored_on": "2026-01-01",
|
|
143
|
+
"cpt_code": "string",
|
|
144
|
+
"diagnosis_codes": [
|
|
145
|
+
"string"
|
|
146
|
+
],
|
|
147
|
+
"display": "string",
|
|
148
|
+
"encounter_id": "string",
|
|
149
|
+
"fasting_required": false,
|
|
150
|
+
"fhir_id": "string",
|
|
151
|
+
"intent": "order",
|
|
152
|
+
"lab_name": "string",
|
|
153
|
+
"loinc_code": "string",
|
|
154
|
+
"notes": "string",
|
|
155
|
+
"occurrence_date": "2026-01-01",
|
|
156
|
+
"occurrence_datetime": "2026-01-01T09:00:00Z",
|
|
157
|
+
"order_id": "string",
|
|
158
|
+
"patient_fhir_id": "string",
|
|
159
|
+
"performer_name": "string",
|
|
160
|
+
"priority": "routine",
|
|
161
|
+
"reason": "string",
|
|
162
|
+
"requester_name": "string",
|
|
163
|
+
"requester_npi": "string",
|
|
164
|
+
"requisition_number": "string",
|
|
165
|
+
"snomed_code": "string",
|
|
166
|
+
"specimen": {
|
|
167
|
+
"accession_number": "string",
|
|
168
|
+
"body_site": "string",
|
|
169
|
+
"collected_by": "string",
|
|
170
|
+
"collection_date": "2026-01-01",
|
|
171
|
+
"collection_datetime": "2026-01-01T09:00:00Z",
|
|
172
|
+
"condition": "string",
|
|
173
|
+
"container": "string",
|
|
174
|
+
"fhir_id": "string",
|
|
175
|
+
"notes": "string",
|
|
176
|
+
"received_datetime": "2026-01-01T09:00:00Z",
|
|
177
|
+
"specimen_id": "00000000-0000-0000-0000-000000000000",
|
|
178
|
+
"status": "available",
|
|
179
|
+
"type": "blood",
|
|
180
|
+
"volume_ml": 1
|
|
181
|
+
},
|
|
182
|
+
"standing_order": false,
|
|
183
|
+
"status": "active"
|
|
184
|
+
}
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
## Common errors
|
|
188
|
+
|
|
189
|
+
| Status | Shape | Content type | Description |
|
|
190
|
+
|---|---|---|---|
|
|
191
|
+
| `400` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | |
|
|
192
|
+
| `401` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | Authorization required — missing or invalid Bearer JWT |
|
|
193
|
+
| `404` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | |
|
|
194
|
+
| `409` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | |
|
|
195
|
+
| `502` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | |
|
|
196
|
+
|
|
197
|
+
## Error examples
|
|
198
|
+
|
|
199
|
+
### 400
|
|
200
|
+
|
|
201
|
+
```json
|
|
202
|
+
{
|
|
203
|
+
"details": [
|
|
204
|
+
{}
|
|
205
|
+
],
|
|
206
|
+
"error": "string"
|
|
207
|
+
}
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### 401
|
|
211
|
+
|
|
212
|
+
```json
|
|
213
|
+
{
|
|
214
|
+
"details": [
|
|
215
|
+
{}
|
|
216
|
+
],
|
|
217
|
+
"error": "string"
|
|
218
|
+
}
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### 404
|
|
222
|
+
|
|
223
|
+
```json
|
|
224
|
+
{
|
|
225
|
+
"details": [
|
|
226
|
+
{}
|
|
227
|
+
],
|
|
228
|
+
"error": "string"
|
|
229
|
+
}
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### 409
|
|
233
|
+
|
|
234
|
+
```json
|
|
235
|
+
{
|
|
236
|
+
"details": [
|
|
237
|
+
{}
|
|
238
|
+
],
|
|
239
|
+
"error": "string"
|
|
240
|
+
}
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
### 502
|
|
244
|
+
|
|
245
|
+
```json
|
|
246
|
+
{
|
|
247
|
+
"details": [
|
|
248
|
+
{}
|
|
249
|
+
],
|
|
250
|
+
"error": "string"
|
|
251
|
+
}
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
## NodeJS / TypeScript implementation
|
|
255
|
+
|
|
256
|
+
```ts
|
|
257
|
+
import { HCSDK } from "@healthcloudai/hc-sdk";
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
```ts
|
|
261
|
+
const request = {
|
|
262
|
+
"cpt_code": "string",
|
|
263
|
+
"diagnosis_codes": [
|
|
264
|
+
"string"
|
|
265
|
+
],
|
|
266
|
+
"display": "string",
|
|
267
|
+
"encounter_id": "string",
|
|
268
|
+
"fasting_required": false,
|
|
269
|
+
"idempotency_key": "00000000-0000-0000-0000-000000000000",
|
|
270
|
+
"lab_name": "string",
|
|
271
|
+
"loinc_code": "string",
|
|
272
|
+
"notes": "string",
|
|
273
|
+
"occurrence_date": "2026-01-01",
|
|
274
|
+
"occurrence_datetime": "2026-01-01T09:00:00Z",
|
|
275
|
+
"performer_name": "string",
|
|
276
|
+
"priority": "routine",
|
|
277
|
+
"reason": "string",
|
|
278
|
+
"requester_name": "string",
|
|
279
|
+
"requester_npi": "string",
|
|
280
|
+
"requisition_number": "string",
|
|
281
|
+
"snomed_code": "string",
|
|
282
|
+
"standing_order": false,
|
|
283
|
+
"test_name": "string"
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
const result = await patient.placeTestOrder(request);
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
## cURL
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
curl -X POST \
|
|
293
|
+
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
|
|
294
|
+
-H 'Content-Type: application/json' \
|
|
295
|
+
-d '{"cpt_code":"string","diagnosis_codes":["string"],"display":"string","encounter_id":"string","fasting_required":false,"idempotency_key":"00000000-0000-0000-0000-000000000000","lab_name":"string","loinc_code":"string","notes":"string","occurrence_date":"2026-01-01","occurrence_datetime":"2026-01-01T09:00:00Z","performer_name":"string","priority":"routine","reason":"string","requester_name":"string","requester_npi":"string","requisition_number":"string","snomed_code":"string","standing_order":false,"test_name":"string"}' \
|
|
296
|
+
'https://dev-api-patient.health.cloud/patients/orders'
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
## Notes
|
|
300
|
+
|
|
301
|
+
None.
|
|
302
|
+
|
|
303
|
+
## Prepared Test Console scenario
|
|
304
|
+
|
|
305
|
+
No canonical scenario is currently associated.
|
|
306
|
+
|
|
307
|
+
## Real response
|
|
308
|
+
|
|
309
|
+
No approved real integration response is currently published. Unapproved candidates are never rendered as examples.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Operation ID: `patient.submitPatientIntake`
|
|
4
4
|
|
|
5
|
-
Additive intake for the authenticated patient. Each POST creates a new submission; repeated requests can create duplicate records. The server assigns all identifiers. Vendor status is separate from FHIR storage success.
|
|
5
|
+
Additive intake for the authenticated patient, linked to the patient's existing current open FHIR encounter. Returns 409 before writes when no valid open encounter exists. Each POST creates a new submission; repeated requests can create duplicate records. The server assigns all identifiers. Vendor status is separate from FHIR storage success.
|
|
6
6
|
|
|
7
7
|
## Public method
|
|
8
8
|
|
|
@@ -231,6 +231,12 @@ Request model: [`PatientIntakeRequest`](../models/PatientIntakeRequest.md)
|
|
|
231
231
|
"diet_category": "carbohydrate",
|
|
232
232
|
"diet_description": "string",
|
|
233
233
|
"education": "less_than_high_school",
|
|
234
|
+
"ehr_answers": [
|
|
235
|
+
{
|
|
236
|
+
"question_key": "string",
|
|
237
|
+
"value": "string"
|
|
238
|
+
}
|
|
239
|
+
],
|
|
234
240
|
"employer": "string",
|
|
235
241
|
"exercise_frequency": "sedentary",
|
|
236
242
|
"exercise_minutes_per_week": 0,
|
|
@@ -354,7 +360,9 @@ Request model: [`PatientIntakeRequest`](../models/PatientIntakeRequest.md)
|
|
|
354
360
|
|
|
355
361
|
## Common errors
|
|
356
362
|
|
|
357
|
-
|
|
363
|
+
| Status | Shape | Content type | Description |
|
|
364
|
+
|---|---|---|---|
|
|
365
|
+
| `409` | `unknown` | application/json | An existing open encounter belonging to the patient is required |
|
|
358
366
|
|
|
359
367
|
## Error examples
|
|
360
368
|
|
|
@@ -553,6 +561,12 @@ const request = {
|
|
|
553
561
|
"diet_category": "carbohydrate",
|
|
554
562
|
"diet_description": "string",
|
|
555
563
|
"education": "less_than_high_school",
|
|
564
|
+
"ehr_answers": [
|
|
565
|
+
{
|
|
566
|
+
"question_key": "string",
|
|
567
|
+
"value": "string"
|
|
568
|
+
}
|
|
569
|
+
],
|
|
556
570
|
"employer": "string",
|
|
557
571
|
"exercise_frequency": "sedentary",
|
|
558
572
|
"exercise_minutes_per_week": 0,
|
|
@@ -659,7 +673,7 @@ const result = await patient.submitPatientIntake(request);
|
|
|
659
673
|
curl -X POST \
|
|
660
674
|
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
|
|
661
675
|
-H 'Content-Type: application/json' \
|
|
662
|
-
-d '{"allergies":[{"allergen":"string","allergen_code":{"code":"string","display":"string","system":"string"},"asserted_date":"2026-01-01","category":"food","criticality":"unable-to-assess","intolerance_type":"allergy","notes":"string","onset_date":"2026-01-01","reactions":[{"manifestation":"string","manifestation_code":{"code":"string","display":"string"},"notes":"string","onset":"2026-01-01","severity":"mild"}],"resolved_date":"2026-01-01","status":"active"}],"cancer_cases":[{"biomarkers":{},"cancer_type":"string","diagnosis_date":"2026-01-01","diagnosis_method":"string","grade":"string","histology":"string","histology_code":"string","icd10_code":"string","laterality":"not_applicable","metastatic_sites":["string"],"notes":"string","primary_site":"string","recurrence_date":"2026-01-01","remission_date":"2026-01-01","snomed_code":"string","stage":"0","subsite":"string","tnm":{"clinical":true,"edition":"string","m":"string","n":"string","t":"string"},"treatments":[{"description":"string","end_date":"2026-01-01","facility":"string","modality":"surgery","notes":"string","provider_name":"string","response":"string","start_date":"2026-01-01","status":"completed"}]}],"family_history":[{"age_at_death":0,"biological":true,"born_date":"2026-01-01","cause_of_death":"string","conditions":[{"age_at_death":0,"age_at_onset":0,"condition":"string","icd10_code":"string","notes":"string","snomed_code":"string"}],"deceased":true,"member_name":"string","notes":"string","recorded_date":"2026-01-01","relationship":"mother","sex":"string","status":"completed"}],"gyn_history":[{"cervical_screening_history":"string","contraception":"string","last_menstrual_period":"2026-01-01","menarche_age":0,"menopause_age":0,"menstrual_history":"string","notes":"string","pregnancy_history":"string"}],"medications":[{"authored_on":"2026-01-01","brand_name":"string","discontinued_reason":"string","dosage":{"duration_days":1,"frequency":"once","frequency_details":"string","instructions":"string","max_daily_dose":0,"max_daily_dose_unit":"string","unit":"string","value":1},"end_date":"2026-01-01","generic_name":"string","indication":"string","name":"string","ndc_code":"string","notes":"string","pharmacy":"string","prescriber_name":"string","refills_authorized":0,"refills_remaining":0,"route":"oral","rxnorm_code":"string","start_date":"2026-01-01","status":"active"}],"perinatal_history":[{"delivery_date":"2026-01-01","delivery_method":"string","gestational_age_weeks":0,"maternal_complications":"string","neonatal_complications":"string","notes":"string","outcome":"string","pregnancy_year":1900}],"problems":[{"asserted_date":"2026-01-01","body_site":"string","categories":["problem-list-item"],"clinical_status":"active","description":"string","icd10_code":"string","laterality":"string","notes":"string","onset_age":0,"onset_date":"2026-01-01","recorded_date":"2026-01-01T09:00:00Z","resolved_date":"2026-01-01","severity":"mild","snomed_code":"string"}],"social_history":[{"alcohol":{"binge_drinking":true,"drinks_per_week":0,"frequency":"unknown","notes":"string"},"contraception":"string","diet_category":"carbohydrate","diet_description":"string","education":"less_than_high_school","employer":"string","exercise_frequency":"sedentary","exercise_minutes_per_week":0,"gender_identity":"man","living_situation":"alone","notes":"string","number_of_dependents":0,"occupation":"string","occupational_exposures":["string"],"sexual_orientation":"heterosexual","sexually_active":true,"substances":[{"frequency":"string","notes":"string","quit_year":0,"route":"string","start_year":0,"status":"unknown","substance":"string"}],"tobacco":{"cessation_aids":"string","cigarettes_per_day":0,"pack_years":0,"quit_year":0,"start_year":0,"status":"unknown"},"travel_history":["string"]}],"surgical_history":[{"anesthesia_type":"string","body_sites":["string"],"complications":["string"],"cpt_code":"string","description":"string","facility":"string","indication":"string","laterality":"left","notes":"string","outcome":"string","performed_date":"2026-01-01","performed_date_end":"2026-01-01","performer_name":"string","snomed_code":"string","status":"completed"}],"vaccines":[{"administered_by":"string","administered_date":"2026-01-01","administered_datetime":"2026-01-01T09:00:00Z","cvx_code":"string","dose_number":1,"dose_quantity":0,"dose_unit":"string","expiration_date":"2026-01-01","lot_number":"string","manufacturer":"string","mvx_code":"string","not_done_reason":"string","notes":"string","reactions":[{"notes":"string","onset_date":"2026-01-01","reaction":"string","severity":"mild"}],"reason_codes":["string"],"route":"intramuscular","series_doses":1,"series_name":"string","site":"left_deltoid","status":"completed","vaccine_name":"string","vis_document_date":"2026-01-01"}]}' \
|
|
676
|
+
-d '{"allergies":[{"allergen":"string","allergen_code":{"code":"string","display":"string","system":"string"},"asserted_date":"2026-01-01","category":"food","criticality":"unable-to-assess","intolerance_type":"allergy","notes":"string","onset_date":"2026-01-01","reactions":[{"manifestation":"string","manifestation_code":{"code":"string","display":"string"},"notes":"string","onset":"2026-01-01","severity":"mild"}],"resolved_date":"2026-01-01","status":"active"}],"cancer_cases":[{"biomarkers":{},"cancer_type":"string","diagnosis_date":"2026-01-01","diagnosis_method":"string","grade":"string","histology":"string","histology_code":"string","icd10_code":"string","laterality":"not_applicable","metastatic_sites":["string"],"notes":"string","primary_site":"string","recurrence_date":"2026-01-01","remission_date":"2026-01-01","snomed_code":"string","stage":"0","subsite":"string","tnm":{"clinical":true,"edition":"string","m":"string","n":"string","t":"string"},"treatments":[{"description":"string","end_date":"2026-01-01","facility":"string","modality":"surgery","notes":"string","provider_name":"string","response":"string","start_date":"2026-01-01","status":"completed"}]}],"family_history":[{"age_at_death":0,"biological":true,"born_date":"2026-01-01","cause_of_death":"string","conditions":[{"age_at_death":0,"age_at_onset":0,"condition":"string","icd10_code":"string","notes":"string","snomed_code":"string"}],"deceased":true,"member_name":"string","notes":"string","recorded_date":"2026-01-01","relationship":"mother","sex":"string","status":"completed"}],"gyn_history":[{"cervical_screening_history":"string","contraception":"string","last_menstrual_period":"2026-01-01","menarche_age":0,"menopause_age":0,"menstrual_history":"string","notes":"string","pregnancy_history":"string"}],"medications":[{"authored_on":"2026-01-01","brand_name":"string","discontinued_reason":"string","dosage":{"duration_days":1,"frequency":"once","frequency_details":"string","instructions":"string","max_daily_dose":0,"max_daily_dose_unit":"string","unit":"string","value":1},"end_date":"2026-01-01","generic_name":"string","indication":"string","name":"string","ndc_code":"string","notes":"string","pharmacy":"string","prescriber_name":"string","refills_authorized":0,"refills_remaining":0,"route":"oral","rxnorm_code":"string","start_date":"2026-01-01","status":"active"}],"perinatal_history":[{"delivery_date":"2026-01-01","delivery_method":"string","gestational_age_weeks":0,"maternal_complications":"string","neonatal_complications":"string","notes":"string","outcome":"string","pregnancy_year":1900}],"problems":[{"asserted_date":"2026-01-01","body_site":"string","categories":["problem-list-item"],"clinical_status":"active","description":"string","icd10_code":"string","laterality":"string","notes":"string","onset_age":0,"onset_date":"2026-01-01","recorded_date":"2026-01-01T09:00:00Z","resolved_date":"2026-01-01","severity":"mild","snomed_code":"string"}],"social_history":[{"alcohol":{"binge_drinking":true,"drinks_per_week":0,"frequency":"unknown","notes":"string"},"contraception":"string","diet_category":"carbohydrate","diet_description":"string","education":"less_than_high_school","ehr_answers":[{"question_key":"string","value":"string"}],"employer":"string","exercise_frequency":"sedentary","exercise_minutes_per_week":0,"gender_identity":"man","living_situation":"alone","notes":"string","number_of_dependents":0,"occupation":"string","occupational_exposures":["string"],"sexual_orientation":"heterosexual","sexually_active":true,"substances":[{"frequency":"string","notes":"string","quit_year":0,"route":"string","start_year":0,"status":"unknown","substance":"string"}],"tobacco":{"cessation_aids":"string","cigarettes_per_day":0,"pack_years":0,"quit_year":0,"start_year":0,"status":"unknown"},"travel_history":["string"]}],"surgical_history":[{"anesthesia_type":"string","body_sites":["string"],"complications":["string"],"cpt_code":"string","description":"string","facility":"string","indication":"string","laterality":"left","notes":"string","outcome":"string","performed_date":"2026-01-01","performed_date_end":"2026-01-01","performer_name":"string","snomed_code":"string","status":"completed"}],"vaccines":[{"administered_by":"string","administered_date":"2026-01-01","administered_datetime":"2026-01-01T09:00:00Z","cvx_code":"string","dose_number":1,"dose_quantity":0,"dose_unit":"string","expiration_date":"2026-01-01","lot_number":"string","manufacturer":"string","mvx_code":"string","not_done_reason":"string","notes":"string","reactions":[{"notes":"string","onset_date":"2026-01-01","reaction":"string","severity":"mild"}],"reason_codes":["string"],"route":"intramuscular","series_doses":1,"series_name":"string","site":"left_deltoid","status":"completed","vaccine_name":"string","vis_document_date":"2026-01-01"}]}' \
|
|
663
677
|
'https://dev-api-patient.health.cloud/patients/health-record/intake'
|
|
664
678
|
```
|
|
665
679
|
|
package/package.json
CHANGED