@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 CHANGED
@@ -944,8 +944,8 @@ function ActivityDefinition_default(props) {
944
944
  if (!Array.isArray(props.jurisdiction)) {
945
945
  props.jurisdiction = [props.jurisdiction];
946
946
  }
947
- resource.jurisdiction = concept(
948
- lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", props.jurisdiction)
947
+ resource.jurisdiction = props.jurisdiction.map(
948
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
949
949
  );
950
950
  ensureConceptText(resource.jurisdiction);
951
951
  }
@@ -953,8 +953,8 @@ function ActivityDefinition_default(props) {
953
953
  if (!Array.isArray(props.topic)) {
954
954
  props.topic = [props.topic];
955
955
  }
956
- resource.topic = concept(
957
- lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", props.topic)
956
+ resource.topic = props.topic.map(
957
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", x))
958
958
  );
959
959
  ensureConceptText(resource.topic);
960
960
  }
@@ -990,7 +990,9 @@ function ActivityDefinition_default(props) {
990
990
  if (!Array.isArray(props.bodySite)) {
991
991
  props.bodySite = [props.bodySite];
992
992
  }
993
- resource.bodySite = concept(lookupValue("http://hl7.org/fhir/ValueSet/body-site", props.bodySite));
993
+ resource.bodySite = props.bodySite.map(
994
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/body-site", x))
995
+ );
994
996
  ensureConceptText(resource.bodySite);
995
997
  }
996
998
  if (!import_lodash3.default.isNil(props.specimenRequirement)) {
@@ -1070,8 +1072,8 @@ function AdministrableProductDefinition_default(props) {
1070
1072
  if (!Array.isArray(props.ingredient)) {
1071
1073
  props.ingredient = [props.ingredient];
1072
1074
  }
1073
- resource.ingredient = concept(
1074
- lookupValue("http://hl7.org/fhir/ValueSet/substance-codes", props.ingredient)
1075
+ resource.ingredient = props.ingredient.map(
1076
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/substance-codes", x))
1075
1077
  );
1076
1078
  ensureConceptText(resource.ingredient);
1077
1079
  }
@@ -1121,8 +1123,8 @@ function AdverseEvent_default(props) {
1121
1123
  if (!Array.isArray(props.category)) {
1122
1124
  props.category = [props.category];
1123
1125
  }
1124
- resource.category = concept(
1125
- lookupValue("http://hl7.org/fhir/ValueSet/adverse-event-category", props.category)
1126
+ resource.category = props.category.map(
1127
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/adverse-event-category", x))
1126
1128
  );
1127
1129
  ensureConceptText(resource.category);
1128
1130
  }
@@ -1299,8 +1301,8 @@ function Appointment_default(props) {
1299
1301
  if (!Array.isArray(props.serviceCategory)) {
1300
1302
  props.serviceCategory = [props.serviceCategory];
1301
1303
  }
1302
- resource.serviceCategory = concept(
1303
- lookupValue("http://hl7.org/fhir/ValueSet/service-category", props.serviceCategory)
1304
+ resource.serviceCategory = props.serviceCategory.map(
1305
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/service-category", x))
1304
1306
  );
1305
1307
  ensureConceptText(resource.serviceCategory);
1306
1308
  }
@@ -1308,8 +1310,8 @@ function Appointment_default(props) {
1308
1310
  if (!Array.isArray(props.serviceType)) {
1309
1311
  props.serviceType = [props.serviceType];
1310
1312
  }
1311
- resource.serviceType = concept(
1312
- lookupValue("http://hl7.org/fhir/ValueSet/service-type", props.serviceType)
1313
+ resource.serviceType = props.serviceType.map(
1314
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/service-type", x))
1313
1315
  );
1314
1316
  ensureConceptText(resource.serviceType);
1315
1317
  }
@@ -1317,8 +1319,8 @@ function Appointment_default(props) {
1317
1319
  if (!Array.isArray(props.specialty)) {
1318
1320
  props.specialty = [props.specialty];
1319
1321
  }
1320
- resource.specialty = concept(
1321
- lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes", props.specialty)
1322
+ resource.specialty = props.specialty.map(
1323
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes", x))
1322
1324
  );
1323
1325
  ensureConceptText(resource.specialty);
1324
1326
  }
@@ -1332,8 +1334,8 @@ function Appointment_default(props) {
1332
1334
  if (!Array.isArray(props.reasonCode)) {
1333
1335
  props.reasonCode = [props.reasonCode];
1334
1336
  }
1335
- resource.reasonCode = concept(
1336
- lookupValue("http://hl7.org/fhir/ValueSet/encounter-reason", props.reasonCode)
1337
+ resource.reasonCode = props.reasonCode.map(
1338
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/encounter-reason", x))
1337
1339
  );
1338
1340
  ensureConceptText(resource.reasonCode);
1339
1341
  }
@@ -1397,9 +1399,8 @@ function AppointmentResponse_default(props) {
1397
1399
  if (!Array.isArray(props.participantType)) {
1398
1400
  props.participantType = [props.participantType];
1399
1401
  }
1400
- resource.participantType = concept(lookupValue(
1401
- "http://hl7.org/fhir/ValueSet/encounter-participant-type",
1402
- props.participantType
1402
+ resource.participantType = props.participantType.map((x) => concept(
1403
+ lookupValue("http://hl7.org/fhir/ValueSet/encounter-participant-type", x)
1403
1404
  ));
1404
1405
  ensureConceptText(resource.participantType);
1405
1406
  }
@@ -1508,9 +1509,8 @@ function BodyStructure_default(props) {
1508
1509
  if (!Array.isArray(props.locationQualifier)) {
1509
1510
  props.locationQualifier = [props.locationQualifier];
1510
1511
  }
1511
- resource.locationQualifier = concept(lookupValue(
1512
- "http://hl7.org/fhir/ValueSet/bodystructure-relative-location",
1513
- props.locationQualifier
1512
+ resource.locationQualifier = props.locationQualifier.map((x) => concept(
1513
+ lookupValue("http://hl7.org/fhir/ValueSet/bodystructure-relative-location", x)
1514
1514
  ));
1515
1515
  ensureConceptText(resource.locationQualifier);
1516
1516
  }
@@ -1555,8 +1555,8 @@ function CarePlan_default(props) {
1555
1555
  if (!Array.isArray(props.category)) {
1556
1556
  props.category = [props.category];
1557
1557
  }
1558
- resource.category = concept(
1559
- lookupValue("http://hl7.org/fhir/ValueSet/care-plan-category", props.category)
1558
+ resource.category = props.category.map(
1559
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/care-plan-category", x))
1560
1560
  );
1561
1561
  ensureConceptText(resource.category);
1562
1562
  }
@@ -1632,8 +1632,8 @@ function CareTeam_default(props) {
1632
1632
  if (!Array.isArray(props.category)) {
1633
1633
  props.category = [props.category];
1634
1634
  }
1635
- resource.category = concept(
1636
- lookupValue("http://hl7.org/fhir/ValueSet/care-team-category", props.category)
1635
+ resource.category = props.category.map(
1636
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/care-team-category", x))
1637
1637
  );
1638
1638
  ensureConceptText(resource.category);
1639
1639
  }
@@ -1660,8 +1660,8 @@ function CareTeam_default(props) {
1660
1660
  if (!Array.isArray(props.reasonCode)) {
1661
1661
  props.reasonCode = [props.reasonCode];
1662
1662
  }
1663
- resource.reasonCode = concept(
1664
- lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings", props.reasonCode)
1663
+ resource.reasonCode = props.reasonCode.map(
1664
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings", x))
1665
1665
  );
1666
1666
  ensureConceptText(resource.reasonCode);
1667
1667
  }
@@ -1741,7 +1741,9 @@ function ChargeItem_default(props) {
1741
1741
  if (!Array.isArray(props.bodysite)) {
1742
1742
  props.bodysite = [props.bodysite];
1743
1743
  }
1744
- resource.bodysite = concept(lookupValue("http://hl7.org/fhir/ValueSet/body-site", props.bodysite));
1744
+ resource.bodysite = props.bodysite.map(
1745
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/body-site", x))
1746
+ );
1745
1747
  ensureConceptText(resource.bodysite);
1746
1748
  }
1747
1749
  if (!import_lodash13.default.isNil(props.enterer)) {
@@ -1751,7 +1753,9 @@ function ChargeItem_default(props) {
1751
1753
  if (!Array.isArray(props.reason)) {
1752
1754
  props.reason = [props.reason];
1753
1755
  }
1754
- resource.reason = concept(lookupValue("http://hl7.org/fhir/ValueSet/icd-10", props.reason));
1756
+ resource.reason = props.reason.map(
1757
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/icd-10", x))
1758
+ );
1755
1759
  ensureConceptText(resource.reason);
1756
1760
  }
1757
1761
  if (!import_lodash13.default.isNil(props.service)) {
@@ -1796,8 +1800,8 @@ function ChargeItemDefinition_default(props) {
1796
1800
  if (!Array.isArray(props.jurisdiction)) {
1797
1801
  props.jurisdiction = [props.jurisdiction];
1798
1802
  }
1799
- resource.jurisdiction = concept(
1800
- lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", props.jurisdiction)
1803
+ resource.jurisdiction = props.jurisdiction.map(
1804
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
1801
1805
  );
1802
1806
  ensureConceptText(resource.jurisdiction);
1803
1807
  }
@@ -1859,8 +1863,8 @@ function Citation_default(props) {
1859
1863
  if (!Array.isArray(props.jurisdiction)) {
1860
1864
  props.jurisdiction = [props.jurisdiction];
1861
1865
  }
1862
- resource.jurisdiction = concept(
1863
- lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", props.jurisdiction)
1866
+ resource.jurisdiction = props.jurisdiction.map(
1867
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
1864
1868
  );
1865
1869
  ensureConceptText(resource.jurisdiction);
1866
1870
  }
@@ -1894,8 +1898,8 @@ function Citation_default(props) {
1894
1898
  if (!Array.isArray(props.currentState)) {
1895
1899
  props.currentState = [props.currentState];
1896
1900
  }
1897
- resource.currentState = concept(
1898
- lookupValue("http://hl7.org/fhir/ValueSet/citation-status-type", props.currentState)
1901
+ resource.currentState = props.currentState.map(
1902
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/citation-status-type", x))
1899
1903
  );
1900
1904
  ensureConceptText(resource.currentState);
1901
1905
  }
@@ -2318,9 +2322,8 @@ function ClinicalImpression_default(props) {
2318
2322
  if (!Array.isArray(props.prognosisCodeableConcept)) {
2319
2323
  props.prognosisCodeableConcept = [props.prognosisCodeableConcept];
2320
2324
  }
2321
- resource.prognosisCodeableConcept = concept(lookupValue(
2322
- "http://hl7.org/fhir/ValueSet/clinicalimpression-prognosis",
2323
- props.prognosisCodeableConcept
2325
+ resource.prognosisCodeableConcept = props.prognosisCodeableConcept.map((x) => concept(
2326
+ lookupValue("http://hl7.org/fhir/ValueSet/clinicalimpression-prognosis", x)
2324
2327
  ));
2325
2328
  ensureConceptText(resource.prognosisCodeableConcept);
2326
2329
  }
@@ -2356,9 +2359,8 @@ function ClinicalUseDefinition_default(props) {
2356
2359
  if (!Array.isArray(props.category)) {
2357
2360
  props.category = [props.category];
2358
2361
  }
2359
- resource.category = concept(lookupValue(
2360
- "http://hl7.org/fhir/ValueSet/clinical-use-definition-category",
2361
- props.category
2362
+ resource.category = props.category.map((x) => concept(
2363
+ lookupValue("http://hl7.org/fhir/ValueSet/clinical-use-definition-category", x)
2362
2364
  ));
2363
2365
  ensureConceptText(resource.category);
2364
2366
  }
@@ -2460,8 +2462,8 @@ function Communication_default(props) {
2460
2462
  if (!Array.isArray(props.category)) {
2461
2463
  props.category = [props.category];
2462
2464
  }
2463
- resource.category = concept(
2464
- lookupValue("http://hl7.org/fhir/ValueSet/communication-category", props.category)
2465
+ resource.category = props.category.map(
2466
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/communication-category", x))
2465
2467
  );
2466
2468
  ensureConceptText(resource.category);
2467
2469
  }
@@ -2469,9 +2471,9 @@ function Communication_default(props) {
2469
2471
  if (!Array.isArray(props.medium)) {
2470
2472
  props.medium = [props.medium];
2471
2473
  }
2472
- resource.medium = concept(
2473
- lookupValue("http://terminology.hl7.org/ValueSet/v3-ParticipationMode", props.medium)
2474
- );
2474
+ resource.medium = props.medium.map((x) => concept(
2475
+ lookupValue("http://terminology.hl7.org/ValueSet/v3-ParticipationMode", x)
2476
+ ));
2475
2477
  ensureConceptText(resource.medium);
2476
2478
  }
2477
2479
  if (!import_lodash20.default.isNil(props.subject)) {
@@ -2505,8 +2507,8 @@ function Communication_default(props) {
2505
2507
  if (!Array.isArray(props.reasonCode)) {
2506
2508
  props.reasonCode = [props.reasonCode];
2507
2509
  }
2508
- resource.reasonCode = concept(
2509
- lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings", props.reasonCode)
2510
+ resource.reasonCode = props.reasonCode.map(
2511
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings", x))
2510
2512
  );
2511
2513
  ensureConceptText(resource.reasonCode);
2512
2514
  }
@@ -2568,8 +2570,8 @@ function CommunicationRequest_default(props) {
2568
2570
  if (!Array.isArray(props.category)) {
2569
2571
  props.category = [props.category];
2570
2572
  }
2571
- resource.category = concept(
2572
- lookupValue("http://hl7.org/fhir/ValueSet/communication-category", props.category)
2573
+ resource.category = props.category.map(
2574
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/communication-category", x))
2573
2575
  );
2574
2576
  ensureConceptText(resource.category);
2575
2577
  }
@@ -2577,9 +2579,9 @@ function CommunicationRequest_default(props) {
2577
2579
  if (!Array.isArray(props.medium)) {
2578
2580
  props.medium = [props.medium];
2579
2581
  }
2580
- resource.medium = concept(
2581
- lookupValue("http://terminology.hl7.org/ValueSet/v3-ParticipationMode", props.medium)
2582
- );
2582
+ resource.medium = props.medium.map((x) => concept(
2583
+ lookupValue("http://terminology.hl7.org/ValueSet/v3-ParticipationMode", x)
2584
+ ));
2583
2585
  ensureConceptText(resource.medium);
2584
2586
  }
2585
2587
  if (!import_lodash21.default.isNil(props.subject)) {
@@ -2627,8 +2629,8 @@ function CommunicationRequest_default(props) {
2627
2629
  if (!Array.isArray(props.reasonCode)) {
2628
2630
  props.reasonCode = [props.reasonCode];
2629
2631
  }
2630
- resource.reasonCode = concept(
2631
- lookupValue("http://terminology.hl7.org/ValueSet/v3-ActReason", props.reasonCode)
2632
+ resource.reasonCode = props.reasonCode.map(
2633
+ (x) => concept(lookupValue("http://terminology.hl7.org/ValueSet/v3-ActReason", x))
2632
2634
  );
2633
2635
  ensureConceptText(resource.reasonCode);
2634
2636
  }
@@ -2720,8 +2722,8 @@ function Contract_default(props) {
2720
2722
  if (!Array.isArray(props.subType)) {
2721
2723
  props.subType = [props.subType];
2722
2724
  }
2723
- resource.subType = concept(
2724
- lookupValue("http://hl7.org/fhir/ValueSet/contract-subtype", props.subType)
2725
+ resource.subType = props.subType.map(
2726
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/contract-subtype", x))
2725
2727
  );
2726
2728
  ensureConceptText(resource.subType);
2727
2729
  }
@@ -3128,8 +3130,8 @@ function Device_default(props) {
3128
3130
  if (!Array.isArray(props.statusReason)) {
3129
3131
  props.statusReason = [props.statusReason];
3130
3132
  }
3131
- resource.statusReason = concept(
3132
- lookupValue("http://hl7.org/fhir/ValueSet/device-status-reason", props.statusReason)
3133
+ resource.statusReason = props.statusReason.map(
3134
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/device-status-reason", x))
3133
3135
  );
3134
3136
  ensureConceptText(resource.statusReason);
3135
3137
  }
@@ -3275,7 +3277,9 @@ function DeviceDefinition_default(props) {
3275
3277
  if (!Array.isArray(props.safety)) {
3276
3278
  props.safety = [props.safety];
3277
3279
  }
3278
- resource.safety = concept(lookupValue("http://hl7.org/fhir/ValueSet/device-safety", props.safety));
3280
+ resource.safety = props.safety.map(
3281
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/device-safety", x))
3282
+ );
3279
3283
  ensureConceptText(resource.safety);
3280
3284
  }
3281
3285
  if (!import_lodash28.default.isNil(props.languageCode)) {
@@ -3451,8 +3455,8 @@ function DeviceRequest_default(props) {
3451
3455
  if (!Array.isArray(props.reasonCode)) {
3452
3456
  props.reasonCode = [props.reasonCode];
3453
3457
  }
3454
- resource.reasonCode = concept(
3455
- lookupValue("http://hl7.org/fhir/ValueSet/condition-code", props.reasonCode)
3458
+ resource.reasonCode = props.reasonCode.map(
3459
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/condition-code", x))
3456
3460
  );
3457
3461
  ensureConceptText(resource.reasonCode);
3458
3462
  }
@@ -3564,9 +3568,9 @@ function DiagnosticReport_default(props) {
3564
3568
  if (!Array.isArray(props.category)) {
3565
3569
  props.category = [props.category];
3566
3570
  }
3567
- resource.category = concept(
3568
- lookupValue("http://hl7.org/fhir/ValueSet/diagnostic-service-sections", props.category)
3569
- );
3571
+ resource.category = props.category.map((x) => concept(
3572
+ lookupValue("http://hl7.org/fhir/ValueSet/diagnostic-service-sections", x)
3573
+ ));
3570
3574
  ensureConceptText(resource.category);
3571
3575
  }
3572
3576
  if (!import_lodash32.default.isNil(props.code)) {
@@ -3630,8 +3634,8 @@ function DiagnosticReport_default(props) {
3630
3634
  if (!Array.isArray(props.conclusionCode)) {
3631
3635
  props.conclusionCode = [props.conclusionCode];
3632
3636
  }
3633
- resource.conclusionCode = concept(
3634
- lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings", props.conclusionCode)
3637
+ resource.conclusionCode = props.conclusionCode.map(
3638
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings", x))
3635
3639
  );
3636
3640
  ensureConceptText(resource.conclusionCode);
3637
3641
  }
@@ -3697,7 +3701,9 @@ function Encounter_default(props) {
3697
3701
  if (!Array.isArray(props.type)) {
3698
3702
  props.type = [props.type];
3699
3703
  }
3700
- resource.type = concept(lookupValue("http://hl7.org/fhir/ValueSet/encounter-type", props.type));
3704
+ resource.type = props.type.map(
3705
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/encounter-type", x))
3706
+ );
3701
3707
  ensureConceptText(resource.type);
3702
3708
  }
3703
3709
  if (!import_lodash33.default.isNil(props.serviceType)) {
@@ -3750,8 +3756,8 @@ function Encounter_default(props) {
3750
3756
  if (!Array.isArray(props.reasonCode)) {
3751
3757
  props.reasonCode = [props.reasonCode];
3752
3758
  }
3753
- resource.reasonCode = concept(
3754
- lookupValue("http://hl7.org/fhir/ValueSet/encounter-reason", props.reasonCode)
3759
+ resource.reasonCode = props.reasonCode.map(
3760
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/encounter-reason", x))
3755
3761
  );
3756
3762
  ensureConceptText(resource.reasonCode);
3757
3763
  }
@@ -3892,8 +3898,8 @@ function EpisodeOfCare_default(props) {
3892
3898
  if (!Array.isArray(props.type)) {
3893
3899
  props.type = [props.type];
3894
3900
  }
3895
- resource.type = concept(
3896
- lookupValue("http://hl7.org/fhir/ValueSet/episodeofcare-type", props.type)
3901
+ resource.type = props.type.map(
3902
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/episodeofcare-type", x))
3897
3903
  );
3898
3904
  ensureConceptText(resource.type);
3899
3905
  }
@@ -3961,8 +3967,8 @@ function EventDefinition_default(props) {
3961
3967
  if (!Array.isArray(props.jurisdiction)) {
3962
3968
  props.jurisdiction = [props.jurisdiction];
3963
3969
  }
3964
- resource.jurisdiction = concept(
3965
- lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", props.jurisdiction)
3970
+ resource.jurisdiction = props.jurisdiction.map(
3971
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
3966
3972
  );
3967
3973
  ensureConceptText(resource.jurisdiction);
3968
3974
  }
@@ -3970,8 +3976,8 @@ function EventDefinition_default(props) {
3970
3976
  if (!Array.isArray(props.topic)) {
3971
3977
  props.topic = [props.topic];
3972
3978
  }
3973
- resource.topic = concept(
3974
- lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", props.topic)
3979
+ resource.topic = props.topic.map(
3980
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", x))
3975
3981
  );
3976
3982
  ensureConceptText(resource.topic);
3977
3983
  }
@@ -4447,8 +4453,8 @@ function FamilyMemberHistory_default(props) {
4447
4453
  if (!Array.isArray(props.reasonCode)) {
4448
4454
  props.reasonCode = [props.reasonCode];
4449
4455
  }
4450
- resource.reasonCode = concept(
4451
- lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings", props.reasonCode)
4456
+ resource.reasonCode = props.reasonCode.map(
4457
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings", x))
4452
4458
  );
4453
4459
  ensureConceptText(resource.reasonCode);
4454
4460
  }
@@ -4491,8 +4497,8 @@ function Flag_default(props) {
4491
4497
  if (!Array.isArray(props.category)) {
4492
4498
  props.category = [props.category];
4493
4499
  }
4494
- resource.category = concept(
4495
- lookupValue("http://hl7.org/fhir/ValueSet/flag-category", props.category)
4500
+ resource.category = props.category.map(
4501
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/flag-category", x))
4496
4502
  );
4497
4503
  ensureConceptText(resource.category);
4498
4504
  }
@@ -4535,8 +4541,8 @@ function Goal_default(props) {
4535
4541
  if (!Array.isArray(props.category)) {
4536
4542
  props.category = [props.category];
4537
4543
  }
4538
- resource.category = concept(
4539
- lookupValue("http://hl7.org/fhir/ValueSet/goal-category", props.category)
4544
+ resource.category = props.category.map(
4545
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/goal-category", x))
4540
4546
  );
4541
4547
  ensureConceptText(resource.category);
4542
4548
  }
@@ -4585,8 +4591,8 @@ function Goal_default(props) {
4585
4591
  if (!Array.isArray(props.outcomeCode)) {
4586
4592
  props.outcomeCode = [props.outcomeCode];
4587
4593
  }
4588
- resource.outcomeCode = concept(
4589
- lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings", props.outcomeCode)
4594
+ resource.outcomeCode = props.outcomeCode.map(
4595
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/clinical-findings", x))
4590
4596
  );
4591
4597
  ensureConceptText(resource.outcomeCode);
4592
4598
  }
@@ -4725,8 +4731,8 @@ function HealthcareService_default(props) {
4725
4731
  if (!Array.isArray(props.category)) {
4726
4732
  props.category = [props.category];
4727
4733
  }
4728
- resource.category = concept(
4729
- lookupValue("http://hl7.org/fhir/ValueSet/service-category", props.category)
4734
+ resource.category = props.category.map(
4735
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/service-category", x))
4730
4736
  );
4731
4737
  ensureConceptText(resource.category);
4732
4738
  }
@@ -4734,15 +4740,17 @@ function HealthcareService_default(props) {
4734
4740
  if (!Array.isArray(props.type)) {
4735
4741
  props.type = [props.type];
4736
4742
  }
4737
- resource.type = concept(lookupValue("http://hl7.org/fhir/ValueSet/service-type", props.type));
4743
+ resource.type = props.type.map(
4744
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/service-type", x))
4745
+ );
4738
4746
  ensureConceptText(resource.type);
4739
4747
  }
4740
4748
  if (!import_lodash47.default.isNil(props.specialty)) {
4741
4749
  if (!Array.isArray(props.specialty)) {
4742
4750
  props.specialty = [props.specialty];
4743
4751
  }
4744
- resource.specialty = concept(
4745
- lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes", props.specialty)
4752
+ resource.specialty = props.specialty.map(
4753
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes", x))
4746
4754
  );
4747
4755
  ensureConceptText(resource.specialty);
4748
4756
  }
@@ -4762,9 +4770,8 @@ function HealthcareService_default(props) {
4762
4770
  if (!Array.isArray(props.serviceProvisionCode)) {
4763
4771
  props.serviceProvisionCode = [props.serviceProvisionCode];
4764
4772
  }
4765
- resource.serviceProvisionCode = concept(lookupValue(
4766
- "http://hl7.org/fhir/ValueSet/service-provision-conditions",
4767
- props.serviceProvisionCode
4773
+ resource.serviceProvisionCode = props.serviceProvisionCode.map((x) => concept(
4774
+ lookupValue("http://hl7.org/fhir/ValueSet/service-provision-conditions", x)
4768
4775
  ));
4769
4776
  ensureConceptText(resource.serviceProvisionCode);
4770
4777
  }
@@ -4785,7 +4792,9 @@ function HealthcareService_default(props) {
4785
4792
  if (!Array.isArray(props.program)) {
4786
4793
  props.program = [props.program];
4787
4794
  }
4788
- resource.program = concept(lookupValue("http://hl7.org/fhir/ValueSet/program", props.program));
4795
+ resource.program = props.program.map(
4796
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/program", x))
4797
+ );
4789
4798
  ensureConceptText(resource.program);
4790
4799
  }
4791
4800
  if (!import_lodash47.default.isNil(props.characteristic)) {
@@ -4799,8 +4808,8 @@ function HealthcareService_default(props) {
4799
4808
  if (!Array.isArray(props.communication)) {
4800
4809
  props.communication = [props.communication];
4801
4810
  }
4802
- resource.communication = concept(
4803
- lookupValue("http://hl7.org/fhir/ValueSet/languages", props.communication)
4811
+ resource.communication = props.communication.map(
4812
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/languages", x))
4804
4813
  );
4805
4814
  ensureConceptText(resource.communication);
4806
4815
  }
@@ -4808,10 +4817,9 @@ function HealthcareService_default(props) {
4808
4817
  if (!Array.isArray(props.referralMethod)) {
4809
4818
  props.referralMethod = [props.referralMethod];
4810
4819
  }
4811
- resource.referralMethod = concept(lookupValue(
4812
- "http://hl7.org/fhir/ValueSet/service-referral-method",
4813
- props.referralMethod
4814
- ));
4820
+ resource.referralMethod = props.referralMethod.map(
4821
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/service-referral-method", x))
4822
+ );
4815
4823
  ensureConceptText(resource.referralMethod);
4816
4824
  }
4817
4825
  if (!import_lodash47.default.isNil(props.availableTime)) {
@@ -4903,8 +4911,8 @@ function ImagingStudy_default(props) {
4903
4911
  if (!Array.isArray(props.procedureCode)) {
4904
4912
  props.procedureCode = [props.procedureCode];
4905
4913
  }
4906
- resource.procedureCode = concept(
4907
- lookupValue("http://www.rsna.org/RadLex_Playbook.aspx", props.procedureCode)
4914
+ resource.procedureCode = props.procedureCode.map(
4915
+ (x) => concept(lookupValue("http://www.rsna.org/RadLex_Playbook.aspx", x))
4908
4916
  );
4909
4917
  ensureConceptText(resource.procedureCode);
4910
4918
  }
@@ -4915,8 +4923,8 @@ function ImagingStudy_default(props) {
4915
4923
  if (!Array.isArray(props.reasonCode)) {
4916
4924
  props.reasonCode = [props.reasonCode];
4917
4925
  }
4918
- resource.reasonCode = concept(
4919
- lookupValue("http://hl7.org/fhir/ValueSet/procedure-reason", props.reasonCode)
4926
+ resource.reasonCode = props.reasonCode.map(
4927
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/procedure-reason", x))
4920
4928
  );
4921
4929
  ensureConceptText(resource.reasonCode);
4922
4930
  }
@@ -5019,8 +5027,8 @@ function Immunization_default(props) {
5019
5027
  if (!Array.isArray(props.reasonCode)) {
5020
5028
  props.reasonCode = [props.reasonCode];
5021
5029
  }
5022
- resource.reasonCode = concept(
5023
- lookupValue("http://hl7.org/fhir/ValueSet/immunization-reason", props.reasonCode)
5030
+ resource.reasonCode = props.reasonCode.map(
5031
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/immunization-reason", x))
5024
5032
  );
5025
5033
  ensureConceptText(resource.reasonCode);
5026
5034
  }
@@ -5034,9 +5042,8 @@ function Immunization_default(props) {
5034
5042
  if (!Array.isArray(props.subpotentReason)) {
5035
5043
  props.subpotentReason = [props.subpotentReason];
5036
5044
  }
5037
- resource.subpotentReason = concept(lookupValue(
5038
- "http://hl7.org/fhir/ValueSet/immunization-subpotent-reason",
5039
- props.subpotentReason
5045
+ resource.subpotentReason = props.subpotentReason.map((x) => concept(
5046
+ lookupValue("http://hl7.org/fhir/ValueSet/immunization-subpotent-reason", x)
5040
5047
  ));
5041
5048
  ensureConceptText(resource.subpotentReason);
5042
5049
  }
@@ -5057,9 +5064,8 @@ function Immunization_default(props) {
5057
5064
  if (!Array.isArray(props.programEligibility)) {
5058
5065
  props.programEligibility = [props.programEligibility];
5059
5066
  }
5060
- resource.programEligibility = concept(lookupValue(
5061
- "http://hl7.org/fhir/ValueSet/immunization-program-eligibility",
5062
- props.programEligibility
5067
+ resource.programEligibility = props.programEligibility.map((x) => concept(
5068
+ lookupValue("http://hl7.org/fhir/ValueSet/immunization-program-eligibility", x)
5063
5069
  ));
5064
5070
  ensureConceptText(resource.programEligibility);
5065
5071
  }
@@ -5139,10 +5145,10 @@ function ImmunizationEvaluation_default(props) {
5139
5145
  if (!Array.isArray(props.doseStatusReason)) {
5140
5146
  props.doseStatusReason = [props.doseStatusReason];
5141
5147
  }
5142
- resource.doseStatusReason = concept(lookupValue(
5148
+ resource.doseStatusReason = props.doseStatusReason.map((x) => concept(lookupValue(
5143
5149
  "http://hl7.org/fhir/ValueSet/immunization-evaluation-dose-status-reason",
5144
- props.doseStatusReason
5145
- ));
5150
+ x
5151
+ )));
5146
5152
  ensureConceptText(resource.doseStatusReason);
5147
5153
  }
5148
5154
  if (!import_lodash50.default.isNil(props.doseNumber)) {
@@ -5215,8 +5221,8 @@ function Ingredient_default(props) {
5215
5221
  if (!Array.isArray(props.function)) {
5216
5222
  props.function = [props.function];
5217
5223
  }
5218
- resource.function = concept(
5219
- lookupValue("http://hl7.org/fhir/ValueSet/ingredient-function", props.function)
5224
+ resource.function = props.function.map(
5225
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/ingredient-function", x))
5220
5226
  );
5221
5227
  ensureConceptText(resource.function);
5222
5228
  }
@@ -5260,8 +5266,8 @@ function InsurancePlan_default(props) {
5260
5266
  if (!Array.isArray(props.type)) {
5261
5267
  props.type = [props.type];
5262
5268
  }
5263
- resource.type = concept(
5264
- lookupValue("http://hl7.org/fhir/ValueSet/insuranceplan-type", props.type)
5269
+ resource.type = props.type.map(
5270
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/insuranceplan-type", x))
5265
5271
  );
5266
5272
  ensureConceptText(resource.type);
5267
5273
  }
@@ -5414,8 +5420,8 @@ function Library_default(props) {
5414
5420
  if (!Array.isArray(props.jurisdiction)) {
5415
5421
  props.jurisdiction = [props.jurisdiction];
5416
5422
  }
5417
- resource.jurisdiction = concept(
5418
- lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", props.jurisdiction)
5423
+ resource.jurisdiction = props.jurisdiction.map(
5424
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
5419
5425
  );
5420
5426
  ensureConceptText(resource.jurisdiction);
5421
5427
  }
@@ -5423,8 +5429,8 @@ function Library_default(props) {
5423
5429
  if (!Array.isArray(props.topic)) {
5424
5430
  props.topic = [props.topic];
5425
5431
  }
5426
- resource.topic = concept(
5427
- lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", props.topic)
5432
+ resource.topic = props.topic.map(
5433
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", x))
5428
5434
  );
5429
5435
  ensureConceptText(resource.topic);
5430
5436
  }
@@ -5509,10 +5515,10 @@ function Location_default(props) {
5509
5515
  if (!Array.isArray(props.type)) {
5510
5516
  props.type = [props.type];
5511
5517
  }
5512
- resource.type = concept(lookupValue(
5518
+ resource.type = props.type.map((x) => concept(lookupValue(
5513
5519
  "http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType",
5514
- props.type
5515
- ));
5520
+ x
5521
+ )));
5516
5522
  ensureConceptText(resource.type);
5517
5523
  }
5518
5524
  if (!import_lodash57.default.isNil(props.physicalType)) {
@@ -5593,8 +5599,8 @@ function ManufacturedItemDefinition_default(props) {
5593
5599
  if (!Array.isArray(props.ingredient)) {
5594
5600
  props.ingredient = [props.ingredient];
5595
5601
  }
5596
- resource.ingredient = concept(
5597
- lookupValue("http://hl7.org/fhir/ValueSet/substance-codes", props.ingredient)
5602
+ resource.ingredient = props.ingredient.map(
5603
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/substance-codes", x))
5598
5604
  );
5599
5605
  ensureConceptText(resource.ingredient);
5600
5606
  }
@@ -5635,8 +5641,8 @@ function Measure_default(props) {
5635
5641
  if (!Array.isArray(props.jurisdiction)) {
5636
5642
  props.jurisdiction = [props.jurisdiction];
5637
5643
  }
5638
- resource.jurisdiction = concept(
5639
- lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", props.jurisdiction)
5644
+ resource.jurisdiction = props.jurisdiction.map(
5645
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
5640
5646
  );
5641
5647
  ensureConceptText(resource.jurisdiction);
5642
5648
  }
@@ -5644,8 +5650,8 @@ function Measure_default(props) {
5644
5650
  if (!Array.isArray(props.topic)) {
5645
5651
  props.topic = [props.topic];
5646
5652
  }
5647
- resource.topic = concept(
5648
- lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", props.topic)
5653
+ resource.topic = props.topic.map(
5654
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", x))
5649
5655
  );
5650
5656
  ensureConceptText(resource.topic);
5651
5657
  }
@@ -5666,7 +5672,9 @@ function Measure_default(props) {
5666
5672
  if (!Array.isArray(props.type)) {
5667
5673
  props.type = [props.type];
5668
5674
  }
5669
- resource.type = concept(lookupValue("http://hl7.org/fhir/ValueSet/measure-type", props.type));
5675
+ resource.type = props.type.map(
5676
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/measure-type", x))
5677
+ );
5670
5678
  ensureConceptText(resource.type);
5671
5679
  }
5672
5680
  if (!import_lodash59.default.isNil(props.improvementNotation)) {
@@ -5809,8 +5817,8 @@ function Media_default(props) {
5809
5817
  if (!Array.isArray(props.reasonCode)) {
5810
5818
  props.reasonCode = [props.reasonCode];
5811
5819
  }
5812
- resource.reasonCode = concept(
5813
- lookupValue("http://hl7.org/fhir/ValueSet/procedure-reason", props.reasonCode)
5820
+ resource.reasonCode = props.reasonCode.map(
5821
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/procedure-reason", x))
5814
5822
  );
5815
5823
  ensureConceptText(resource.reasonCode);
5816
5824
  }
@@ -5898,9 +5906,8 @@ function MedicationAdministration_default(props) {
5898
5906
  if (!Array.isArray(props.statusReason)) {
5899
5907
  props.statusReason = [props.statusReason];
5900
5908
  }
5901
- resource.statusReason = concept(lookupValue(
5902
- "http://hl7.org/fhir/ValueSet/reason-medication-not-given-codes",
5903
- props.statusReason
5909
+ resource.statusReason = props.statusReason.map((x) => concept(
5910
+ lookupValue("http://hl7.org/fhir/ValueSet/reason-medication-not-given-codes", x)
5904
5911
  ));
5905
5912
  ensureConceptText(resource.statusReason);
5906
5913
  }
@@ -5947,9 +5954,8 @@ function MedicationAdministration_default(props) {
5947
5954
  if (!Array.isArray(props.reasonCode)) {
5948
5955
  props.reasonCode = [props.reasonCode];
5949
5956
  }
5950
- resource.reasonCode = concept(lookupValue(
5951
- "http://hl7.org/fhir/ValueSet/reason-medication-given-codes",
5952
- props.reasonCode
5957
+ resource.reasonCode = props.reasonCode.map((x) => concept(
5958
+ lookupValue("http://hl7.org/fhir/ValueSet/reason-medication-given-codes", x)
5953
5959
  ));
5954
5960
  ensureConceptText(resource.reasonCode);
5955
5961
  }
@@ -6166,8 +6172,8 @@ function MedicationKnowledge_default(props) {
6166
6172
  if (!Array.isArray(props.intendedRoute)) {
6167
6173
  props.intendedRoute = [props.intendedRoute];
6168
6174
  }
6169
- resource.intendedRoute = concept(
6170
- lookupValue("http://hl7.org/fhir/ValueSet/route-codes", props.intendedRoute)
6175
+ resource.intendedRoute = props.intendedRoute.map(
6176
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/route-codes", x))
6171
6177
  );
6172
6178
  ensureConceptText(resource.intendedRoute);
6173
6179
  }
@@ -6302,9 +6308,9 @@ function MedicationRequest_default(props) {
6302
6308
  if (!Array.isArray(props.category)) {
6303
6309
  props.category = [props.category];
6304
6310
  }
6305
- resource.category = concept(
6306
- lookupValue("http://hl7.org/fhir/ValueSet/medicationrequest-category", props.category)
6307
- );
6311
+ resource.category = props.category.map((x) => concept(
6312
+ lookupValue("http://hl7.org/fhir/ValueSet/medicationrequest-category", x)
6313
+ ));
6308
6314
  ensureConceptText(resource.category);
6309
6315
  }
6310
6316
  if (!import_lodash66.default.isNil(props.reported)) {
@@ -6346,8 +6352,8 @@ function MedicationRequest_default(props) {
6346
6352
  if (!Array.isArray(props.reasonCode)) {
6347
6353
  props.reasonCode = [props.reasonCode];
6348
6354
  }
6349
- resource.reasonCode = concept(
6350
- lookupValue("http://hl7.org/fhir/ValueSet/condition-code", props.reasonCode)
6355
+ resource.reasonCode = props.reasonCode.map(
6356
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/condition-code", x))
6351
6357
  );
6352
6358
  ensureConceptText(resource.reasonCode);
6353
6359
  }
@@ -6440,9 +6446,8 @@ function MedicationStatement_default(props) {
6440
6446
  if (!Array.isArray(props.statusReason)) {
6441
6447
  props.statusReason = [props.statusReason];
6442
6448
  }
6443
- resource.statusReason = concept(lookupValue(
6444
- "http://hl7.org/fhir/ValueSet/reason-medication-status-codes",
6445
- props.statusReason
6449
+ resource.statusReason = props.statusReason.map((x) => concept(
6450
+ lookupValue("http://hl7.org/fhir/ValueSet/reason-medication-status-codes", x)
6446
6451
  ));
6447
6452
  ensureConceptText(resource.statusReason);
6448
6453
  }
@@ -6480,8 +6485,8 @@ function MedicationStatement_default(props) {
6480
6485
  if (!Array.isArray(props.reasonCode)) {
6481
6486
  props.reasonCode = [props.reasonCode];
6482
6487
  }
6483
- resource.reasonCode = concept(
6484
- lookupValue("http://hl7.org/fhir/ValueSet/condition-code", props.reasonCode)
6488
+ resource.reasonCode = props.reasonCode.map(
6489
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/condition-code", x))
6485
6490
  );
6486
6491
  ensureConceptText(resource.reasonCode);
6487
6492
  }
@@ -6536,7 +6541,9 @@ function MedicinalProductDefinition_default(props) {
6536
6541
  if (!Array.isArray(props.route)) {
6537
6542
  props.route = [props.route];
6538
6543
  }
6539
- resource.route = concept(lookupValue("http://hl7.org/fhir/ValueSet/route-codes", props.route));
6544
+ resource.route = props.route.map(
6545
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/route-codes", x))
6546
+ );
6540
6547
  ensureConceptText(resource.route);
6541
6548
  }
6542
6549
  if (!import_lodash68.default.isNil(props.legalStatusOfSupply)) {
@@ -6557,9 +6564,8 @@ function MedicinalProductDefinition_default(props) {
6557
6564
  if (!Array.isArray(props.specialMeasures)) {
6558
6565
  props.specialMeasures = [props.specialMeasures];
6559
6566
  }
6560
- resource.specialMeasures = concept(lookupValue(
6561
- "http://hl7.org/fhir/ValueSet/medicinal-product-special-measures",
6562
- props.specialMeasures
6567
+ resource.specialMeasures = props.specialMeasures.map((x) => concept(
6568
+ lookupValue("http://hl7.org/fhir/ValueSet/medicinal-product-special-measures", x)
6563
6569
  ));
6564
6570
  ensureConceptText(resource.specialMeasures);
6565
6571
  }
@@ -6574,9 +6580,8 @@ function MedicinalProductDefinition_default(props) {
6574
6580
  if (!Array.isArray(props.classification)) {
6575
6581
  props.classification = [props.classification];
6576
6582
  }
6577
- resource.classification = concept(lookupValue(
6578
- "http://hl7.org/fhir/ValueSet/product-classification-codes",
6579
- props.classification
6583
+ resource.classification = props.classification.map((x) => concept(
6584
+ lookupValue("http://hl7.org/fhir/ValueSet/product-classification-codes", x)
6580
6585
  ));
6581
6586
  ensureConceptText(resource.classification);
6582
6587
  }
@@ -6584,9 +6589,8 @@ function MedicinalProductDefinition_default(props) {
6584
6589
  if (!Array.isArray(props.packagedMedicinalProduct)) {
6585
6590
  props.packagedMedicinalProduct = [props.packagedMedicinalProduct];
6586
6591
  }
6587
- resource.packagedMedicinalProduct = concept(lookupValue(
6588
- "http://hl7.org/fhir/ValueSet/medicinal-product-package-type",
6589
- props.packagedMedicinalProduct
6592
+ resource.packagedMedicinalProduct = props.packagedMedicinalProduct.map((x) => concept(
6593
+ lookupValue("http://hl7.org/fhir/ValueSet/medicinal-product-package-type", x)
6590
6594
  ));
6591
6595
  ensureConceptText(resource.packagedMedicinalProduct);
6592
6596
  }
@@ -6594,8 +6598,8 @@ function MedicinalProductDefinition_default(props) {
6594
6598
  if (!Array.isArray(props.ingredient)) {
6595
6599
  props.ingredient = [props.ingredient];
6596
6600
  }
6597
- resource.ingredient = concept(
6598
- lookupValue("http://hl7.org/fhir/ValueSet/substance-codes", props.ingredient)
6601
+ resource.ingredient = props.ingredient.map(
6602
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/substance-codes", x))
6599
6603
  );
6600
6604
  ensureConceptText(resource.ingredient);
6601
6605
  }
@@ -6817,18 +6821,17 @@ function NutritionOrder_default(props) {
6817
6821
  if (!Array.isArray(props.foodPreferenceModifier)) {
6818
6822
  props.foodPreferenceModifier = [props.foodPreferenceModifier];
6819
6823
  }
6820
- resource.foodPreferenceModifier = concept(lookupValue(
6821
- "http://hl7.org/fhir/ValueSet/encounter-diet",
6822
- props.foodPreferenceModifier
6823
- ));
6824
+ resource.foodPreferenceModifier = props.foodPreferenceModifier.map(
6825
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/encounter-diet", x))
6826
+ );
6824
6827
  ensureConceptText(resource.foodPreferenceModifier);
6825
6828
  }
6826
6829
  if (!import_lodash70.default.isNil(props.excludeFoodModifier)) {
6827
6830
  if (!Array.isArray(props.excludeFoodModifier)) {
6828
6831
  props.excludeFoodModifier = [props.excludeFoodModifier];
6829
6832
  }
6830
- resource.excludeFoodModifier = concept(
6831
- lookupValue("http://hl7.org/fhir/ValueSet/food-type", props.excludeFoodModifier)
6833
+ resource.excludeFoodModifier = props.excludeFoodModifier.map(
6834
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/food-type", x))
6832
6835
  );
6833
6836
  ensureConceptText(resource.excludeFoodModifier);
6834
6837
  }
@@ -6873,9 +6876,9 @@ function NutritionProduct_default(props) {
6873
6876
  if (!Array.isArray(props.category)) {
6874
6877
  props.category = [props.category];
6875
6878
  }
6876
- resource.category = concept(
6877
- lookupValue("http://hl7.org/fhir/ValueSet/nutrition-product-category", props.category)
6878
- );
6879
+ resource.category = props.category.map((x) => concept(
6880
+ lookupValue("http://hl7.org/fhir/ValueSet/nutrition-product-category", x)
6881
+ ));
6879
6882
  ensureConceptText(resource.category);
6880
6883
  }
6881
6884
  if (!import_lodash71.default.isNil(props.code)) {
@@ -6968,8 +6971,8 @@ function Observation_default(props) {
6968
6971
  if (!Array.isArray(props.category)) {
6969
6972
  props.category = [props.category];
6970
6973
  }
6971
- resource.category = concept(
6972
- lookupValue("http://hl7.org/fhir/ValueSet/observation-category", props.category)
6974
+ resource.category = props.category.map(
6975
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/observation-category", x))
6973
6976
  );
6974
6977
  ensureConceptText(resource.category);
6975
6978
  }
@@ -7015,9 +7018,8 @@ function Observation_default(props) {
7015
7018
  if (!Array.isArray(props.interpretation)) {
7016
7019
  props.interpretation = [props.interpretation];
7017
7020
  }
7018
- resource.interpretation = concept(lookupValue(
7019
- "http://hl7.org/fhir/ValueSet/observation-interpretation",
7020
- props.interpretation
7021
+ resource.interpretation = props.interpretation.map((x) => concept(
7022
+ lookupValue("http://hl7.org/fhir/ValueSet/observation-interpretation", x)
7021
7023
  ));
7022
7024
  ensureConceptText(resource.interpretation);
7023
7025
  }
@@ -7089,8 +7091,8 @@ function ObservationDefinition_default(props) {
7089
7091
  if (!Array.isArray(props.category)) {
7090
7092
  props.category = [props.category];
7091
7093
  }
7092
- resource.category = concept(
7093
- lookupValue("http://hl7.org/fhir/ValueSet/observation-category", props.category)
7094
+ resource.category = props.category.map(
7095
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/observation-category", x))
7094
7096
  );
7095
7097
  ensureConceptText(resource.category);
7096
7098
  }
@@ -7164,8 +7166,8 @@ function Organization_default(props) {
7164
7166
  if (!Array.isArray(props.type)) {
7165
7167
  props.type = [props.type];
7166
7168
  }
7167
- resource.type = concept(
7168
- lookupValue("http://hl7.org/fhir/ValueSet/organization-type", props.type)
7169
+ resource.type = props.type.map(
7170
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/organization-type", x))
7169
7171
  );
7170
7172
  ensureConceptText(resource.type);
7171
7173
  }
@@ -7223,8 +7225,8 @@ function OrganizationAffiliation_default(props) {
7223
7225
  if (!Array.isArray(props.code)) {
7224
7226
  props.code = [props.code];
7225
7227
  }
7226
- resource.code = concept(
7227
- lookupValue("http://hl7.org/fhir/ValueSet/organization-role", props.code)
7228
+ resource.code = props.code.map(
7229
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/organization-role", x))
7228
7230
  );
7229
7231
  ensureConceptText(resource.code);
7230
7232
  }
@@ -7232,8 +7234,8 @@ function OrganizationAffiliation_default(props) {
7232
7234
  if (!Array.isArray(props.specialty)) {
7233
7235
  props.specialty = [props.specialty];
7234
7236
  }
7235
- resource.specialty = concept(
7236
- lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes", props.specialty)
7237
+ resource.specialty = props.specialty.map(
7238
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes", x))
7237
7239
  );
7238
7240
  ensureConceptText(resource.specialty);
7239
7241
  }
@@ -7304,10 +7306,9 @@ function PackagedProductDefinition_default(props) {
7304
7306
  if (!Array.isArray(props.characteristic)) {
7305
7307
  props.characteristic = [props.characteristic];
7306
7308
  }
7307
- resource.characteristic = concept(lookupValue(
7308
- "http://hl7.org/fhir/ValueSet/package-characteristic",
7309
- props.characteristic
7310
- ));
7309
+ resource.characteristic = props.characteristic.map(
7310
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/package-characteristic", x))
7311
+ );
7311
7312
  ensureConceptText(resource.characteristic);
7312
7313
  }
7313
7314
  if (!import_lodash76.default.isNil(props.manufacturer)) {
@@ -7561,8 +7562,8 @@ function PlanDefinition_default(props) {
7561
7562
  if (!Array.isArray(props.jurisdiction)) {
7562
7563
  props.jurisdiction = [props.jurisdiction];
7563
7564
  }
7564
- resource.jurisdiction = concept(
7565
- lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", props.jurisdiction)
7565
+ resource.jurisdiction = props.jurisdiction.map(
7566
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
7566
7567
  );
7567
7568
  ensureConceptText(resource.jurisdiction);
7568
7569
  }
@@ -7570,8 +7571,8 @@ function PlanDefinition_default(props) {
7570
7571
  if (!Array.isArray(props.topic)) {
7571
7572
  props.topic = [props.topic];
7572
7573
  }
7573
- resource.topic = concept(
7574
- lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", props.topic)
7574
+ resource.topic = props.topic.map(
7575
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", x))
7575
7576
  );
7576
7577
  ensureConceptText(resource.topic);
7577
7578
  }
@@ -7634,8 +7635,8 @@ function Practitioner_default(props) {
7634
7635
  if (!Array.isArray(props.communication)) {
7635
7636
  props.communication = [props.communication];
7636
7637
  }
7637
- resource.communication = concept(
7638
- lookupValue("http://hl7.org/fhir/ValueSet/languages", props.communication)
7638
+ resource.communication = props.communication.map(
7639
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/languages", x))
7639
7640
  );
7640
7641
  ensureConceptText(resource.communication);
7641
7642
  }
@@ -7665,8 +7666,8 @@ function PractitionerRole_default(props) {
7665
7666
  if (!Array.isArray(props.code)) {
7666
7667
  props.code = [props.code];
7667
7668
  }
7668
- resource.code = concept(
7669
- lookupValue("http://hl7.org/fhir/ValueSet/practitioner-role", props.code)
7669
+ resource.code = props.code.map(
7670
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/practitioner-role", x))
7670
7671
  );
7671
7672
  ensureConceptText(resource.code);
7672
7673
  }
@@ -7674,8 +7675,8 @@ function PractitionerRole_default(props) {
7674
7675
  if (!Array.isArray(props.specialty)) {
7675
7676
  props.specialty = [props.specialty];
7676
7677
  }
7677
- resource.specialty = concept(
7678
- lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes", props.specialty)
7678
+ resource.specialty = props.specialty.map(
7679
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes", x))
7679
7680
  );
7680
7681
  ensureConceptText(resource.specialty);
7681
7682
  }
@@ -7804,8 +7805,8 @@ function Procedure_default(props) {
7804
7805
  if (!Array.isArray(props.reasonCode)) {
7805
7806
  props.reasonCode = [props.reasonCode];
7806
7807
  }
7807
- resource.reasonCode = concept(
7808
- lookupValue("http://hl7.org/fhir/ValueSet/procedure-reason", props.reasonCode)
7808
+ resource.reasonCode = props.reasonCode.map(
7809
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/procedure-reason", x))
7809
7810
  );
7810
7811
  ensureConceptText(resource.reasonCode);
7811
7812
  }
@@ -7819,7 +7820,9 @@ function Procedure_default(props) {
7819
7820
  if (!Array.isArray(props.bodySite)) {
7820
7821
  props.bodySite = [props.bodySite];
7821
7822
  }
7822
- resource.bodySite = concept(lookupValue("http://hl7.org/fhir/ValueSet/body-site", props.bodySite));
7823
+ resource.bodySite = props.bodySite.map(
7824
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/body-site", x))
7825
+ );
7823
7826
  ensureConceptText(resource.bodySite);
7824
7827
  }
7825
7828
  if (!import_lodash84.default.isNil(props.outcome)) {
@@ -7838,8 +7841,8 @@ function Procedure_default(props) {
7838
7841
  if (!Array.isArray(props.complication)) {
7839
7842
  props.complication = [props.complication];
7840
7843
  }
7841
- resource.complication = concept(
7842
- lookupValue("http://hl7.org/fhir/ValueSet/condition-code", props.complication)
7844
+ resource.complication = props.complication.map(
7845
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/condition-code", x))
7843
7846
  );
7844
7847
  ensureConceptText(resource.complication);
7845
7848
  }
@@ -7853,8 +7856,8 @@ function Procedure_default(props) {
7853
7856
  if (!Array.isArray(props.followUp)) {
7854
7857
  props.followUp = [props.followUp];
7855
7858
  }
7856
- resource.followUp = concept(
7857
- lookupValue("http://hl7.org/fhir/ValueSet/procedure-followup", props.followUp)
7859
+ resource.followUp = props.followUp.map(
7860
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/procedure-followup", x))
7858
7861
  );
7859
7862
  ensureConceptText(resource.followUp);
7860
7863
  }
@@ -7881,7 +7884,9 @@ function Procedure_default(props) {
7881
7884
  if (!Array.isArray(props.usedCode)) {
7882
7885
  props.usedCode = [props.usedCode];
7883
7886
  }
7884
- resource.usedCode = concept(lookupValue("http://hl7.org/fhir/ValueSet/device-kind", props.usedCode));
7887
+ resource.usedCode = props.usedCode.map(
7888
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/device-kind", x))
7889
+ );
7885
7890
  ensureConceptText(resource.usedCode);
7886
7891
  }
7887
7892
  return resource;
@@ -7904,8 +7909,8 @@ function Questionnaire_default(props) {
7904
7909
  if (!Array.isArray(props.jurisdiction)) {
7905
7910
  props.jurisdiction = [props.jurisdiction];
7906
7911
  }
7907
- resource.jurisdiction = concept(
7908
- lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", props.jurisdiction)
7912
+ resource.jurisdiction = props.jurisdiction.map(
7913
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
7909
7914
  );
7910
7915
  ensureConceptText(resource.jurisdiction);
7911
7916
  }
@@ -8011,7 +8016,9 @@ function RegulatedAuthorization_default(props) {
8011
8016
  if (!Array.isArray(props.region)) {
8012
8017
  props.region = [props.region];
8013
8018
  }
8014
- resource.region = concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", props.region));
8019
+ resource.region = props.region.map(
8020
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
8021
+ );
8015
8022
  ensureConceptText(resource.region);
8016
8023
  }
8017
8024
  if (!import_lodash87.default.isNil(props.status)) {
@@ -8030,9 +8037,9 @@ function RegulatedAuthorization_default(props) {
8030
8037
  if (!Array.isArray(props.basis)) {
8031
8038
  props.basis = [props.basis];
8032
8039
  }
8033
- resource.basis = concept(
8034
- lookupValue("http://hl7.org/fhir/ValueSet/regulated-authorization-basis", props.basis)
8035
- );
8040
+ resource.basis = props.basis.map((x) => concept(
8041
+ lookupValue("http://hl7.org/fhir/ValueSet/regulated-authorization-basis", x)
8042
+ ));
8036
8043
  ensureConceptText(resource.basis);
8037
8044
  }
8038
8045
  if (!import_lodash87.default.isNil(props.holder)) {
@@ -8071,9 +8078,8 @@ function RelatedPerson_default(props) {
8071
8078
  if (!Array.isArray(props.relationship)) {
8072
8079
  props.relationship = [props.relationship];
8073
8080
  }
8074
- resource.relationship = concept(lookupValue(
8075
- "http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype",
8076
- props.relationship
8081
+ resource.relationship = props.relationship.map((x) => concept(
8082
+ lookupValue("http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype", x)
8077
8083
  ));
8078
8084
  ensureConceptText(resource.relationship);
8079
8085
  }
@@ -8184,8 +8190,8 @@ function ResearchDefinition_default(props) {
8184
8190
  if (!Array.isArray(props.jurisdiction)) {
8185
8191
  props.jurisdiction = [props.jurisdiction];
8186
8192
  }
8187
- resource.jurisdiction = concept(
8188
- lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", props.jurisdiction)
8193
+ resource.jurisdiction = props.jurisdiction.map(
8194
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
8189
8195
  );
8190
8196
  ensureConceptText(resource.jurisdiction);
8191
8197
  }
@@ -8193,8 +8199,8 @@ function ResearchDefinition_default(props) {
8193
8199
  if (!Array.isArray(props.topic)) {
8194
8200
  props.topic = [props.topic];
8195
8201
  }
8196
- resource.topic = concept(
8197
- lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", props.topic)
8202
+ resource.topic = props.topic.map(
8203
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", x))
8198
8204
  );
8199
8205
  ensureConceptText(resource.topic);
8200
8206
  }
@@ -8234,8 +8240,8 @@ function ResearchElementDefinition_default(props) {
8234
8240
  if (!Array.isArray(props.jurisdiction)) {
8235
8241
  props.jurisdiction = [props.jurisdiction];
8236
8242
  }
8237
- resource.jurisdiction = concept(
8238
- lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", props.jurisdiction)
8243
+ resource.jurisdiction = props.jurisdiction.map(
8244
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
8239
8245
  );
8240
8246
  ensureConceptText(resource.jurisdiction);
8241
8247
  }
@@ -8243,8 +8249,8 @@ function ResearchElementDefinition_default(props) {
8243
8249
  if (!Array.isArray(props.topic)) {
8244
8250
  props.topic = [props.topic];
8245
8251
  }
8246
- resource.topic = concept(
8247
- lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", props.topic)
8252
+ resource.topic = props.topic.map(
8253
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/definition-topic", x))
8248
8254
  );
8249
8255
  ensureConceptText(resource.topic);
8250
8256
  }
@@ -8320,8 +8326,8 @@ function ResearchStudy_default(props) {
8320
8326
  if (!Array.isArray(props.condition)) {
8321
8327
  props.condition = [props.condition];
8322
8328
  }
8323
- resource.condition = concept(
8324
- lookupValue("http://hl7.org/fhir/ValueSet/condition-code", props.condition)
8329
+ resource.condition = props.condition.map(
8330
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/condition-code", x))
8325
8331
  );
8326
8332
  ensureConceptText(resource.condition);
8327
8333
  }
@@ -8336,8 +8342,8 @@ function ResearchStudy_default(props) {
8336
8342
  if (!Array.isArray(props.location)) {
8337
8343
  props.location = [props.location];
8338
8344
  }
8339
- resource.location = concept(
8340
- lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", props.location)
8345
+ resource.location = props.location.map(
8346
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/jurisdiction", x))
8341
8347
  );
8342
8348
  ensureConceptText(resource.location);
8343
8349
  }
@@ -8515,8 +8521,8 @@ function Schedule_default(props) {
8515
8521
  if (!Array.isArray(props.serviceCategory)) {
8516
8522
  props.serviceCategory = [props.serviceCategory];
8517
8523
  }
8518
- resource.serviceCategory = concept(
8519
- lookupValue("http://hl7.org/fhir/ValueSet/service-category", props.serviceCategory)
8524
+ resource.serviceCategory = props.serviceCategory.map(
8525
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/service-category", x))
8520
8526
  );
8521
8527
  ensureConceptText(resource.serviceCategory);
8522
8528
  }
@@ -8524,8 +8530,8 @@ function Schedule_default(props) {
8524
8530
  if (!Array.isArray(props.serviceType)) {
8525
8531
  props.serviceType = [props.serviceType];
8526
8532
  }
8527
- resource.serviceType = concept(
8528
- lookupValue("http://hl7.org/fhir/ValueSet/service-type", props.serviceType)
8533
+ resource.serviceType = props.serviceType.map(
8534
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/service-type", x))
8529
8535
  );
8530
8536
  ensureConceptText(resource.serviceType);
8531
8537
  }
@@ -8533,8 +8539,8 @@ function Schedule_default(props) {
8533
8539
  if (!Array.isArray(props.specialty)) {
8534
8540
  props.specialty = [props.specialty];
8535
8541
  }
8536
- resource.specialty = concept(
8537
- lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes", props.specialty)
8542
+ resource.specialty = props.specialty.map(
8543
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes", x))
8538
8544
  );
8539
8545
  ensureConceptText(resource.specialty);
8540
8546
  }
@@ -8579,8 +8585,8 @@ function ServiceRequest_default(props) {
8579
8585
  if (!Array.isArray(props.category)) {
8580
8586
  props.category = [props.category];
8581
8587
  }
8582
- resource.category = concept(
8583
- lookupValue("http://hl7.org/fhir/ValueSet/servicerequest-category", props.category)
8588
+ resource.category = props.category.map(
8589
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/servicerequest-category", x))
8584
8590
  );
8585
8591
  ensureConceptText(resource.category);
8586
8592
  }
@@ -8592,9 +8598,8 @@ function ServiceRequest_default(props) {
8592
8598
  if (!Array.isArray(props.orderDetail)) {
8593
8599
  props.orderDetail = [props.orderDetail];
8594
8600
  }
8595
- resource.orderDetail = concept(lookupValue(
8596
- "http://hl7.org/fhir/ValueSet/servicerequest-orderdetail",
8597
- props.orderDetail
8601
+ resource.orderDetail = props.orderDetail.map((x) => concept(
8602
+ lookupValue("http://hl7.org/fhir/ValueSet/servicerequest-orderdetail", x)
8598
8603
  ));
8599
8604
  ensureConceptText(resource.orderDetail);
8600
8605
  }
@@ -8636,10 +8641,10 @@ function ServiceRequest_default(props) {
8636
8641
  if (!Array.isArray(props.locationCode)) {
8637
8642
  props.locationCode = [props.locationCode];
8638
8643
  }
8639
- resource.locationCode = concept(lookupValue(
8644
+ resource.locationCode = props.locationCode.map((x) => concept(lookupValue(
8640
8645
  "http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType",
8641
- props.locationCode
8642
- ));
8646
+ x
8647
+ )));
8643
8648
  ensureConceptText(resource.locationCode);
8644
8649
  }
8645
8650
  if (!import_lodash96.default.isNil(props.locationReference)) {
@@ -8652,8 +8657,8 @@ function ServiceRequest_default(props) {
8652
8657
  if (!Array.isArray(props.reasonCode)) {
8653
8658
  props.reasonCode = [props.reasonCode];
8654
8659
  }
8655
- resource.reasonCode = concept(
8656
- lookupValue("http://hl7.org/fhir/ValueSet/procedure-reason", props.reasonCode)
8660
+ resource.reasonCode = props.reasonCode.map(
8661
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/procedure-reason", x))
8657
8662
  );
8658
8663
  ensureConceptText(resource.reasonCode);
8659
8664
  }
@@ -8685,7 +8690,9 @@ function ServiceRequest_default(props) {
8685
8690
  if (!Array.isArray(props.bodySite)) {
8686
8691
  props.bodySite = [props.bodySite];
8687
8692
  }
8688
- resource.bodySite = concept(lookupValue("http://hl7.org/fhir/ValueSet/body-site", props.bodySite));
8693
+ resource.bodySite = props.bodySite.map(
8694
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/body-site", x))
8695
+ );
8689
8696
  ensureConceptText(resource.bodySite);
8690
8697
  }
8691
8698
  if (!import_lodash96.default.isNil(props.relevantHistory)) {
@@ -8714,8 +8721,8 @@ function Slot_default(props) {
8714
8721
  if (!Array.isArray(props.serviceCategory)) {
8715
8722
  props.serviceCategory = [props.serviceCategory];
8716
8723
  }
8717
- resource.serviceCategory = concept(
8718
- lookupValue("http://hl7.org/fhir/ValueSet/service-category", props.serviceCategory)
8724
+ resource.serviceCategory = props.serviceCategory.map(
8725
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/service-category", x))
8719
8726
  );
8720
8727
  ensureConceptText(resource.serviceCategory);
8721
8728
  }
@@ -8723,8 +8730,8 @@ function Slot_default(props) {
8723
8730
  if (!Array.isArray(props.serviceType)) {
8724
8731
  props.serviceType = [props.serviceType];
8725
8732
  }
8726
- resource.serviceType = concept(
8727
- lookupValue("http://hl7.org/fhir/ValueSet/service-type", props.serviceType)
8733
+ resource.serviceType = props.serviceType.map(
8734
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/service-type", x))
8728
8735
  );
8729
8736
  ensureConceptText(resource.serviceType);
8730
8737
  }
@@ -8732,8 +8739,8 @@ function Slot_default(props) {
8732
8739
  if (!Array.isArray(props.specialty)) {
8733
8740
  props.specialty = [props.specialty];
8734
8741
  }
8735
- resource.specialty = concept(
8736
- lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes", props.specialty)
8742
+ resource.specialty = props.specialty.map(
8743
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/c80-practice-codes", x))
8737
8744
  );
8738
8745
  ensureConceptText(resource.specialty);
8739
8746
  }
@@ -8821,8 +8828,8 @@ function Specimen_default(props) {
8821
8828
  if (!Array.isArray(props.condition)) {
8822
8829
  props.condition = [props.condition];
8823
8830
  }
8824
- resource.condition = concept(
8825
- lookupValue("http://terminology.hl7.org/ValueSet/v2-0493", props.condition)
8831
+ resource.condition = props.condition.map(
8832
+ (x) => concept(lookupValue("http://terminology.hl7.org/ValueSet/v2-0493", x))
8826
8833
  );
8827
8834
  ensureConceptText(resource.condition);
8828
8835
  }
@@ -8849,18 +8856,18 @@ function SpecimenDefinition_default(props) {
8849
8856
  if (!Array.isArray(props.patientPreparation)) {
8850
8857
  props.patientPreparation = [props.patientPreparation];
8851
8858
  }
8852
- resource.patientPreparation = concept(lookupValue(
8859
+ resource.patientPreparation = props.patientPreparation.map((x) => concept(lookupValue(
8853
8860
  "http://hl7.org/fhir/ValueSet/prepare-patient-prior-specimen-collection",
8854
- props.patientPreparation
8855
- ));
8861
+ x
8862
+ )));
8856
8863
  ensureConceptText(resource.patientPreparation);
8857
8864
  }
8858
8865
  if (!import_lodash99.default.isNil(props.collection)) {
8859
8866
  if (!Array.isArray(props.collection)) {
8860
8867
  props.collection = [props.collection];
8861
8868
  }
8862
- resource.collection = concept(
8863
- lookupValue("http://hl7.org/fhir/ValueSet/specimen-collection", props.collection)
8869
+ resource.collection = props.collection.map(
8870
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/specimen-collection", x))
8864
8871
  );
8865
8872
  ensureConceptText(resource.collection);
8866
8873
  }
@@ -8897,8 +8904,8 @@ function Substance_default(props) {
8897
8904
  if (!Array.isArray(props.category)) {
8898
8905
  props.category = [props.category];
8899
8906
  }
8900
- resource.category = concept(
8901
- lookupValue("http://hl7.org/fhir/ValueSet/substance-category", props.category)
8907
+ resource.category = props.category.map(
8908
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/substance-category", x))
8902
8909
  );
8903
8910
  ensureConceptText(resource.category);
8904
8911
  }
@@ -8971,8 +8978,8 @@ function SubstanceDefinition_default(props) {
8971
8978
  if (!Array.isArray(props.grade)) {
8972
8979
  props.grade = [props.grade];
8973
8980
  }
8974
- resource.grade = concept(
8975
- lookupValue("http://hl7.org/fhir/ValueSet/substance-grade", props.grade)
8981
+ resource.grade = props.grade.map(
8982
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/substance-grade", x))
8976
8983
  );
8977
8984
  ensureConceptText(resource.grade);
8978
8985
  }
@@ -9202,8 +9209,8 @@ function SupplyRequest_default(props) {
9202
9209
  if (!Array.isArray(props.reasonCode)) {
9203
9210
  props.reasonCode = [props.reasonCode];
9204
9211
  }
9205
- resource.reasonCode = concept(
9206
- lookupValue("http://hl7.org/fhir/ValueSet/supplyrequest-reason", props.reasonCode)
9212
+ resource.reasonCode = props.reasonCode.map(
9213
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/supplyrequest-reason", x))
9207
9214
  );
9208
9215
  ensureConceptText(resource.reasonCode);
9209
9216
  }
@@ -9278,8 +9285,8 @@ function Task_default(props) {
9278
9285
  if (!Array.isArray(props.performerType)) {
9279
9286
  props.performerType = [props.performerType];
9280
9287
  }
9281
- resource.performerType = concept(
9282
- lookupValue("http://hl7.org/fhir/ValueSet/performer-role", props.performerType)
9288
+ resource.performerType = props.performerType.map(
9289
+ (x) => concept(lookupValue("http://hl7.org/fhir/ValueSet/performer-role", x))
9283
9290
  );
9284
9291
  ensureConceptText(resource.performerType);
9285
9292
  }
@@ -9430,9 +9437,8 @@ function VerificationResult_default(props) {
9430
9437
  if (!Array.isArray(props.validationProcess)) {
9431
9438
  props.validationProcess = [props.validationProcess];
9432
9439
  }
9433
- resource.validationProcess = concept(lookupValue(
9434
- "http://hl7.org/fhir/ValueSet/verificationresult-validation-process",
9435
- props.validationProcess
9440
+ resource.validationProcess = props.validationProcess.map((x) => concept(
9441
+ lookupValue("http://hl7.org/fhir/ValueSet/verificationresult-validation-process", x)
9436
9442
  ));
9437
9443
  ensureConceptText(resource.validationProcess);
9438
9444
  }