@openfn/language-fhir-4 0.5.0 → 0.5.2
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 +278 -272
- package/dist/index.js +278 -272
- package/package.json +6 -6
- package/types/typedefs.d.ts +244 -0
- package/types/util.d.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -914,8 +914,8 @@ function ActivityDefinition_default(props) {
|
|
|
914
914
|
if (!Array.isArray(props.jurisdiction)) {
|
|
915
915
|
props.jurisdiction = [props.jurisdiction];
|
|
916
916
|
}
|
|
917
|
-
resource.jurisdiction =
|
|
918
|
-
lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction",
|
|
917
|
+
resource.jurisdiction = props.jurisdiction.map(
|
|
918
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
|
|
919
919
|
);
|
|
920
920
|
ensureConceptText(resource.jurisdiction);
|
|
921
921
|
}
|
|
@@ -923,8 +923,8 @@ function ActivityDefinition_default(props) {
|
|
|
923
923
|
if (!Array.isArray(props.topic)) {
|
|
924
924
|
props.topic = [props.topic];
|
|
925
925
|
}
|
|
926
|
-
resource.topic =
|
|
927
|
-
lookupValue("http://hl7.org/fhir/ValueSet/definition-topic",
|
|
926
|
+
resource.topic = props.topic.map(
|
|
927
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", x))
|
|
928
928
|
);
|
|
929
929
|
ensureConceptText(resource.topic);
|
|
930
930
|
}
|
|
@@ -960,7 +960,9 @@ function ActivityDefinition_default(props) {
|
|
|
960
960
|
if (!Array.isArray(props.bodySite)) {
|
|
961
961
|
props.bodySite = [props.bodySite];
|
|
962
962
|
}
|
|
963
|
-
resource.bodySite =
|
|
963
|
+
resource.bodySite = props.bodySite.map(
|
|
964
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/body-site", x))
|
|
965
|
+
);
|
|
964
966
|
ensureConceptText(resource.bodySite);
|
|
965
967
|
}
|
|
966
968
|
if (!_4.isNil(props.specimenRequirement)) {
|
|
@@ -1040,8 +1042,8 @@ function AdministrableProductDefinition_default(props) {
|
|
|
1040
1042
|
if (!Array.isArray(props.ingredient)) {
|
|
1041
1043
|
props.ingredient = [props.ingredient];
|
|
1042
1044
|
}
|
|
1043
|
-
resource.ingredient =
|
|
1044
|
-
lookupValue("http://hl7.org/fhir/ValueSet/substance-codes",
|
|
1045
|
+
resource.ingredient = props.ingredient.map(
|
|
1046
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/substance-codes", x))
|
|
1045
1047
|
);
|
|
1046
1048
|
ensureConceptText(resource.ingredient);
|
|
1047
1049
|
}
|
|
@@ -1091,8 +1093,8 @@ function AdverseEvent_default(props) {
|
|
|
1091
1093
|
if (!Array.isArray(props.category)) {
|
|
1092
1094
|
props.category = [props.category];
|
|
1093
1095
|
}
|
|
1094
|
-
resource.category =
|
|
1095
|
-
lookupValue("http://hl7.org/fhir/ValueSet/adverse-event-category",
|
|
1096
|
+
resource.category = props.category.map(
|
|
1097
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/adverse-event-category", x))
|
|
1096
1098
|
);
|
|
1097
1099
|
ensureConceptText(resource.category);
|
|
1098
1100
|
}
|
|
@@ -1269,8 +1271,8 @@ function Appointment_default(props) {
|
|
|
1269
1271
|
if (!Array.isArray(props.serviceCategory)) {
|
|
1270
1272
|
props.serviceCategory = [props.serviceCategory];
|
|
1271
1273
|
}
|
|
1272
|
-
resource.serviceCategory =
|
|
1273
|
-
lookupValue("http://hl7.org/fhir/ValueSet/service-category",
|
|
1274
|
+
resource.serviceCategory = props.serviceCategory.map(
|
|
1275
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/service-category", x))
|
|
1274
1276
|
);
|
|
1275
1277
|
ensureConceptText(resource.serviceCategory);
|
|
1276
1278
|
}
|
|
@@ -1278,8 +1280,8 @@ function Appointment_default(props) {
|
|
|
1278
1280
|
if (!Array.isArray(props.serviceType)) {
|
|
1279
1281
|
props.serviceType = [props.serviceType];
|
|
1280
1282
|
}
|
|
1281
|
-
resource.serviceType =
|
|
1282
|
-
lookupValue("http://hl7.org/fhir/ValueSet/service-type",
|
|
1283
|
+
resource.serviceType = props.serviceType.map(
|
|
1284
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/service-type", x))
|
|
1283
1285
|
);
|
|
1284
1286
|
ensureConceptText(resource.serviceType);
|
|
1285
1287
|
}
|
|
@@ -1287,8 +1289,8 @@ function Appointment_default(props) {
|
|
|
1287
1289
|
if (!Array.isArray(props.specialty)) {
|
|
1288
1290
|
props.specialty = [props.specialty];
|
|
1289
1291
|
}
|
|
1290
|
-
resource.specialty =
|
|
1291
|
-
lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes",
|
|
1292
|
+
resource.specialty = props.specialty.map(
|
|
1293
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes", x))
|
|
1292
1294
|
);
|
|
1293
1295
|
ensureConceptText(resource.specialty);
|
|
1294
1296
|
}
|
|
@@ -1302,8 +1304,8 @@ function Appointment_default(props) {
|
|
|
1302
1304
|
if (!Array.isArray(props.reasonCode)) {
|
|
1303
1305
|
props.reasonCode = [props.reasonCode];
|
|
1304
1306
|
}
|
|
1305
|
-
resource.reasonCode =
|
|
1306
|
-
lookupValue("http://hl7.org/fhir/ValueSet/encounter-reason",
|
|
1307
|
+
resource.reasonCode = props.reasonCode.map(
|
|
1308
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/encounter-reason", x))
|
|
1307
1309
|
);
|
|
1308
1310
|
ensureConceptText(resource.reasonCode);
|
|
1309
1311
|
}
|
|
@@ -1367,9 +1369,8 @@ function AppointmentResponse_default(props) {
|
|
|
1367
1369
|
if (!Array.isArray(props.participantType)) {
|
|
1368
1370
|
props.participantType = [props.participantType];
|
|
1369
1371
|
}
|
|
1370
|
-
resource.participantType = concept(
|
|
1371
|
-
"http://hl7.org/fhir/ValueSet/encounter-participant-type",
|
|
1372
|
-
props.participantType
|
|
1372
|
+
resource.participantType = props.participantType.map((x) => concept(
|
|
1373
|
+
lookupValue("http://hl7.org/fhir/ValueSet/encounter-participant-type", x)
|
|
1373
1374
|
));
|
|
1374
1375
|
ensureConceptText(resource.participantType);
|
|
1375
1376
|
}
|
|
@@ -1478,9 +1479,8 @@ function BodyStructure_default(props) {
|
|
|
1478
1479
|
if (!Array.isArray(props.locationQualifier)) {
|
|
1479
1480
|
props.locationQualifier = [props.locationQualifier];
|
|
1480
1481
|
}
|
|
1481
|
-
resource.locationQualifier = concept(
|
|
1482
|
-
"http://hl7.org/fhir/ValueSet/bodystructure-relative-location",
|
|
1483
|
-
props.locationQualifier
|
|
1482
|
+
resource.locationQualifier = props.locationQualifier.map((x) => concept(
|
|
1483
|
+
lookupValue("http://hl7.org/fhir/ValueSet/bodystructure-relative-location", x)
|
|
1484
1484
|
));
|
|
1485
1485
|
ensureConceptText(resource.locationQualifier);
|
|
1486
1486
|
}
|
|
@@ -1525,8 +1525,8 @@ function CarePlan_default(props) {
|
|
|
1525
1525
|
if (!Array.isArray(props.category)) {
|
|
1526
1526
|
props.category = [props.category];
|
|
1527
1527
|
}
|
|
1528
|
-
resource.category =
|
|
1529
|
-
lookupValue("http://hl7.org/fhir/ValueSet/care-plan-category",
|
|
1528
|
+
resource.category = props.category.map(
|
|
1529
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/care-plan-category", x))
|
|
1530
1530
|
);
|
|
1531
1531
|
ensureConceptText(resource.category);
|
|
1532
1532
|
}
|
|
@@ -1602,8 +1602,8 @@ function CareTeam_default(props) {
|
|
|
1602
1602
|
if (!Array.isArray(props.category)) {
|
|
1603
1603
|
props.category = [props.category];
|
|
1604
1604
|
}
|
|
1605
|
-
resource.category =
|
|
1606
|
-
lookupValue("http://hl7.org/fhir/ValueSet/care-team-category",
|
|
1605
|
+
resource.category = props.category.map(
|
|
1606
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/care-team-category", x))
|
|
1607
1607
|
);
|
|
1608
1608
|
ensureConceptText(resource.category);
|
|
1609
1609
|
}
|
|
@@ -1630,8 +1630,8 @@ function CareTeam_default(props) {
|
|
|
1630
1630
|
if (!Array.isArray(props.reasonCode)) {
|
|
1631
1631
|
props.reasonCode = [props.reasonCode];
|
|
1632
1632
|
}
|
|
1633
|
-
resource.reasonCode =
|
|
1634
|
-
lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings",
|
|
1633
|
+
resource.reasonCode = props.reasonCode.map(
|
|
1634
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings", x))
|
|
1635
1635
|
);
|
|
1636
1636
|
ensureConceptText(resource.reasonCode);
|
|
1637
1637
|
}
|
|
@@ -1711,7 +1711,9 @@ function ChargeItem_default(props) {
|
|
|
1711
1711
|
if (!Array.isArray(props.bodysite)) {
|
|
1712
1712
|
props.bodysite = [props.bodysite];
|
|
1713
1713
|
}
|
|
1714
|
-
resource.bodysite =
|
|
1714
|
+
resource.bodysite = props.bodysite.map(
|
|
1715
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/body-site", x))
|
|
1716
|
+
);
|
|
1715
1717
|
ensureConceptText(resource.bodysite);
|
|
1716
1718
|
}
|
|
1717
1719
|
if (!_14.isNil(props.enterer)) {
|
|
@@ -1721,7 +1723,9 @@ function ChargeItem_default(props) {
|
|
|
1721
1723
|
if (!Array.isArray(props.reason)) {
|
|
1722
1724
|
props.reason = [props.reason];
|
|
1723
1725
|
}
|
|
1724
|
-
resource.reason =
|
|
1726
|
+
resource.reason = props.reason.map(
|
|
1727
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/icd-10", x))
|
|
1728
|
+
);
|
|
1725
1729
|
ensureConceptText(resource.reason);
|
|
1726
1730
|
}
|
|
1727
1731
|
if (!_14.isNil(props.service)) {
|
|
@@ -1766,8 +1770,8 @@ function ChargeItemDefinition_default(props) {
|
|
|
1766
1770
|
if (!Array.isArray(props.jurisdiction)) {
|
|
1767
1771
|
props.jurisdiction = [props.jurisdiction];
|
|
1768
1772
|
}
|
|
1769
|
-
resource.jurisdiction =
|
|
1770
|
-
lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction",
|
|
1773
|
+
resource.jurisdiction = props.jurisdiction.map(
|
|
1774
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
|
|
1771
1775
|
);
|
|
1772
1776
|
ensureConceptText(resource.jurisdiction);
|
|
1773
1777
|
}
|
|
@@ -1829,8 +1833,8 @@ function Citation_default(props) {
|
|
|
1829
1833
|
if (!Array.isArray(props.jurisdiction)) {
|
|
1830
1834
|
props.jurisdiction = [props.jurisdiction];
|
|
1831
1835
|
}
|
|
1832
|
-
resource.jurisdiction =
|
|
1833
|
-
lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction",
|
|
1836
|
+
resource.jurisdiction = props.jurisdiction.map(
|
|
1837
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
|
|
1834
1838
|
);
|
|
1835
1839
|
ensureConceptText(resource.jurisdiction);
|
|
1836
1840
|
}
|
|
@@ -1864,8 +1868,8 @@ function Citation_default(props) {
|
|
|
1864
1868
|
if (!Array.isArray(props.currentState)) {
|
|
1865
1869
|
props.currentState = [props.currentState];
|
|
1866
1870
|
}
|
|
1867
|
-
resource.currentState =
|
|
1868
|
-
lookupValue("http://hl7.org/fhir/ValueSet/citation-status-type",
|
|
1871
|
+
resource.currentState = props.currentState.map(
|
|
1872
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/citation-status-type", x))
|
|
1869
1873
|
);
|
|
1870
1874
|
ensureConceptText(resource.currentState);
|
|
1871
1875
|
}
|
|
@@ -2288,9 +2292,8 @@ function ClinicalImpression_default(props) {
|
|
|
2288
2292
|
if (!Array.isArray(props.prognosisCodeableConcept)) {
|
|
2289
2293
|
props.prognosisCodeableConcept = [props.prognosisCodeableConcept];
|
|
2290
2294
|
}
|
|
2291
|
-
resource.prognosisCodeableConcept = concept(
|
|
2292
|
-
"http://hl7.org/fhir/ValueSet/clinicalimpression-prognosis",
|
|
2293
|
-
props.prognosisCodeableConcept
|
|
2295
|
+
resource.prognosisCodeableConcept = props.prognosisCodeableConcept.map((x) => concept(
|
|
2296
|
+
lookupValue("http://hl7.org/fhir/ValueSet/clinicalimpression-prognosis", x)
|
|
2294
2297
|
));
|
|
2295
2298
|
ensureConceptText(resource.prognosisCodeableConcept);
|
|
2296
2299
|
}
|
|
@@ -2326,9 +2329,8 @@ function ClinicalUseDefinition_default(props) {
|
|
|
2326
2329
|
if (!Array.isArray(props.category)) {
|
|
2327
2330
|
props.category = [props.category];
|
|
2328
2331
|
}
|
|
2329
|
-
resource.category = concept(
|
|
2330
|
-
"http://hl7.org/fhir/ValueSet/clinical-use-definition-category",
|
|
2331
|
-
props.category
|
|
2332
|
+
resource.category = props.category.map((x) => concept(
|
|
2333
|
+
lookupValue("http://hl7.org/fhir/ValueSet/clinical-use-definition-category", x)
|
|
2332
2334
|
));
|
|
2333
2335
|
ensureConceptText(resource.category);
|
|
2334
2336
|
}
|
|
@@ -2430,8 +2432,8 @@ function Communication_default(props) {
|
|
|
2430
2432
|
if (!Array.isArray(props.category)) {
|
|
2431
2433
|
props.category = [props.category];
|
|
2432
2434
|
}
|
|
2433
|
-
resource.category =
|
|
2434
|
-
lookupValue("http://hl7.org/fhir/ValueSet/communication-category",
|
|
2435
|
+
resource.category = props.category.map(
|
|
2436
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/communication-category", x))
|
|
2435
2437
|
);
|
|
2436
2438
|
ensureConceptText(resource.category);
|
|
2437
2439
|
}
|
|
@@ -2439,9 +2441,9 @@ function Communication_default(props) {
|
|
|
2439
2441
|
if (!Array.isArray(props.medium)) {
|
|
2440
2442
|
props.medium = [props.medium];
|
|
2441
2443
|
}
|
|
2442
|
-
resource.medium = concept(
|
|
2443
|
-
lookupValue("http://terminology.hl7.org/ValueSet/v3-ParticipationMode",
|
|
2444
|
-
);
|
|
2444
|
+
resource.medium = props.medium.map((x) => concept(
|
|
2445
|
+
lookupValue("http://terminology.hl7.org/ValueSet/v3-ParticipationMode", x)
|
|
2446
|
+
));
|
|
2445
2447
|
ensureConceptText(resource.medium);
|
|
2446
2448
|
}
|
|
2447
2449
|
if (!_21.isNil(props.subject)) {
|
|
@@ -2475,8 +2477,8 @@ function Communication_default(props) {
|
|
|
2475
2477
|
if (!Array.isArray(props.reasonCode)) {
|
|
2476
2478
|
props.reasonCode = [props.reasonCode];
|
|
2477
2479
|
}
|
|
2478
|
-
resource.reasonCode =
|
|
2479
|
-
lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings",
|
|
2480
|
+
resource.reasonCode = props.reasonCode.map(
|
|
2481
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings", x))
|
|
2480
2482
|
);
|
|
2481
2483
|
ensureConceptText(resource.reasonCode);
|
|
2482
2484
|
}
|
|
@@ -2538,8 +2540,8 @@ function CommunicationRequest_default(props) {
|
|
|
2538
2540
|
if (!Array.isArray(props.category)) {
|
|
2539
2541
|
props.category = [props.category];
|
|
2540
2542
|
}
|
|
2541
|
-
resource.category =
|
|
2542
|
-
lookupValue("http://hl7.org/fhir/ValueSet/communication-category",
|
|
2543
|
+
resource.category = props.category.map(
|
|
2544
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/communication-category", x))
|
|
2543
2545
|
);
|
|
2544
2546
|
ensureConceptText(resource.category);
|
|
2545
2547
|
}
|
|
@@ -2547,9 +2549,9 @@ function CommunicationRequest_default(props) {
|
|
|
2547
2549
|
if (!Array.isArray(props.medium)) {
|
|
2548
2550
|
props.medium = [props.medium];
|
|
2549
2551
|
}
|
|
2550
|
-
resource.medium = concept(
|
|
2551
|
-
lookupValue("http://terminology.hl7.org/ValueSet/v3-ParticipationMode",
|
|
2552
|
-
);
|
|
2552
|
+
resource.medium = props.medium.map((x) => concept(
|
|
2553
|
+
lookupValue("http://terminology.hl7.org/ValueSet/v3-ParticipationMode", x)
|
|
2554
|
+
));
|
|
2553
2555
|
ensureConceptText(resource.medium);
|
|
2554
2556
|
}
|
|
2555
2557
|
if (!_22.isNil(props.subject)) {
|
|
@@ -2597,8 +2599,8 @@ function CommunicationRequest_default(props) {
|
|
|
2597
2599
|
if (!Array.isArray(props.reasonCode)) {
|
|
2598
2600
|
props.reasonCode = [props.reasonCode];
|
|
2599
2601
|
}
|
|
2600
|
-
resource.reasonCode =
|
|
2601
|
-
lookupValue("http://terminology.hl7.org/ValueSet/v3-ActReason",
|
|
2602
|
+
resource.reasonCode = props.reasonCode.map(
|
|
2603
|
+
(x) => concept(lookupValue("http://terminology.hl7.org/ValueSet/v3-ActReason", x))
|
|
2602
2604
|
);
|
|
2603
2605
|
ensureConceptText(resource.reasonCode);
|
|
2604
2606
|
}
|
|
@@ -2690,8 +2692,8 @@ function Contract_default(props) {
|
|
|
2690
2692
|
if (!Array.isArray(props.subType)) {
|
|
2691
2693
|
props.subType = [props.subType];
|
|
2692
2694
|
}
|
|
2693
|
-
resource.subType =
|
|
2694
|
-
lookupValue("http://hl7.org/fhir/ValueSet/contract-subtype",
|
|
2695
|
+
resource.subType = props.subType.map(
|
|
2696
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/contract-subtype", x))
|
|
2695
2697
|
);
|
|
2696
2698
|
ensureConceptText(resource.subType);
|
|
2697
2699
|
}
|
|
@@ -3098,8 +3100,8 @@ function Device_default(props) {
|
|
|
3098
3100
|
if (!Array.isArray(props.statusReason)) {
|
|
3099
3101
|
props.statusReason = [props.statusReason];
|
|
3100
3102
|
}
|
|
3101
|
-
resource.statusReason =
|
|
3102
|
-
lookupValue("http://hl7.org/fhir/ValueSet/device-status-reason",
|
|
3103
|
+
resource.statusReason = props.statusReason.map(
|
|
3104
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/device-status-reason", x))
|
|
3103
3105
|
);
|
|
3104
3106
|
ensureConceptText(resource.statusReason);
|
|
3105
3107
|
}
|
|
@@ -3245,7 +3247,9 @@ function DeviceDefinition_default(props) {
|
|
|
3245
3247
|
if (!Array.isArray(props.safety)) {
|
|
3246
3248
|
props.safety = [props.safety];
|
|
3247
3249
|
}
|
|
3248
|
-
resource.safety =
|
|
3250
|
+
resource.safety = props.safety.map(
|
|
3251
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/device-safety", x))
|
|
3252
|
+
);
|
|
3249
3253
|
ensureConceptText(resource.safety);
|
|
3250
3254
|
}
|
|
3251
3255
|
if (!_29.isNil(props.languageCode)) {
|
|
@@ -3421,8 +3425,8 @@ function DeviceRequest_default(props) {
|
|
|
3421
3425
|
if (!Array.isArray(props.reasonCode)) {
|
|
3422
3426
|
props.reasonCode = [props.reasonCode];
|
|
3423
3427
|
}
|
|
3424
|
-
resource.reasonCode =
|
|
3425
|
-
lookupValue("http://hl7.org/fhir/ValueSet/condition-code",
|
|
3428
|
+
resource.reasonCode = props.reasonCode.map(
|
|
3429
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/condition-code", x))
|
|
3426
3430
|
);
|
|
3427
3431
|
ensureConceptText(resource.reasonCode);
|
|
3428
3432
|
}
|
|
@@ -3534,9 +3538,9 @@ function DiagnosticReport_default(props) {
|
|
|
3534
3538
|
if (!Array.isArray(props.category)) {
|
|
3535
3539
|
props.category = [props.category];
|
|
3536
3540
|
}
|
|
3537
|
-
resource.category = concept(
|
|
3538
|
-
lookupValue("http://hl7.org/fhir/ValueSet/diagnostic-service-sections",
|
|
3539
|
-
);
|
|
3541
|
+
resource.category = props.category.map((x) => concept(
|
|
3542
|
+
lookupValue("http://hl7.org/fhir/ValueSet/diagnostic-service-sections", x)
|
|
3543
|
+
));
|
|
3540
3544
|
ensureConceptText(resource.category);
|
|
3541
3545
|
}
|
|
3542
3546
|
if (!_33.isNil(props.code)) {
|
|
@@ -3600,8 +3604,8 @@ function DiagnosticReport_default(props) {
|
|
|
3600
3604
|
if (!Array.isArray(props.conclusionCode)) {
|
|
3601
3605
|
props.conclusionCode = [props.conclusionCode];
|
|
3602
3606
|
}
|
|
3603
|
-
resource.conclusionCode =
|
|
3604
|
-
lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings",
|
|
3607
|
+
resource.conclusionCode = props.conclusionCode.map(
|
|
3608
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings", x))
|
|
3605
3609
|
);
|
|
3606
3610
|
ensureConceptText(resource.conclusionCode);
|
|
3607
3611
|
}
|
|
@@ -3667,7 +3671,9 @@ function Encounter_default(props) {
|
|
|
3667
3671
|
if (!Array.isArray(props.type)) {
|
|
3668
3672
|
props.type = [props.type];
|
|
3669
3673
|
}
|
|
3670
|
-
resource.type =
|
|
3674
|
+
resource.type = props.type.map(
|
|
3675
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/encounter-type", x))
|
|
3676
|
+
);
|
|
3671
3677
|
ensureConceptText(resource.type);
|
|
3672
3678
|
}
|
|
3673
3679
|
if (!_34.isNil(props.serviceType)) {
|
|
@@ -3720,8 +3726,8 @@ function Encounter_default(props) {
|
|
|
3720
3726
|
if (!Array.isArray(props.reasonCode)) {
|
|
3721
3727
|
props.reasonCode = [props.reasonCode];
|
|
3722
3728
|
}
|
|
3723
|
-
resource.reasonCode =
|
|
3724
|
-
lookupValue("http://hl7.org/fhir/ValueSet/encounter-reason",
|
|
3729
|
+
resource.reasonCode = props.reasonCode.map(
|
|
3730
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/encounter-reason", x))
|
|
3725
3731
|
);
|
|
3726
3732
|
ensureConceptText(resource.reasonCode);
|
|
3727
3733
|
}
|
|
@@ -3862,8 +3868,8 @@ function EpisodeOfCare_default(props) {
|
|
|
3862
3868
|
if (!Array.isArray(props.type)) {
|
|
3863
3869
|
props.type = [props.type];
|
|
3864
3870
|
}
|
|
3865
|
-
resource.type =
|
|
3866
|
-
lookupValue("http://hl7.org/fhir/ValueSet/episodeofcare-type",
|
|
3871
|
+
resource.type = props.type.map(
|
|
3872
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/episodeofcare-type", x))
|
|
3867
3873
|
);
|
|
3868
3874
|
ensureConceptText(resource.type);
|
|
3869
3875
|
}
|
|
@@ -3931,8 +3937,8 @@ function EventDefinition_default(props) {
|
|
|
3931
3937
|
if (!Array.isArray(props.jurisdiction)) {
|
|
3932
3938
|
props.jurisdiction = [props.jurisdiction];
|
|
3933
3939
|
}
|
|
3934
|
-
resource.jurisdiction =
|
|
3935
|
-
lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction",
|
|
3940
|
+
resource.jurisdiction = props.jurisdiction.map(
|
|
3941
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
|
|
3936
3942
|
);
|
|
3937
3943
|
ensureConceptText(resource.jurisdiction);
|
|
3938
3944
|
}
|
|
@@ -3940,8 +3946,8 @@ function EventDefinition_default(props) {
|
|
|
3940
3946
|
if (!Array.isArray(props.topic)) {
|
|
3941
3947
|
props.topic = [props.topic];
|
|
3942
3948
|
}
|
|
3943
|
-
resource.topic =
|
|
3944
|
-
lookupValue("http://hl7.org/fhir/ValueSet/definition-topic",
|
|
3949
|
+
resource.topic = props.topic.map(
|
|
3950
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", x))
|
|
3945
3951
|
);
|
|
3946
3952
|
ensureConceptText(resource.topic);
|
|
3947
3953
|
}
|
|
@@ -4417,8 +4423,8 @@ function FamilyMemberHistory_default(props) {
|
|
|
4417
4423
|
if (!Array.isArray(props.reasonCode)) {
|
|
4418
4424
|
props.reasonCode = [props.reasonCode];
|
|
4419
4425
|
}
|
|
4420
|
-
resource.reasonCode =
|
|
4421
|
-
lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings",
|
|
4426
|
+
resource.reasonCode = props.reasonCode.map(
|
|
4427
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings", x))
|
|
4422
4428
|
);
|
|
4423
4429
|
ensureConceptText(resource.reasonCode);
|
|
4424
4430
|
}
|
|
@@ -4461,8 +4467,8 @@ function Flag_default(props) {
|
|
|
4461
4467
|
if (!Array.isArray(props.category)) {
|
|
4462
4468
|
props.category = [props.category];
|
|
4463
4469
|
}
|
|
4464
|
-
resource.category =
|
|
4465
|
-
lookupValue("http://hl7.org/fhir/ValueSet/flag-category",
|
|
4470
|
+
resource.category = props.category.map(
|
|
4471
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/flag-category", x))
|
|
4466
4472
|
);
|
|
4467
4473
|
ensureConceptText(resource.category);
|
|
4468
4474
|
}
|
|
@@ -4505,8 +4511,8 @@ function Goal_default(props) {
|
|
|
4505
4511
|
if (!Array.isArray(props.category)) {
|
|
4506
4512
|
props.category = [props.category];
|
|
4507
4513
|
}
|
|
4508
|
-
resource.category =
|
|
4509
|
-
lookupValue("http://hl7.org/fhir/ValueSet/goal-category",
|
|
4514
|
+
resource.category = props.category.map(
|
|
4515
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/goal-category", x))
|
|
4510
4516
|
);
|
|
4511
4517
|
ensureConceptText(resource.category);
|
|
4512
4518
|
}
|
|
@@ -4555,8 +4561,8 @@ function Goal_default(props) {
|
|
|
4555
4561
|
if (!Array.isArray(props.outcomeCode)) {
|
|
4556
4562
|
props.outcomeCode = [props.outcomeCode];
|
|
4557
4563
|
}
|
|
4558
|
-
resource.outcomeCode =
|
|
4559
|
-
lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings",
|
|
4564
|
+
resource.outcomeCode = props.outcomeCode.map(
|
|
4565
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings", x))
|
|
4560
4566
|
);
|
|
4561
4567
|
ensureConceptText(resource.outcomeCode);
|
|
4562
4568
|
}
|
|
@@ -4695,8 +4701,8 @@ function HealthcareService_default(props) {
|
|
|
4695
4701
|
if (!Array.isArray(props.category)) {
|
|
4696
4702
|
props.category = [props.category];
|
|
4697
4703
|
}
|
|
4698
|
-
resource.category =
|
|
4699
|
-
lookupValue("http://hl7.org/fhir/ValueSet/service-category",
|
|
4704
|
+
resource.category = props.category.map(
|
|
4705
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/service-category", x))
|
|
4700
4706
|
);
|
|
4701
4707
|
ensureConceptText(resource.category);
|
|
4702
4708
|
}
|
|
@@ -4704,15 +4710,17 @@ function HealthcareService_default(props) {
|
|
|
4704
4710
|
if (!Array.isArray(props.type)) {
|
|
4705
4711
|
props.type = [props.type];
|
|
4706
4712
|
}
|
|
4707
|
-
resource.type =
|
|
4713
|
+
resource.type = props.type.map(
|
|
4714
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/service-type", x))
|
|
4715
|
+
);
|
|
4708
4716
|
ensureConceptText(resource.type);
|
|
4709
4717
|
}
|
|
4710
4718
|
if (!_48.isNil(props.specialty)) {
|
|
4711
4719
|
if (!Array.isArray(props.specialty)) {
|
|
4712
4720
|
props.specialty = [props.specialty];
|
|
4713
4721
|
}
|
|
4714
|
-
resource.specialty =
|
|
4715
|
-
lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes",
|
|
4722
|
+
resource.specialty = props.specialty.map(
|
|
4723
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes", x))
|
|
4716
4724
|
);
|
|
4717
4725
|
ensureConceptText(resource.specialty);
|
|
4718
4726
|
}
|
|
@@ -4732,9 +4740,8 @@ function HealthcareService_default(props) {
|
|
|
4732
4740
|
if (!Array.isArray(props.serviceProvisionCode)) {
|
|
4733
4741
|
props.serviceProvisionCode = [props.serviceProvisionCode];
|
|
4734
4742
|
}
|
|
4735
|
-
resource.serviceProvisionCode = concept(
|
|
4736
|
-
"http://hl7.org/fhir/ValueSet/service-provision-conditions",
|
|
4737
|
-
props.serviceProvisionCode
|
|
4743
|
+
resource.serviceProvisionCode = props.serviceProvisionCode.map((x) => concept(
|
|
4744
|
+
lookupValue("http://hl7.org/fhir/ValueSet/service-provision-conditions", x)
|
|
4738
4745
|
));
|
|
4739
4746
|
ensureConceptText(resource.serviceProvisionCode);
|
|
4740
4747
|
}
|
|
@@ -4755,7 +4762,9 @@ function HealthcareService_default(props) {
|
|
|
4755
4762
|
if (!Array.isArray(props.program)) {
|
|
4756
4763
|
props.program = [props.program];
|
|
4757
4764
|
}
|
|
4758
|
-
resource.program =
|
|
4765
|
+
resource.program = props.program.map(
|
|
4766
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/program", x))
|
|
4767
|
+
);
|
|
4759
4768
|
ensureConceptText(resource.program);
|
|
4760
4769
|
}
|
|
4761
4770
|
if (!_48.isNil(props.characteristic)) {
|
|
@@ -4769,8 +4778,8 @@ function HealthcareService_default(props) {
|
|
|
4769
4778
|
if (!Array.isArray(props.communication)) {
|
|
4770
4779
|
props.communication = [props.communication];
|
|
4771
4780
|
}
|
|
4772
|
-
resource.communication =
|
|
4773
|
-
lookupValue("http://hl7.org/fhir/ValueSet/languages",
|
|
4781
|
+
resource.communication = props.communication.map(
|
|
4782
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/languages", x))
|
|
4774
4783
|
);
|
|
4775
4784
|
ensureConceptText(resource.communication);
|
|
4776
4785
|
}
|
|
@@ -4778,10 +4787,9 @@ function HealthcareService_default(props) {
|
|
|
4778
4787
|
if (!Array.isArray(props.referralMethod)) {
|
|
4779
4788
|
props.referralMethod = [props.referralMethod];
|
|
4780
4789
|
}
|
|
4781
|
-
resource.referralMethod =
|
|
4782
|
-
"http://hl7.org/fhir/ValueSet/service-referral-method",
|
|
4783
|
-
|
|
4784
|
-
));
|
|
4790
|
+
resource.referralMethod = props.referralMethod.map(
|
|
4791
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/service-referral-method", x))
|
|
4792
|
+
);
|
|
4785
4793
|
ensureConceptText(resource.referralMethod);
|
|
4786
4794
|
}
|
|
4787
4795
|
if (!_48.isNil(props.availableTime)) {
|
|
@@ -4873,8 +4881,8 @@ function ImagingStudy_default(props) {
|
|
|
4873
4881
|
if (!Array.isArray(props.procedureCode)) {
|
|
4874
4882
|
props.procedureCode = [props.procedureCode];
|
|
4875
4883
|
}
|
|
4876
|
-
resource.procedureCode =
|
|
4877
|
-
lookupValue("http://www.rsna.org/RadLex_Playbook.aspx",
|
|
4884
|
+
resource.procedureCode = props.procedureCode.map(
|
|
4885
|
+
(x) => concept(lookupValue("http://www.rsna.org/RadLex_Playbook.aspx", x))
|
|
4878
4886
|
);
|
|
4879
4887
|
ensureConceptText(resource.procedureCode);
|
|
4880
4888
|
}
|
|
@@ -4885,8 +4893,8 @@ function ImagingStudy_default(props) {
|
|
|
4885
4893
|
if (!Array.isArray(props.reasonCode)) {
|
|
4886
4894
|
props.reasonCode = [props.reasonCode];
|
|
4887
4895
|
}
|
|
4888
|
-
resource.reasonCode =
|
|
4889
|
-
lookupValue("http://hl7.org/fhir/ValueSet/procedure-reason",
|
|
4896
|
+
resource.reasonCode = props.reasonCode.map(
|
|
4897
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/procedure-reason", x))
|
|
4890
4898
|
);
|
|
4891
4899
|
ensureConceptText(resource.reasonCode);
|
|
4892
4900
|
}
|
|
@@ -4989,8 +4997,8 @@ function Immunization_default(props) {
|
|
|
4989
4997
|
if (!Array.isArray(props.reasonCode)) {
|
|
4990
4998
|
props.reasonCode = [props.reasonCode];
|
|
4991
4999
|
}
|
|
4992
|
-
resource.reasonCode =
|
|
4993
|
-
lookupValue("http://hl7.org/fhir/ValueSet/immunization-reason",
|
|
5000
|
+
resource.reasonCode = props.reasonCode.map(
|
|
5001
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/immunization-reason", x))
|
|
4994
5002
|
);
|
|
4995
5003
|
ensureConceptText(resource.reasonCode);
|
|
4996
5004
|
}
|
|
@@ -5004,9 +5012,8 @@ function Immunization_default(props) {
|
|
|
5004
5012
|
if (!Array.isArray(props.subpotentReason)) {
|
|
5005
5013
|
props.subpotentReason = [props.subpotentReason];
|
|
5006
5014
|
}
|
|
5007
|
-
resource.subpotentReason = concept(
|
|
5008
|
-
"http://hl7.org/fhir/ValueSet/immunization-subpotent-reason",
|
|
5009
|
-
props.subpotentReason
|
|
5015
|
+
resource.subpotentReason = props.subpotentReason.map((x) => concept(
|
|
5016
|
+
lookupValue("http://hl7.org/fhir/ValueSet/immunization-subpotent-reason", x)
|
|
5010
5017
|
));
|
|
5011
5018
|
ensureConceptText(resource.subpotentReason);
|
|
5012
5019
|
}
|
|
@@ -5027,9 +5034,8 @@ function Immunization_default(props) {
|
|
|
5027
5034
|
if (!Array.isArray(props.programEligibility)) {
|
|
5028
5035
|
props.programEligibility = [props.programEligibility];
|
|
5029
5036
|
}
|
|
5030
|
-
resource.programEligibility = concept(
|
|
5031
|
-
"http://hl7.org/fhir/ValueSet/immunization-program-eligibility",
|
|
5032
|
-
props.programEligibility
|
|
5037
|
+
resource.programEligibility = props.programEligibility.map((x) => concept(
|
|
5038
|
+
lookupValue("http://hl7.org/fhir/ValueSet/immunization-program-eligibility", x)
|
|
5033
5039
|
));
|
|
5034
5040
|
ensureConceptText(resource.programEligibility);
|
|
5035
5041
|
}
|
|
@@ -5109,10 +5115,10 @@ function ImmunizationEvaluation_default(props) {
|
|
|
5109
5115
|
if (!Array.isArray(props.doseStatusReason)) {
|
|
5110
5116
|
props.doseStatusReason = [props.doseStatusReason];
|
|
5111
5117
|
}
|
|
5112
|
-
resource.doseStatusReason = concept(lookupValue(
|
|
5118
|
+
resource.doseStatusReason = props.doseStatusReason.map((x) => concept(lookupValue(
|
|
5113
5119
|
"http://hl7.org/fhir/ValueSet/immunization-evaluation-dose-status-reason",
|
|
5114
|
-
|
|
5115
|
-
));
|
|
5120
|
+
x
|
|
5121
|
+
)));
|
|
5116
5122
|
ensureConceptText(resource.doseStatusReason);
|
|
5117
5123
|
}
|
|
5118
5124
|
if (!_51.isNil(props.doseNumber)) {
|
|
@@ -5185,8 +5191,8 @@ function Ingredient_default(props) {
|
|
|
5185
5191
|
if (!Array.isArray(props.function)) {
|
|
5186
5192
|
props.function = [props.function];
|
|
5187
5193
|
}
|
|
5188
|
-
resource.function =
|
|
5189
|
-
lookupValue("http://hl7.org/fhir/ValueSet/ingredient-function",
|
|
5194
|
+
resource.function = props.function.map(
|
|
5195
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/ingredient-function", x))
|
|
5190
5196
|
);
|
|
5191
5197
|
ensureConceptText(resource.function);
|
|
5192
5198
|
}
|
|
@@ -5230,8 +5236,8 @@ function InsurancePlan_default(props) {
|
|
|
5230
5236
|
if (!Array.isArray(props.type)) {
|
|
5231
5237
|
props.type = [props.type];
|
|
5232
5238
|
}
|
|
5233
|
-
resource.type =
|
|
5234
|
-
lookupValue("http://hl7.org/fhir/ValueSet/insuranceplan-type",
|
|
5239
|
+
resource.type = props.type.map(
|
|
5240
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/insuranceplan-type", x))
|
|
5235
5241
|
);
|
|
5236
5242
|
ensureConceptText(resource.type);
|
|
5237
5243
|
}
|
|
@@ -5384,8 +5390,8 @@ function Library_default(props) {
|
|
|
5384
5390
|
if (!Array.isArray(props.jurisdiction)) {
|
|
5385
5391
|
props.jurisdiction = [props.jurisdiction];
|
|
5386
5392
|
}
|
|
5387
|
-
resource.jurisdiction =
|
|
5388
|
-
lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction",
|
|
5393
|
+
resource.jurisdiction = props.jurisdiction.map(
|
|
5394
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
|
|
5389
5395
|
);
|
|
5390
5396
|
ensureConceptText(resource.jurisdiction);
|
|
5391
5397
|
}
|
|
@@ -5393,8 +5399,8 @@ function Library_default(props) {
|
|
|
5393
5399
|
if (!Array.isArray(props.topic)) {
|
|
5394
5400
|
props.topic = [props.topic];
|
|
5395
5401
|
}
|
|
5396
|
-
resource.topic =
|
|
5397
|
-
lookupValue("http://hl7.org/fhir/ValueSet/definition-topic",
|
|
5402
|
+
resource.topic = props.topic.map(
|
|
5403
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", x))
|
|
5398
5404
|
);
|
|
5399
5405
|
ensureConceptText(resource.topic);
|
|
5400
5406
|
}
|
|
@@ -5479,10 +5485,10 @@ function Location_default(props) {
|
|
|
5479
5485
|
if (!Array.isArray(props.type)) {
|
|
5480
5486
|
props.type = [props.type];
|
|
5481
5487
|
}
|
|
5482
|
-
resource.type = concept(lookupValue(
|
|
5488
|
+
resource.type = props.type.map((x) => concept(lookupValue(
|
|
5483
5489
|
"http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType",
|
|
5484
|
-
|
|
5485
|
-
));
|
|
5490
|
+
x
|
|
5491
|
+
)));
|
|
5486
5492
|
ensureConceptText(resource.type);
|
|
5487
5493
|
}
|
|
5488
5494
|
if (!_58.isNil(props.physicalType)) {
|
|
@@ -5563,8 +5569,8 @@ function ManufacturedItemDefinition_default(props) {
|
|
|
5563
5569
|
if (!Array.isArray(props.ingredient)) {
|
|
5564
5570
|
props.ingredient = [props.ingredient];
|
|
5565
5571
|
}
|
|
5566
|
-
resource.ingredient =
|
|
5567
|
-
lookupValue("http://hl7.org/fhir/ValueSet/substance-codes",
|
|
5572
|
+
resource.ingredient = props.ingredient.map(
|
|
5573
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/substance-codes", x))
|
|
5568
5574
|
);
|
|
5569
5575
|
ensureConceptText(resource.ingredient);
|
|
5570
5576
|
}
|
|
@@ -5605,8 +5611,8 @@ function Measure_default(props) {
|
|
|
5605
5611
|
if (!Array.isArray(props.jurisdiction)) {
|
|
5606
5612
|
props.jurisdiction = [props.jurisdiction];
|
|
5607
5613
|
}
|
|
5608
|
-
resource.jurisdiction =
|
|
5609
|
-
lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction",
|
|
5614
|
+
resource.jurisdiction = props.jurisdiction.map(
|
|
5615
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
|
|
5610
5616
|
);
|
|
5611
5617
|
ensureConceptText(resource.jurisdiction);
|
|
5612
5618
|
}
|
|
@@ -5614,8 +5620,8 @@ function Measure_default(props) {
|
|
|
5614
5620
|
if (!Array.isArray(props.topic)) {
|
|
5615
5621
|
props.topic = [props.topic];
|
|
5616
5622
|
}
|
|
5617
|
-
resource.topic =
|
|
5618
|
-
lookupValue("http://hl7.org/fhir/ValueSet/definition-topic",
|
|
5623
|
+
resource.topic = props.topic.map(
|
|
5624
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", x))
|
|
5619
5625
|
);
|
|
5620
5626
|
ensureConceptText(resource.topic);
|
|
5621
5627
|
}
|
|
@@ -5636,7 +5642,9 @@ function Measure_default(props) {
|
|
|
5636
5642
|
if (!Array.isArray(props.type)) {
|
|
5637
5643
|
props.type = [props.type];
|
|
5638
5644
|
}
|
|
5639
|
-
resource.type =
|
|
5645
|
+
resource.type = props.type.map(
|
|
5646
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/measure-type", x))
|
|
5647
|
+
);
|
|
5640
5648
|
ensureConceptText(resource.type);
|
|
5641
5649
|
}
|
|
5642
5650
|
if (!_60.isNil(props.improvementNotation)) {
|
|
@@ -5779,8 +5787,8 @@ function Media_default(props) {
|
|
|
5779
5787
|
if (!Array.isArray(props.reasonCode)) {
|
|
5780
5788
|
props.reasonCode = [props.reasonCode];
|
|
5781
5789
|
}
|
|
5782
|
-
resource.reasonCode =
|
|
5783
|
-
lookupValue("http://hl7.org/fhir/ValueSet/procedure-reason",
|
|
5790
|
+
resource.reasonCode = props.reasonCode.map(
|
|
5791
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/procedure-reason", x))
|
|
5784
5792
|
);
|
|
5785
5793
|
ensureConceptText(resource.reasonCode);
|
|
5786
5794
|
}
|
|
@@ -5868,9 +5876,8 @@ function MedicationAdministration_default(props) {
|
|
|
5868
5876
|
if (!Array.isArray(props.statusReason)) {
|
|
5869
5877
|
props.statusReason = [props.statusReason];
|
|
5870
5878
|
}
|
|
5871
|
-
resource.statusReason = concept(
|
|
5872
|
-
"http://hl7.org/fhir/ValueSet/reason-medication-not-given-codes",
|
|
5873
|
-
props.statusReason
|
|
5879
|
+
resource.statusReason = props.statusReason.map((x) => concept(
|
|
5880
|
+
lookupValue("http://hl7.org/fhir/ValueSet/reason-medication-not-given-codes", x)
|
|
5874
5881
|
));
|
|
5875
5882
|
ensureConceptText(resource.statusReason);
|
|
5876
5883
|
}
|
|
@@ -5917,9 +5924,8 @@ function MedicationAdministration_default(props) {
|
|
|
5917
5924
|
if (!Array.isArray(props.reasonCode)) {
|
|
5918
5925
|
props.reasonCode = [props.reasonCode];
|
|
5919
5926
|
}
|
|
5920
|
-
resource.reasonCode = concept(
|
|
5921
|
-
"http://hl7.org/fhir/ValueSet/reason-medication-given-codes",
|
|
5922
|
-
props.reasonCode
|
|
5927
|
+
resource.reasonCode = props.reasonCode.map((x) => concept(
|
|
5928
|
+
lookupValue("http://hl7.org/fhir/ValueSet/reason-medication-given-codes", x)
|
|
5923
5929
|
));
|
|
5924
5930
|
ensureConceptText(resource.reasonCode);
|
|
5925
5931
|
}
|
|
@@ -6136,8 +6142,8 @@ function MedicationKnowledge_default(props) {
|
|
|
6136
6142
|
if (!Array.isArray(props.intendedRoute)) {
|
|
6137
6143
|
props.intendedRoute = [props.intendedRoute];
|
|
6138
6144
|
}
|
|
6139
|
-
resource.intendedRoute =
|
|
6140
|
-
lookupValue("http://hl7.org/fhir/ValueSet/route-codes",
|
|
6145
|
+
resource.intendedRoute = props.intendedRoute.map(
|
|
6146
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/route-codes", x))
|
|
6141
6147
|
);
|
|
6142
6148
|
ensureConceptText(resource.intendedRoute);
|
|
6143
6149
|
}
|
|
@@ -6272,9 +6278,9 @@ function MedicationRequest_default(props) {
|
|
|
6272
6278
|
if (!Array.isArray(props.category)) {
|
|
6273
6279
|
props.category = [props.category];
|
|
6274
6280
|
}
|
|
6275
|
-
resource.category = concept(
|
|
6276
|
-
lookupValue("http://hl7.org/fhir/ValueSet/medicationrequest-category",
|
|
6277
|
-
);
|
|
6281
|
+
resource.category = props.category.map((x) => concept(
|
|
6282
|
+
lookupValue("http://hl7.org/fhir/ValueSet/medicationrequest-category", x)
|
|
6283
|
+
));
|
|
6278
6284
|
ensureConceptText(resource.category);
|
|
6279
6285
|
}
|
|
6280
6286
|
if (!_67.isNil(props.reported)) {
|
|
@@ -6316,8 +6322,8 @@ function MedicationRequest_default(props) {
|
|
|
6316
6322
|
if (!Array.isArray(props.reasonCode)) {
|
|
6317
6323
|
props.reasonCode = [props.reasonCode];
|
|
6318
6324
|
}
|
|
6319
|
-
resource.reasonCode =
|
|
6320
|
-
lookupValue("http://hl7.org/fhir/ValueSet/condition-code",
|
|
6325
|
+
resource.reasonCode = props.reasonCode.map(
|
|
6326
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/condition-code", x))
|
|
6321
6327
|
);
|
|
6322
6328
|
ensureConceptText(resource.reasonCode);
|
|
6323
6329
|
}
|
|
@@ -6410,9 +6416,8 @@ function MedicationStatement_default(props) {
|
|
|
6410
6416
|
if (!Array.isArray(props.statusReason)) {
|
|
6411
6417
|
props.statusReason = [props.statusReason];
|
|
6412
6418
|
}
|
|
6413
|
-
resource.statusReason = concept(
|
|
6414
|
-
"http://hl7.org/fhir/ValueSet/reason-medication-status-codes",
|
|
6415
|
-
props.statusReason
|
|
6419
|
+
resource.statusReason = props.statusReason.map((x) => concept(
|
|
6420
|
+
lookupValue("http://hl7.org/fhir/ValueSet/reason-medication-status-codes", x)
|
|
6416
6421
|
));
|
|
6417
6422
|
ensureConceptText(resource.statusReason);
|
|
6418
6423
|
}
|
|
@@ -6450,8 +6455,8 @@ function MedicationStatement_default(props) {
|
|
|
6450
6455
|
if (!Array.isArray(props.reasonCode)) {
|
|
6451
6456
|
props.reasonCode = [props.reasonCode];
|
|
6452
6457
|
}
|
|
6453
|
-
resource.reasonCode =
|
|
6454
|
-
lookupValue("http://hl7.org/fhir/ValueSet/condition-code",
|
|
6458
|
+
resource.reasonCode = props.reasonCode.map(
|
|
6459
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/condition-code", x))
|
|
6455
6460
|
);
|
|
6456
6461
|
ensureConceptText(resource.reasonCode);
|
|
6457
6462
|
}
|
|
@@ -6506,7 +6511,9 @@ function MedicinalProductDefinition_default(props) {
|
|
|
6506
6511
|
if (!Array.isArray(props.route)) {
|
|
6507
6512
|
props.route = [props.route];
|
|
6508
6513
|
}
|
|
6509
|
-
resource.route =
|
|
6514
|
+
resource.route = props.route.map(
|
|
6515
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/route-codes", x))
|
|
6516
|
+
);
|
|
6510
6517
|
ensureConceptText(resource.route);
|
|
6511
6518
|
}
|
|
6512
6519
|
if (!_69.isNil(props.legalStatusOfSupply)) {
|
|
@@ -6527,9 +6534,8 @@ function MedicinalProductDefinition_default(props) {
|
|
|
6527
6534
|
if (!Array.isArray(props.specialMeasures)) {
|
|
6528
6535
|
props.specialMeasures = [props.specialMeasures];
|
|
6529
6536
|
}
|
|
6530
|
-
resource.specialMeasures = concept(
|
|
6531
|
-
"http://hl7.org/fhir/ValueSet/medicinal-product-special-measures",
|
|
6532
|
-
props.specialMeasures
|
|
6537
|
+
resource.specialMeasures = props.specialMeasures.map((x) => concept(
|
|
6538
|
+
lookupValue("http://hl7.org/fhir/ValueSet/medicinal-product-special-measures", x)
|
|
6533
6539
|
));
|
|
6534
6540
|
ensureConceptText(resource.specialMeasures);
|
|
6535
6541
|
}
|
|
@@ -6544,9 +6550,8 @@ function MedicinalProductDefinition_default(props) {
|
|
|
6544
6550
|
if (!Array.isArray(props.classification)) {
|
|
6545
6551
|
props.classification = [props.classification];
|
|
6546
6552
|
}
|
|
6547
|
-
resource.classification = concept(
|
|
6548
|
-
"http://hl7.org/fhir/ValueSet/product-classification-codes",
|
|
6549
|
-
props.classification
|
|
6553
|
+
resource.classification = props.classification.map((x) => concept(
|
|
6554
|
+
lookupValue("http://hl7.org/fhir/ValueSet/product-classification-codes", x)
|
|
6550
6555
|
));
|
|
6551
6556
|
ensureConceptText(resource.classification);
|
|
6552
6557
|
}
|
|
@@ -6554,9 +6559,8 @@ function MedicinalProductDefinition_default(props) {
|
|
|
6554
6559
|
if (!Array.isArray(props.packagedMedicinalProduct)) {
|
|
6555
6560
|
props.packagedMedicinalProduct = [props.packagedMedicinalProduct];
|
|
6556
6561
|
}
|
|
6557
|
-
resource.packagedMedicinalProduct = concept(
|
|
6558
|
-
"http://hl7.org/fhir/ValueSet/medicinal-product-package-type",
|
|
6559
|
-
props.packagedMedicinalProduct
|
|
6562
|
+
resource.packagedMedicinalProduct = props.packagedMedicinalProduct.map((x) => concept(
|
|
6563
|
+
lookupValue("http://hl7.org/fhir/ValueSet/medicinal-product-package-type", x)
|
|
6560
6564
|
));
|
|
6561
6565
|
ensureConceptText(resource.packagedMedicinalProduct);
|
|
6562
6566
|
}
|
|
@@ -6564,8 +6568,8 @@ function MedicinalProductDefinition_default(props) {
|
|
|
6564
6568
|
if (!Array.isArray(props.ingredient)) {
|
|
6565
6569
|
props.ingredient = [props.ingredient];
|
|
6566
6570
|
}
|
|
6567
|
-
resource.ingredient =
|
|
6568
|
-
lookupValue("http://hl7.org/fhir/ValueSet/substance-codes",
|
|
6571
|
+
resource.ingredient = props.ingredient.map(
|
|
6572
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/substance-codes", x))
|
|
6569
6573
|
);
|
|
6570
6574
|
ensureConceptText(resource.ingredient);
|
|
6571
6575
|
}
|
|
@@ -6787,18 +6791,17 @@ function NutritionOrder_default(props) {
|
|
|
6787
6791
|
if (!Array.isArray(props.foodPreferenceModifier)) {
|
|
6788
6792
|
props.foodPreferenceModifier = [props.foodPreferenceModifier];
|
|
6789
6793
|
}
|
|
6790
|
-
resource.foodPreferenceModifier =
|
|
6791
|
-
"http://hl7.org/fhir/ValueSet/encounter-diet",
|
|
6792
|
-
|
|
6793
|
-
));
|
|
6794
|
+
resource.foodPreferenceModifier = props.foodPreferenceModifier.map(
|
|
6795
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/encounter-diet", x))
|
|
6796
|
+
);
|
|
6794
6797
|
ensureConceptText(resource.foodPreferenceModifier);
|
|
6795
6798
|
}
|
|
6796
6799
|
if (!_71.isNil(props.excludeFoodModifier)) {
|
|
6797
6800
|
if (!Array.isArray(props.excludeFoodModifier)) {
|
|
6798
6801
|
props.excludeFoodModifier = [props.excludeFoodModifier];
|
|
6799
6802
|
}
|
|
6800
|
-
resource.excludeFoodModifier =
|
|
6801
|
-
lookupValue("http://hl7.org/fhir/ValueSet/food-type",
|
|
6803
|
+
resource.excludeFoodModifier = props.excludeFoodModifier.map(
|
|
6804
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/food-type", x))
|
|
6802
6805
|
);
|
|
6803
6806
|
ensureConceptText(resource.excludeFoodModifier);
|
|
6804
6807
|
}
|
|
@@ -6843,9 +6846,9 @@ function NutritionProduct_default(props) {
|
|
|
6843
6846
|
if (!Array.isArray(props.category)) {
|
|
6844
6847
|
props.category = [props.category];
|
|
6845
6848
|
}
|
|
6846
|
-
resource.category = concept(
|
|
6847
|
-
lookupValue("http://hl7.org/fhir/ValueSet/nutrition-product-category",
|
|
6848
|
-
);
|
|
6849
|
+
resource.category = props.category.map((x) => concept(
|
|
6850
|
+
lookupValue("http://hl7.org/fhir/ValueSet/nutrition-product-category", x)
|
|
6851
|
+
));
|
|
6849
6852
|
ensureConceptText(resource.category);
|
|
6850
6853
|
}
|
|
6851
6854
|
if (!_72.isNil(props.code)) {
|
|
@@ -6938,8 +6941,8 @@ function Observation_default(props) {
|
|
|
6938
6941
|
if (!Array.isArray(props.category)) {
|
|
6939
6942
|
props.category = [props.category];
|
|
6940
6943
|
}
|
|
6941
|
-
resource.category =
|
|
6942
|
-
lookupValue("http://hl7.org/fhir/ValueSet/observation-category",
|
|
6944
|
+
resource.category = props.category.map(
|
|
6945
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/observation-category", x))
|
|
6943
6946
|
);
|
|
6944
6947
|
ensureConceptText(resource.category);
|
|
6945
6948
|
}
|
|
@@ -6985,9 +6988,8 @@ function Observation_default(props) {
|
|
|
6985
6988
|
if (!Array.isArray(props.interpretation)) {
|
|
6986
6989
|
props.interpretation = [props.interpretation];
|
|
6987
6990
|
}
|
|
6988
|
-
resource.interpretation = concept(
|
|
6989
|
-
"http://hl7.org/fhir/ValueSet/observation-interpretation",
|
|
6990
|
-
props.interpretation
|
|
6991
|
+
resource.interpretation = props.interpretation.map((x) => concept(
|
|
6992
|
+
lookupValue("http://hl7.org/fhir/ValueSet/observation-interpretation", x)
|
|
6991
6993
|
));
|
|
6992
6994
|
ensureConceptText(resource.interpretation);
|
|
6993
6995
|
}
|
|
@@ -7059,8 +7061,8 @@ function ObservationDefinition_default(props) {
|
|
|
7059
7061
|
if (!Array.isArray(props.category)) {
|
|
7060
7062
|
props.category = [props.category];
|
|
7061
7063
|
}
|
|
7062
|
-
resource.category =
|
|
7063
|
-
lookupValue("http://hl7.org/fhir/ValueSet/observation-category",
|
|
7064
|
+
resource.category = props.category.map(
|
|
7065
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/observation-category", x))
|
|
7064
7066
|
);
|
|
7065
7067
|
ensureConceptText(resource.category);
|
|
7066
7068
|
}
|
|
@@ -7134,8 +7136,8 @@ function Organization_default(props) {
|
|
|
7134
7136
|
if (!Array.isArray(props.type)) {
|
|
7135
7137
|
props.type = [props.type];
|
|
7136
7138
|
}
|
|
7137
|
-
resource.type =
|
|
7138
|
-
lookupValue("http://hl7.org/fhir/ValueSet/organization-type",
|
|
7139
|
+
resource.type = props.type.map(
|
|
7140
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/organization-type", x))
|
|
7139
7141
|
);
|
|
7140
7142
|
ensureConceptText(resource.type);
|
|
7141
7143
|
}
|
|
@@ -7193,8 +7195,8 @@ function OrganizationAffiliation_default(props) {
|
|
|
7193
7195
|
if (!Array.isArray(props.code)) {
|
|
7194
7196
|
props.code = [props.code];
|
|
7195
7197
|
}
|
|
7196
|
-
resource.code =
|
|
7197
|
-
lookupValue("http://hl7.org/fhir/ValueSet/organization-role",
|
|
7198
|
+
resource.code = props.code.map(
|
|
7199
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/organization-role", x))
|
|
7198
7200
|
);
|
|
7199
7201
|
ensureConceptText(resource.code);
|
|
7200
7202
|
}
|
|
@@ -7202,8 +7204,8 @@ function OrganizationAffiliation_default(props) {
|
|
|
7202
7204
|
if (!Array.isArray(props.specialty)) {
|
|
7203
7205
|
props.specialty = [props.specialty];
|
|
7204
7206
|
}
|
|
7205
|
-
resource.specialty =
|
|
7206
|
-
lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes",
|
|
7207
|
+
resource.specialty = props.specialty.map(
|
|
7208
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes", x))
|
|
7207
7209
|
);
|
|
7208
7210
|
ensureConceptText(resource.specialty);
|
|
7209
7211
|
}
|
|
@@ -7274,10 +7276,9 @@ function PackagedProductDefinition_default(props) {
|
|
|
7274
7276
|
if (!Array.isArray(props.characteristic)) {
|
|
7275
7277
|
props.characteristic = [props.characteristic];
|
|
7276
7278
|
}
|
|
7277
|
-
resource.characteristic =
|
|
7278
|
-
"http://hl7.org/fhir/ValueSet/package-characteristic",
|
|
7279
|
-
|
|
7280
|
-
));
|
|
7279
|
+
resource.characteristic = props.characteristic.map(
|
|
7280
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/package-characteristic", x))
|
|
7281
|
+
);
|
|
7281
7282
|
ensureConceptText(resource.characteristic);
|
|
7282
7283
|
}
|
|
7283
7284
|
if (!_77.isNil(props.manufacturer)) {
|
|
@@ -7531,8 +7532,8 @@ function PlanDefinition_default(props) {
|
|
|
7531
7532
|
if (!Array.isArray(props.jurisdiction)) {
|
|
7532
7533
|
props.jurisdiction = [props.jurisdiction];
|
|
7533
7534
|
}
|
|
7534
|
-
resource.jurisdiction =
|
|
7535
|
-
lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction",
|
|
7535
|
+
resource.jurisdiction = props.jurisdiction.map(
|
|
7536
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
|
|
7536
7537
|
);
|
|
7537
7538
|
ensureConceptText(resource.jurisdiction);
|
|
7538
7539
|
}
|
|
@@ -7540,8 +7541,8 @@ function PlanDefinition_default(props) {
|
|
|
7540
7541
|
if (!Array.isArray(props.topic)) {
|
|
7541
7542
|
props.topic = [props.topic];
|
|
7542
7543
|
}
|
|
7543
|
-
resource.topic =
|
|
7544
|
-
lookupValue("http://hl7.org/fhir/ValueSet/definition-topic",
|
|
7544
|
+
resource.topic = props.topic.map(
|
|
7545
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", x))
|
|
7545
7546
|
);
|
|
7546
7547
|
ensureConceptText(resource.topic);
|
|
7547
7548
|
}
|
|
@@ -7604,8 +7605,8 @@ function Practitioner_default(props) {
|
|
|
7604
7605
|
if (!Array.isArray(props.communication)) {
|
|
7605
7606
|
props.communication = [props.communication];
|
|
7606
7607
|
}
|
|
7607
|
-
resource.communication =
|
|
7608
|
-
lookupValue("http://hl7.org/fhir/ValueSet/languages",
|
|
7608
|
+
resource.communication = props.communication.map(
|
|
7609
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/languages", x))
|
|
7609
7610
|
);
|
|
7610
7611
|
ensureConceptText(resource.communication);
|
|
7611
7612
|
}
|
|
@@ -7635,8 +7636,8 @@ function PractitionerRole_default(props) {
|
|
|
7635
7636
|
if (!Array.isArray(props.code)) {
|
|
7636
7637
|
props.code = [props.code];
|
|
7637
7638
|
}
|
|
7638
|
-
resource.code =
|
|
7639
|
-
lookupValue("http://hl7.org/fhir/ValueSet/practitioner-role",
|
|
7639
|
+
resource.code = props.code.map(
|
|
7640
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/practitioner-role", x))
|
|
7640
7641
|
);
|
|
7641
7642
|
ensureConceptText(resource.code);
|
|
7642
7643
|
}
|
|
@@ -7644,8 +7645,8 @@ function PractitionerRole_default(props) {
|
|
|
7644
7645
|
if (!Array.isArray(props.specialty)) {
|
|
7645
7646
|
props.specialty = [props.specialty];
|
|
7646
7647
|
}
|
|
7647
|
-
resource.specialty =
|
|
7648
|
-
lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes",
|
|
7648
|
+
resource.specialty = props.specialty.map(
|
|
7649
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes", x))
|
|
7649
7650
|
);
|
|
7650
7651
|
ensureConceptText(resource.specialty);
|
|
7651
7652
|
}
|
|
@@ -7774,8 +7775,8 @@ function Procedure_default(props) {
|
|
|
7774
7775
|
if (!Array.isArray(props.reasonCode)) {
|
|
7775
7776
|
props.reasonCode = [props.reasonCode];
|
|
7776
7777
|
}
|
|
7777
|
-
resource.reasonCode =
|
|
7778
|
-
lookupValue("http://hl7.org/fhir/ValueSet/procedure-reason",
|
|
7778
|
+
resource.reasonCode = props.reasonCode.map(
|
|
7779
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/procedure-reason", x))
|
|
7779
7780
|
);
|
|
7780
7781
|
ensureConceptText(resource.reasonCode);
|
|
7781
7782
|
}
|
|
@@ -7789,7 +7790,9 @@ function Procedure_default(props) {
|
|
|
7789
7790
|
if (!Array.isArray(props.bodySite)) {
|
|
7790
7791
|
props.bodySite = [props.bodySite];
|
|
7791
7792
|
}
|
|
7792
|
-
resource.bodySite =
|
|
7793
|
+
resource.bodySite = props.bodySite.map(
|
|
7794
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/body-site", x))
|
|
7795
|
+
);
|
|
7793
7796
|
ensureConceptText(resource.bodySite);
|
|
7794
7797
|
}
|
|
7795
7798
|
if (!_85.isNil(props.outcome)) {
|
|
@@ -7808,8 +7811,8 @@ function Procedure_default(props) {
|
|
|
7808
7811
|
if (!Array.isArray(props.complication)) {
|
|
7809
7812
|
props.complication = [props.complication];
|
|
7810
7813
|
}
|
|
7811
|
-
resource.complication =
|
|
7812
|
-
lookupValue("http://hl7.org/fhir/ValueSet/condition-code",
|
|
7814
|
+
resource.complication = props.complication.map(
|
|
7815
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/condition-code", x))
|
|
7813
7816
|
);
|
|
7814
7817
|
ensureConceptText(resource.complication);
|
|
7815
7818
|
}
|
|
@@ -7823,8 +7826,8 @@ function Procedure_default(props) {
|
|
|
7823
7826
|
if (!Array.isArray(props.followUp)) {
|
|
7824
7827
|
props.followUp = [props.followUp];
|
|
7825
7828
|
}
|
|
7826
|
-
resource.followUp =
|
|
7827
|
-
lookupValue("http://hl7.org/fhir/ValueSet/procedure-followup",
|
|
7829
|
+
resource.followUp = props.followUp.map(
|
|
7830
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/procedure-followup", x))
|
|
7828
7831
|
);
|
|
7829
7832
|
ensureConceptText(resource.followUp);
|
|
7830
7833
|
}
|
|
@@ -7851,7 +7854,9 @@ function Procedure_default(props) {
|
|
|
7851
7854
|
if (!Array.isArray(props.usedCode)) {
|
|
7852
7855
|
props.usedCode = [props.usedCode];
|
|
7853
7856
|
}
|
|
7854
|
-
resource.usedCode =
|
|
7857
|
+
resource.usedCode = props.usedCode.map(
|
|
7858
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/device-kind", x))
|
|
7859
|
+
);
|
|
7855
7860
|
ensureConceptText(resource.usedCode);
|
|
7856
7861
|
}
|
|
7857
7862
|
return resource;
|
|
@@ -7874,8 +7879,8 @@ function Questionnaire_default(props) {
|
|
|
7874
7879
|
if (!Array.isArray(props.jurisdiction)) {
|
|
7875
7880
|
props.jurisdiction = [props.jurisdiction];
|
|
7876
7881
|
}
|
|
7877
|
-
resource.jurisdiction =
|
|
7878
|
-
lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction",
|
|
7882
|
+
resource.jurisdiction = props.jurisdiction.map(
|
|
7883
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
|
|
7879
7884
|
);
|
|
7880
7885
|
ensureConceptText(resource.jurisdiction);
|
|
7881
7886
|
}
|
|
@@ -7981,7 +7986,9 @@ function RegulatedAuthorization_default(props) {
|
|
|
7981
7986
|
if (!Array.isArray(props.region)) {
|
|
7982
7987
|
props.region = [props.region];
|
|
7983
7988
|
}
|
|
7984
|
-
resource.region =
|
|
7989
|
+
resource.region = props.region.map(
|
|
7990
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
|
|
7991
|
+
);
|
|
7985
7992
|
ensureConceptText(resource.region);
|
|
7986
7993
|
}
|
|
7987
7994
|
if (!_88.isNil(props.status)) {
|
|
@@ -8000,9 +8007,9 @@ function RegulatedAuthorization_default(props) {
|
|
|
8000
8007
|
if (!Array.isArray(props.basis)) {
|
|
8001
8008
|
props.basis = [props.basis];
|
|
8002
8009
|
}
|
|
8003
|
-
resource.basis = concept(
|
|
8004
|
-
lookupValue("http://hl7.org/fhir/ValueSet/regulated-authorization-basis",
|
|
8005
|
-
);
|
|
8010
|
+
resource.basis = props.basis.map((x) => concept(
|
|
8011
|
+
lookupValue("http://hl7.org/fhir/ValueSet/regulated-authorization-basis", x)
|
|
8012
|
+
));
|
|
8006
8013
|
ensureConceptText(resource.basis);
|
|
8007
8014
|
}
|
|
8008
8015
|
if (!_88.isNil(props.holder)) {
|
|
@@ -8041,9 +8048,8 @@ function RelatedPerson_default(props) {
|
|
|
8041
8048
|
if (!Array.isArray(props.relationship)) {
|
|
8042
8049
|
props.relationship = [props.relationship];
|
|
8043
8050
|
}
|
|
8044
|
-
resource.relationship = concept(
|
|
8045
|
-
"http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype",
|
|
8046
|
-
props.relationship
|
|
8051
|
+
resource.relationship = props.relationship.map((x) => concept(
|
|
8052
|
+
lookupValue("http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype", x)
|
|
8047
8053
|
));
|
|
8048
8054
|
ensureConceptText(resource.relationship);
|
|
8049
8055
|
}
|
|
@@ -8154,8 +8160,8 @@ function ResearchDefinition_default(props) {
|
|
|
8154
8160
|
if (!Array.isArray(props.jurisdiction)) {
|
|
8155
8161
|
props.jurisdiction = [props.jurisdiction];
|
|
8156
8162
|
}
|
|
8157
|
-
resource.jurisdiction =
|
|
8158
|
-
lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction",
|
|
8163
|
+
resource.jurisdiction = props.jurisdiction.map(
|
|
8164
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
|
|
8159
8165
|
);
|
|
8160
8166
|
ensureConceptText(resource.jurisdiction);
|
|
8161
8167
|
}
|
|
@@ -8163,8 +8169,8 @@ function ResearchDefinition_default(props) {
|
|
|
8163
8169
|
if (!Array.isArray(props.topic)) {
|
|
8164
8170
|
props.topic = [props.topic];
|
|
8165
8171
|
}
|
|
8166
|
-
resource.topic =
|
|
8167
|
-
lookupValue("http://hl7.org/fhir/ValueSet/definition-topic",
|
|
8172
|
+
resource.topic = props.topic.map(
|
|
8173
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", x))
|
|
8168
8174
|
);
|
|
8169
8175
|
ensureConceptText(resource.topic);
|
|
8170
8176
|
}
|
|
@@ -8204,8 +8210,8 @@ function ResearchElementDefinition_default(props) {
|
|
|
8204
8210
|
if (!Array.isArray(props.jurisdiction)) {
|
|
8205
8211
|
props.jurisdiction = [props.jurisdiction];
|
|
8206
8212
|
}
|
|
8207
|
-
resource.jurisdiction =
|
|
8208
|
-
lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction",
|
|
8213
|
+
resource.jurisdiction = props.jurisdiction.map(
|
|
8214
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
|
|
8209
8215
|
);
|
|
8210
8216
|
ensureConceptText(resource.jurisdiction);
|
|
8211
8217
|
}
|
|
@@ -8213,8 +8219,8 @@ function ResearchElementDefinition_default(props) {
|
|
|
8213
8219
|
if (!Array.isArray(props.topic)) {
|
|
8214
8220
|
props.topic = [props.topic];
|
|
8215
8221
|
}
|
|
8216
|
-
resource.topic =
|
|
8217
|
-
lookupValue("http://hl7.org/fhir/ValueSet/definition-topic",
|
|
8222
|
+
resource.topic = props.topic.map(
|
|
8223
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", x))
|
|
8218
8224
|
);
|
|
8219
8225
|
ensureConceptText(resource.topic);
|
|
8220
8226
|
}
|
|
@@ -8290,8 +8296,8 @@ function ResearchStudy_default(props) {
|
|
|
8290
8296
|
if (!Array.isArray(props.condition)) {
|
|
8291
8297
|
props.condition = [props.condition];
|
|
8292
8298
|
}
|
|
8293
|
-
resource.condition =
|
|
8294
|
-
lookupValue("http://hl7.org/fhir/ValueSet/condition-code",
|
|
8299
|
+
resource.condition = props.condition.map(
|
|
8300
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/condition-code", x))
|
|
8295
8301
|
);
|
|
8296
8302
|
ensureConceptText(resource.condition);
|
|
8297
8303
|
}
|
|
@@ -8306,8 +8312,8 @@ function ResearchStudy_default(props) {
|
|
|
8306
8312
|
if (!Array.isArray(props.location)) {
|
|
8307
8313
|
props.location = [props.location];
|
|
8308
8314
|
}
|
|
8309
|
-
resource.location =
|
|
8310
|
-
lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction",
|
|
8315
|
+
resource.location = props.location.map(
|
|
8316
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
|
|
8311
8317
|
);
|
|
8312
8318
|
ensureConceptText(resource.location);
|
|
8313
8319
|
}
|
|
@@ -8485,8 +8491,8 @@ function Schedule_default(props) {
|
|
|
8485
8491
|
if (!Array.isArray(props.serviceCategory)) {
|
|
8486
8492
|
props.serviceCategory = [props.serviceCategory];
|
|
8487
8493
|
}
|
|
8488
|
-
resource.serviceCategory =
|
|
8489
|
-
lookupValue("http://hl7.org/fhir/ValueSet/service-category",
|
|
8494
|
+
resource.serviceCategory = props.serviceCategory.map(
|
|
8495
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/service-category", x))
|
|
8490
8496
|
);
|
|
8491
8497
|
ensureConceptText(resource.serviceCategory);
|
|
8492
8498
|
}
|
|
@@ -8494,8 +8500,8 @@ function Schedule_default(props) {
|
|
|
8494
8500
|
if (!Array.isArray(props.serviceType)) {
|
|
8495
8501
|
props.serviceType = [props.serviceType];
|
|
8496
8502
|
}
|
|
8497
|
-
resource.serviceType =
|
|
8498
|
-
lookupValue("http://hl7.org/fhir/ValueSet/service-type",
|
|
8503
|
+
resource.serviceType = props.serviceType.map(
|
|
8504
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/service-type", x))
|
|
8499
8505
|
);
|
|
8500
8506
|
ensureConceptText(resource.serviceType);
|
|
8501
8507
|
}
|
|
@@ -8503,8 +8509,8 @@ function Schedule_default(props) {
|
|
|
8503
8509
|
if (!Array.isArray(props.specialty)) {
|
|
8504
8510
|
props.specialty = [props.specialty];
|
|
8505
8511
|
}
|
|
8506
|
-
resource.specialty =
|
|
8507
|
-
lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes",
|
|
8512
|
+
resource.specialty = props.specialty.map(
|
|
8513
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes", x))
|
|
8508
8514
|
);
|
|
8509
8515
|
ensureConceptText(resource.specialty);
|
|
8510
8516
|
}
|
|
@@ -8549,8 +8555,8 @@ function ServiceRequest_default(props) {
|
|
|
8549
8555
|
if (!Array.isArray(props.category)) {
|
|
8550
8556
|
props.category = [props.category];
|
|
8551
8557
|
}
|
|
8552
|
-
resource.category =
|
|
8553
|
-
lookupValue("http://hl7.org/fhir/ValueSet/servicerequest-category",
|
|
8558
|
+
resource.category = props.category.map(
|
|
8559
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/servicerequest-category", x))
|
|
8554
8560
|
);
|
|
8555
8561
|
ensureConceptText(resource.category);
|
|
8556
8562
|
}
|
|
@@ -8562,9 +8568,8 @@ function ServiceRequest_default(props) {
|
|
|
8562
8568
|
if (!Array.isArray(props.orderDetail)) {
|
|
8563
8569
|
props.orderDetail = [props.orderDetail];
|
|
8564
8570
|
}
|
|
8565
|
-
resource.orderDetail = concept(
|
|
8566
|
-
"http://hl7.org/fhir/ValueSet/servicerequest-orderdetail",
|
|
8567
|
-
props.orderDetail
|
|
8571
|
+
resource.orderDetail = props.orderDetail.map((x) => concept(
|
|
8572
|
+
lookupValue("http://hl7.org/fhir/ValueSet/servicerequest-orderdetail", x)
|
|
8568
8573
|
));
|
|
8569
8574
|
ensureConceptText(resource.orderDetail);
|
|
8570
8575
|
}
|
|
@@ -8606,10 +8611,10 @@ function ServiceRequest_default(props) {
|
|
|
8606
8611
|
if (!Array.isArray(props.locationCode)) {
|
|
8607
8612
|
props.locationCode = [props.locationCode];
|
|
8608
8613
|
}
|
|
8609
|
-
resource.locationCode = concept(lookupValue(
|
|
8614
|
+
resource.locationCode = props.locationCode.map((x) => concept(lookupValue(
|
|
8610
8615
|
"http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType",
|
|
8611
|
-
|
|
8612
|
-
));
|
|
8616
|
+
x
|
|
8617
|
+
)));
|
|
8613
8618
|
ensureConceptText(resource.locationCode);
|
|
8614
8619
|
}
|
|
8615
8620
|
if (!_97.isNil(props.locationReference)) {
|
|
@@ -8622,8 +8627,8 @@ function ServiceRequest_default(props) {
|
|
|
8622
8627
|
if (!Array.isArray(props.reasonCode)) {
|
|
8623
8628
|
props.reasonCode = [props.reasonCode];
|
|
8624
8629
|
}
|
|
8625
|
-
resource.reasonCode =
|
|
8626
|
-
lookupValue("http://hl7.org/fhir/ValueSet/procedure-reason",
|
|
8630
|
+
resource.reasonCode = props.reasonCode.map(
|
|
8631
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/procedure-reason", x))
|
|
8627
8632
|
);
|
|
8628
8633
|
ensureConceptText(resource.reasonCode);
|
|
8629
8634
|
}
|
|
@@ -8655,7 +8660,9 @@ function ServiceRequest_default(props) {
|
|
|
8655
8660
|
if (!Array.isArray(props.bodySite)) {
|
|
8656
8661
|
props.bodySite = [props.bodySite];
|
|
8657
8662
|
}
|
|
8658
|
-
resource.bodySite =
|
|
8663
|
+
resource.bodySite = props.bodySite.map(
|
|
8664
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/body-site", x))
|
|
8665
|
+
);
|
|
8659
8666
|
ensureConceptText(resource.bodySite);
|
|
8660
8667
|
}
|
|
8661
8668
|
if (!_97.isNil(props.relevantHistory)) {
|
|
@@ -8684,8 +8691,8 @@ function Slot_default(props) {
|
|
|
8684
8691
|
if (!Array.isArray(props.serviceCategory)) {
|
|
8685
8692
|
props.serviceCategory = [props.serviceCategory];
|
|
8686
8693
|
}
|
|
8687
|
-
resource.serviceCategory =
|
|
8688
|
-
lookupValue("http://hl7.org/fhir/ValueSet/service-category",
|
|
8694
|
+
resource.serviceCategory = props.serviceCategory.map(
|
|
8695
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/service-category", x))
|
|
8689
8696
|
);
|
|
8690
8697
|
ensureConceptText(resource.serviceCategory);
|
|
8691
8698
|
}
|
|
@@ -8693,8 +8700,8 @@ function Slot_default(props) {
|
|
|
8693
8700
|
if (!Array.isArray(props.serviceType)) {
|
|
8694
8701
|
props.serviceType = [props.serviceType];
|
|
8695
8702
|
}
|
|
8696
|
-
resource.serviceType =
|
|
8697
|
-
lookupValue("http://hl7.org/fhir/ValueSet/service-type",
|
|
8703
|
+
resource.serviceType = props.serviceType.map(
|
|
8704
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/service-type", x))
|
|
8698
8705
|
);
|
|
8699
8706
|
ensureConceptText(resource.serviceType);
|
|
8700
8707
|
}
|
|
@@ -8702,8 +8709,8 @@ function Slot_default(props) {
|
|
|
8702
8709
|
if (!Array.isArray(props.specialty)) {
|
|
8703
8710
|
props.specialty = [props.specialty];
|
|
8704
8711
|
}
|
|
8705
|
-
resource.specialty =
|
|
8706
|
-
lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes",
|
|
8712
|
+
resource.specialty = props.specialty.map(
|
|
8713
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes", x))
|
|
8707
8714
|
);
|
|
8708
8715
|
ensureConceptText(resource.specialty);
|
|
8709
8716
|
}
|
|
@@ -8791,8 +8798,8 @@ function Specimen_default(props) {
|
|
|
8791
8798
|
if (!Array.isArray(props.condition)) {
|
|
8792
8799
|
props.condition = [props.condition];
|
|
8793
8800
|
}
|
|
8794
|
-
resource.condition =
|
|
8795
|
-
lookupValue("http://terminology.hl7.org/ValueSet/v2-0493",
|
|
8801
|
+
resource.condition = props.condition.map(
|
|
8802
|
+
(x) => concept(lookupValue("http://terminology.hl7.org/ValueSet/v2-0493", x))
|
|
8796
8803
|
);
|
|
8797
8804
|
ensureConceptText(resource.condition);
|
|
8798
8805
|
}
|
|
@@ -8819,18 +8826,18 @@ function SpecimenDefinition_default(props) {
|
|
|
8819
8826
|
if (!Array.isArray(props.patientPreparation)) {
|
|
8820
8827
|
props.patientPreparation = [props.patientPreparation];
|
|
8821
8828
|
}
|
|
8822
|
-
resource.patientPreparation = concept(lookupValue(
|
|
8829
|
+
resource.patientPreparation = props.patientPreparation.map((x) => concept(lookupValue(
|
|
8823
8830
|
"http://hl7.org/fhir/ValueSet/prepare-patient-prior-specimen-collection",
|
|
8824
|
-
|
|
8825
|
-
));
|
|
8831
|
+
x
|
|
8832
|
+
)));
|
|
8826
8833
|
ensureConceptText(resource.patientPreparation);
|
|
8827
8834
|
}
|
|
8828
8835
|
if (!_100.isNil(props.collection)) {
|
|
8829
8836
|
if (!Array.isArray(props.collection)) {
|
|
8830
8837
|
props.collection = [props.collection];
|
|
8831
8838
|
}
|
|
8832
|
-
resource.collection =
|
|
8833
|
-
lookupValue("http://hl7.org/fhir/ValueSet/specimen-collection",
|
|
8839
|
+
resource.collection = props.collection.map(
|
|
8840
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/specimen-collection", x))
|
|
8834
8841
|
);
|
|
8835
8842
|
ensureConceptText(resource.collection);
|
|
8836
8843
|
}
|
|
@@ -8867,8 +8874,8 @@ function Substance_default(props) {
|
|
|
8867
8874
|
if (!Array.isArray(props.category)) {
|
|
8868
8875
|
props.category = [props.category];
|
|
8869
8876
|
}
|
|
8870
|
-
resource.category =
|
|
8871
|
-
lookupValue("http://hl7.org/fhir/ValueSet/substance-category",
|
|
8877
|
+
resource.category = props.category.map(
|
|
8878
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/substance-category", x))
|
|
8872
8879
|
);
|
|
8873
8880
|
ensureConceptText(resource.category);
|
|
8874
8881
|
}
|
|
@@ -8941,8 +8948,8 @@ function SubstanceDefinition_default(props) {
|
|
|
8941
8948
|
if (!Array.isArray(props.grade)) {
|
|
8942
8949
|
props.grade = [props.grade];
|
|
8943
8950
|
}
|
|
8944
|
-
resource.grade =
|
|
8945
|
-
lookupValue("http://hl7.org/fhir/ValueSet/substance-grade",
|
|
8951
|
+
resource.grade = props.grade.map(
|
|
8952
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/substance-grade", x))
|
|
8946
8953
|
);
|
|
8947
8954
|
ensureConceptText(resource.grade);
|
|
8948
8955
|
}
|
|
@@ -9172,8 +9179,8 @@ function SupplyRequest_default(props) {
|
|
|
9172
9179
|
if (!Array.isArray(props.reasonCode)) {
|
|
9173
9180
|
props.reasonCode = [props.reasonCode];
|
|
9174
9181
|
}
|
|
9175
|
-
resource.reasonCode =
|
|
9176
|
-
lookupValue("http://hl7.org/fhir/ValueSet/supplyrequest-reason",
|
|
9182
|
+
resource.reasonCode = props.reasonCode.map(
|
|
9183
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/supplyrequest-reason", x))
|
|
9177
9184
|
);
|
|
9178
9185
|
ensureConceptText(resource.reasonCode);
|
|
9179
9186
|
}
|
|
@@ -9248,8 +9255,8 @@ function Task_default(props) {
|
|
|
9248
9255
|
if (!Array.isArray(props.performerType)) {
|
|
9249
9256
|
props.performerType = [props.performerType];
|
|
9250
9257
|
}
|
|
9251
|
-
resource.performerType =
|
|
9252
|
-
lookupValue("http://hl7.org/fhir/ValueSet/performer-role",
|
|
9258
|
+
resource.performerType = props.performerType.map(
|
|
9259
|
+
(x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/performer-role", x))
|
|
9253
9260
|
);
|
|
9254
9261
|
ensureConceptText(resource.performerType);
|
|
9255
9262
|
}
|
|
@@ -9400,9 +9407,8 @@ function VerificationResult_default(props) {
|
|
|
9400
9407
|
if (!Array.isArray(props.validationProcess)) {
|
|
9401
9408
|
props.validationProcess = [props.validationProcess];
|
|
9402
9409
|
}
|
|
9403
|
-
resource.validationProcess = concept(
|
|
9404
|
-
"http://hl7.org/fhir/ValueSet/verificationresult-validation-process",
|
|
9405
|
-
props.validationProcess
|
|
9410
|
+
resource.validationProcess = props.validationProcess.map((x) => concept(
|
|
9411
|
+
lookupValue("http://hl7.org/fhir/ValueSet/verificationresult-validation-process", x)
|
|
9406
9412
|
));
|
|
9407
9413
|
ensureConceptText(resource.validationProcess);
|
|
9408
9414
|
}
|