@openfn/language-fhir-eswatini 0.7.3 → 0.7.5
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 +120 -0
- package/dist/index.js +120 -0
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -309,6 +309,12 @@ function SzAppointment_default(props) {
|
|
|
309
309
|
resource.participant.push(_participant);
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
+
resource.text = {
|
|
313
|
+
status: "generated",
|
|
314
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
315
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
316
|
+
</div>`
|
|
317
|
+
};
|
|
312
318
|
return resource;
|
|
313
319
|
}
|
|
314
320
|
|
|
@@ -419,6 +425,12 @@ function SzCondition_default(props) {
|
|
|
419
425
|
resource.evidence.push(_evidence);
|
|
420
426
|
}
|
|
421
427
|
}
|
|
428
|
+
resource.text = {
|
|
429
|
+
status: "generated",
|
|
430
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
431
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
432
|
+
</div>`
|
|
433
|
+
};
|
|
422
434
|
return resource;
|
|
423
435
|
}
|
|
424
436
|
|
|
@@ -594,6 +606,12 @@ function SzEncounter_default(props) {
|
|
|
594
606
|
if (!import_lodash3.default.isNil(props.partOf)) {
|
|
595
607
|
resource.partOf = import_language_fhir_44.b.reference(props.partOf);
|
|
596
608
|
}
|
|
609
|
+
resource.text = {
|
|
610
|
+
status: "generated",
|
|
611
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
612
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
613
|
+
</div>`
|
|
614
|
+
};
|
|
597
615
|
return resource;
|
|
598
616
|
}
|
|
599
617
|
|
|
@@ -678,6 +696,12 @@ function SzEpisodeOfCare_default(props) {
|
|
|
678
696
|
}
|
|
679
697
|
resource.account = import_language_fhir_45.b.reference(props.account);
|
|
680
698
|
}
|
|
699
|
+
resource.text = {
|
|
700
|
+
status: "generated",
|
|
701
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
702
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
703
|
+
</div>`
|
|
704
|
+
};
|
|
681
705
|
return resource;
|
|
682
706
|
}
|
|
683
707
|
|
|
@@ -754,6 +778,12 @@ function SzLocation_default(props) {
|
|
|
754
778
|
}
|
|
755
779
|
resource.endpoint = import_language_fhir_46.b.reference(props.endpoint);
|
|
756
780
|
}
|
|
781
|
+
resource.text = {
|
|
782
|
+
status: "generated",
|
|
783
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
784
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
785
|
+
</div>`
|
|
786
|
+
};
|
|
757
787
|
return resource;
|
|
758
788
|
}
|
|
759
789
|
|
|
@@ -810,6 +840,12 @@ function SzMedication_default(props) {
|
|
|
810
840
|
};
|
|
811
841
|
resource.batch = _batch;
|
|
812
842
|
}
|
|
843
|
+
resource.text = {
|
|
844
|
+
status: "generated",
|
|
845
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
846
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
847
|
+
</div>`
|
|
848
|
+
};
|
|
813
849
|
return resource;
|
|
814
850
|
}
|
|
815
851
|
|
|
@@ -921,6 +957,12 @@ function SzMedicationDispense_default(props) {
|
|
|
921
957
|
}
|
|
922
958
|
resource.eventHistory = import_language_fhir_48.b.reference(props.eventHistory);
|
|
923
959
|
}
|
|
960
|
+
resource.text = {
|
|
961
|
+
status: "generated",
|
|
962
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
963
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
964
|
+
</div>`
|
|
965
|
+
};
|
|
924
966
|
return resource;
|
|
925
967
|
}
|
|
926
968
|
|
|
@@ -1073,6 +1115,12 @@ function SzMedicationRequest_default(props) {
|
|
|
1073
1115
|
}
|
|
1074
1116
|
resource.eventHistory = import_language_fhir_49.b.reference(props.eventHistory);
|
|
1075
1117
|
}
|
|
1118
|
+
resource.text = {
|
|
1119
|
+
status: "generated",
|
|
1120
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
1121
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
1122
|
+
</div>`
|
|
1123
|
+
};
|
|
1076
1124
|
return resource;
|
|
1077
1125
|
}
|
|
1078
1126
|
|
|
@@ -1220,6 +1268,12 @@ function SzCauseOfDeath_default(props) {
|
|
|
1220
1268
|
resource.component.push(_component);
|
|
1221
1269
|
}
|
|
1222
1270
|
}
|
|
1271
|
+
resource.text = {
|
|
1272
|
+
status: "generated",
|
|
1273
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
1274
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
1275
|
+
</div>`
|
|
1276
|
+
};
|
|
1223
1277
|
return resource;
|
|
1224
1278
|
}
|
|
1225
1279
|
|
|
@@ -1367,6 +1421,12 @@ function SzClinicalObservation_default(props) {
|
|
|
1367
1421
|
resource.component.push(_component);
|
|
1368
1422
|
}
|
|
1369
1423
|
}
|
|
1424
|
+
resource.text = {
|
|
1425
|
+
status: "generated",
|
|
1426
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
1427
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
1428
|
+
</div>`
|
|
1429
|
+
};
|
|
1370
1430
|
return resource;
|
|
1371
1431
|
}
|
|
1372
1432
|
|
|
@@ -1533,6 +1593,12 @@ function SzLabResult_default(props) {
|
|
|
1533
1593
|
resource.component.push(_component);
|
|
1534
1594
|
}
|
|
1535
1595
|
}
|
|
1596
|
+
resource.text = {
|
|
1597
|
+
status: "generated",
|
|
1598
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
1599
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
1600
|
+
</div>`
|
|
1601
|
+
};
|
|
1536
1602
|
return resource;
|
|
1537
1603
|
}
|
|
1538
1604
|
|
|
@@ -1682,6 +1748,12 @@ function SzMannerOfDeath_default(props) {
|
|
|
1682
1748
|
resource.component.push(_component);
|
|
1683
1749
|
}
|
|
1684
1750
|
}
|
|
1751
|
+
resource.text = {
|
|
1752
|
+
status: "generated",
|
|
1753
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
1754
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
1755
|
+
</div>`
|
|
1756
|
+
};
|
|
1685
1757
|
return resource;
|
|
1686
1758
|
}
|
|
1687
1759
|
|
|
@@ -1831,6 +1903,12 @@ function SzVitalSigns_default(props) {
|
|
|
1831
1903
|
resource.component.push(_component);
|
|
1832
1904
|
}
|
|
1833
1905
|
}
|
|
1906
|
+
resource.text = {
|
|
1907
|
+
status: "generated",
|
|
1908
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
1909
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
1910
|
+
</div>`
|
|
1911
|
+
};
|
|
1834
1912
|
return resource;
|
|
1835
1913
|
}
|
|
1836
1914
|
|
|
@@ -1882,6 +1960,12 @@ function SzOrganization_default(props) {
|
|
|
1882
1960
|
}
|
|
1883
1961
|
resource.endpoint = import_language_fhir_415.b.reference(props.endpoint);
|
|
1884
1962
|
}
|
|
1963
|
+
resource.text = {
|
|
1964
|
+
status: "generated",
|
|
1965
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
1966
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
1967
|
+
</div>`
|
|
1968
|
+
};
|
|
1885
1969
|
return resource;
|
|
1886
1970
|
}
|
|
1887
1971
|
|
|
@@ -2045,6 +2129,12 @@ function SzPatient_default(props) {
|
|
|
2045
2129
|
resource.link.push(_link);
|
|
2046
2130
|
}
|
|
2047
2131
|
}
|
|
2132
|
+
resource.text = {
|
|
2133
|
+
status: "generated",
|
|
2134
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
2135
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
2136
|
+
</div>`
|
|
2137
|
+
};
|
|
2048
2138
|
return resource;
|
|
2049
2139
|
}
|
|
2050
2140
|
|
|
@@ -2100,6 +2190,12 @@ function SzPractitioner_default(props) {
|
|
|
2100
2190
|
);
|
|
2101
2191
|
import_language_fhir_417.b.ensureConceptText(resource.communication);
|
|
2102
2192
|
}
|
|
2193
|
+
resource.text = {
|
|
2194
|
+
status: "generated",
|
|
2195
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
2196
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
2197
|
+
</div>`
|
|
2198
|
+
};
|
|
2103
2199
|
return resource;
|
|
2104
2200
|
}
|
|
2105
2201
|
|
|
@@ -2271,6 +2367,12 @@ function SzProcedure_default(props) {
|
|
|
2271
2367
|
);
|
|
2272
2368
|
import_language_fhir_418.b.ensureConceptText(resource.usedCode);
|
|
2273
2369
|
}
|
|
2370
|
+
resource.text = {
|
|
2371
|
+
status: "generated",
|
|
2372
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
2373
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
2374
|
+
</div>`
|
|
2375
|
+
};
|
|
2274
2376
|
return resource;
|
|
2275
2377
|
}
|
|
2276
2378
|
|
|
@@ -2431,6 +2533,12 @@ function SzLabRequest_default(props) {
|
|
|
2431
2533
|
}
|
|
2432
2534
|
resource.relevantHistory = import_language_fhir_419.b.reference(props.relevantHistory);
|
|
2433
2535
|
}
|
|
2536
|
+
resource.text = {
|
|
2537
|
+
status: "generated",
|
|
2538
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
2539
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
2540
|
+
</div>`
|
|
2541
|
+
};
|
|
2434
2542
|
return resource;
|
|
2435
2543
|
}
|
|
2436
2544
|
|
|
@@ -2598,6 +2706,12 @@ function SzReferral_default(props) {
|
|
|
2598
2706
|
}
|
|
2599
2707
|
resource.relevantHistory = import_language_fhir_420.b.reference(props.relevantHistory);
|
|
2600
2708
|
}
|
|
2709
|
+
resource.text = {
|
|
2710
|
+
status: "generated",
|
|
2711
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
2712
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
2713
|
+
</div>`
|
|
2714
|
+
};
|
|
2601
2715
|
return resource;
|
|
2602
2716
|
}
|
|
2603
2717
|
|
|
@@ -2684,6 +2798,12 @@ function SzLabSpecimen_default(props) {
|
|
|
2684
2798
|
);
|
|
2685
2799
|
import_language_fhir_421.b.ensureConceptText(resource.condition);
|
|
2686
2800
|
}
|
|
2801
|
+
resource.text = {
|
|
2802
|
+
status: "generated",
|
|
2803
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
2804
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
2805
|
+
</div>`
|
|
2806
|
+
};
|
|
2687
2807
|
return resource;
|
|
2688
2808
|
}
|
|
2689
2809
|
|
package/dist/index.js
CHANGED
|
@@ -259,6 +259,12 @@ function SzAppointment_default(props) {
|
|
|
259
259
|
resource.participant.push(_participant);
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
+
resource.text = {
|
|
263
|
+
status: "generated",
|
|
264
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
265
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
266
|
+
</div>`
|
|
267
|
+
};
|
|
262
268
|
return resource;
|
|
263
269
|
}
|
|
264
270
|
|
|
@@ -369,6 +375,12 @@ function SzCondition_default(props) {
|
|
|
369
375
|
resource.evidence.push(_evidence);
|
|
370
376
|
}
|
|
371
377
|
}
|
|
378
|
+
resource.text = {
|
|
379
|
+
status: "generated",
|
|
380
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
381
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
382
|
+
</div>`
|
|
383
|
+
};
|
|
372
384
|
return resource;
|
|
373
385
|
}
|
|
374
386
|
|
|
@@ -544,6 +556,12 @@ function SzEncounter_default(props) {
|
|
|
544
556
|
if (!_3.isNil(props.partOf)) {
|
|
545
557
|
resource.partOf = dt3.reference(props.partOf);
|
|
546
558
|
}
|
|
559
|
+
resource.text = {
|
|
560
|
+
status: "generated",
|
|
561
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
562
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
563
|
+
</div>`
|
|
564
|
+
};
|
|
547
565
|
return resource;
|
|
548
566
|
}
|
|
549
567
|
|
|
@@ -628,6 +646,12 @@ function SzEpisodeOfCare_default(props) {
|
|
|
628
646
|
}
|
|
629
647
|
resource.account = dt4.reference(props.account);
|
|
630
648
|
}
|
|
649
|
+
resource.text = {
|
|
650
|
+
status: "generated",
|
|
651
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
652
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
653
|
+
</div>`
|
|
654
|
+
};
|
|
631
655
|
return resource;
|
|
632
656
|
}
|
|
633
657
|
|
|
@@ -704,6 +728,12 @@ function SzLocation_default(props) {
|
|
|
704
728
|
}
|
|
705
729
|
resource.endpoint = dt5.reference(props.endpoint);
|
|
706
730
|
}
|
|
731
|
+
resource.text = {
|
|
732
|
+
status: "generated",
|
|
733
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
734
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
735
|
+
</div>`
|
|
736
|
+
};
|
|
707
737
|
return resource;
|
|
708
738
|
}
|
|
709
739
|
|
|
@@ -760,6 +790,12 @@ function SzMedication_default(props) {
|
|
|
760
790
|
};
|
|
761
791
|
resource.batch = _batch;
|
|
762
792
|
}
|
|
793
|
+
resource.text = {
|
|
794
|
+
status: "generated",
|
|
795
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
796
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
797
|
+
</div>`
|
|
798
|
+
};
|
|
763
799
|
return resource;
|
|
764
800
|
}
|
|
765
801
|
|
|
@@ -871,6 +907,12 @@ function SzMedicationDispense_default(props) {
|
|
|
871
907
|
}
|
|
872
908
|
resource.eventHistory = dt7.reference(props.eventHistory);
|
|
873
909
|
}
|
|
910
|
+
resource.text = {
|
|
911
|
+
status: "generated",
|
|
912
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
913
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
914
|
+
</div>`
|
|
915
|
+
};
|
|
874
916
|
return resource;
|
|
875
917
|
}
|
|
876
918
|
|
|
@@ -1023,6 +1065,12 @@ function SzMedicationRequest_default(props) {
|
|
|
1023
1065
|
}
|
|
1024
1066
|
resource.eventHistory = dt8.reference(props.eventHistory);
|
|
1025
1067
|
}
|
|
1068
|
+
resource.text = {
|
|
1069
|
+
status: "generated",
|
|
1070
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
1071
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
1072
|
+
</div>`
|
|
1073
|
+
};
|
|
1026
1074
|
return resource;
|
|
1027
1075
|
}
|
|
1028
1076
|
|
|
@@ -1170,6 +1218,12 @@ function SzCauseOfDeath_default(props) {
|
|
|
1170
1218
|
resource.component.push(_component);
|
|
1171
1219
|
}
|
|
1172
1220
|
}
|
|
1221
|
+
resource.text = {
|
|
1222
|
+
status: "generated",
|
|
1223
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
1224
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
1225
|
+
</div>`
|
|
1226
|
+
};
|
|
1173
1227
|
return resource;
|
|
1174
1228
|
}
|
|
1175
1229
|
|
|
@@ -1317,6 +1371,12 @@ function SzClinicalObservation_default(props) {
|
|
|
1317
1371
|
resource.component.push(_component);
|
|
1318
1372
|
}
|
|
1319
1373
|
}
|
|
1374
|
+
resource.text = {
|
|
1375
|
+
status: "generated",
|
|
1376
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
1377
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
1378
|
+
</div>`
|
|
1379
|
+
};
|
|
1320
1380
|
return resource;
|
|
1321
1381
|
}
|
|
1322
1382
|
|
|
@@ -1483,6 +1543,12 @@ function SzLabResult_default(props) {
|
|
|
1483
1543
|
resource.component.push(_component);
|
|
1484
1544
|
}
|
|
1485
1545
|
}
|
|
1546
|
+
resource.text = {
|
|
1547
|
+
status: "generated",
|
|
1548
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
1549
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
1550
|
+
</div>`
|
|
1551
|
+
};
|
|
1486
1552
|
return resource;
|
|
1487
1553
|
}
|
|
1488
1554
|
|
|
@@ -1632,6 +1698,12 @@ function SzMannerOfDeath_default(props) {
|
|
|
1632
1698
|
resource.component.push(_component);
|
|
1633
1699
|
}
|
|
1634
1700
|
}
|
|
1701
|
+
resource.text = {
|
|
1702
|
+
status: "generated",
|
|
1703
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
1704
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
1705
|
+
</div>`
|
|
1706
|
+
};
|
|
1635
1707
|
return resource;
|
|
1636
1708
|
}
|
|
1637
1709
|
|
|
@@ -1781,6 +1853,12 @@ function SzVitalSigns_default(props) {
|
|
|
1781
1853
|
resource.component.push(_component);
|
|
1782
1854
|
}
|
|
1783
1855
|
}
|
|
1856
|
+
resource.text = {
|
|
1857
|
+
status: "generated",
|
|
1858
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
1859
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
1860
|
+
</div>`
|
|
1861
|
+
};
|
|
1784
1862
|
return resource;
|
|
1785
1863
|
}
|
|
1786
1864
|
|
|
@@ -1832,6 +1910,12 @@ function SzOrganization_default(props) {
|
|
|
1832
1910
|
}
|
|
1833
1911
|
resource.endpoint = dt14.reference(props.endpoint);
|
|
1834
1912
|
}
|
|
1913
|
+
resource.text = {
|
|
1914
|
+
status: "generated",
|
|
1915
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
1916
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
1917
|
+
</div>`
|
|
1918
|
+
};
|
|
1835
1919
|
return resource;
|
|
1836
1920
|
}
|
|
1837
1921
|
|
|
@@ -1995,6 +2079,12 @@ function SzPatient_default(props) {
|
|
|
1995
2079
|
resource.link.push(_link);
|
|
1996
2080
|
}
|
|
1997
2081
|
}
|
|
2082
|
+
resource.text = {
|
|
2083
|
+
status: "generated",
|
|
2084
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
2085
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
2086
|
+
</div>`
|
|
2087
|
+
};
|
|
1998
2088
|
return resource;
|
|
1999
2089
|
}
|
|
2000
2090
|
|
|
@@ -2050,6 +2140,12 @@ function SzPractitioner_default(props) {
|
|
|
2050
2140
|
);
|
|
2051
2141
|
dt16.ensureConceptText(resource.communication);
|
|
2052
2142
|
}
|
|
2143
|
+
resource.text = {
|
|
2144
|
+
status: "generated",
|
|
2145
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
2146
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
2147
|
+
</div>`
|
|
2148
|
+
};
|
|
2053
2149
|
return resource;
|
|
2054
2150
|
}
|
|
2055
2151
|
|
|
@@ -2221,6 +2317,12 @@ function SzProcedure_default(props) {
|
|
|
2221
2317
|
);
|
|
2222
2318
|
dt17.ensureConceptText(resource.usedCode);
|
|
2223
2319
|
}
|
|
2320
|
+
resource.text = {
|
|
2321
|
+
status: "generated",
|
|
2322
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
2323
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
2324
|
+
</div>`
|
|
2325
|
+
};
|
|
2224
2326
|
return resource;
|
|
2225
2327
|
}
|
|
2226
2328
|
|
|
@@ -2381,6 +2483,12 @@ function SzLabRequest_default(props) {
|
|
|
2381
2483
|
}
|
|
2382
2484
|
resource.relevantHistory = dt18.reference(props.relevantHistory);
|
|
2383
2485
|
}
|
|
2486
|
+
resource.text = {
|
|
2487
|
+
status: "generated",
|
|
2488
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
2489
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
2490
|
+
</div>`
|
|
2491
|
+
};
|
|
2384
2492
|
return resource;
|
|
2385
2493
|
}
|
|
2386
2494
|
|
|
@@ -2548,6 +2656,12 @@ function SzReferral_default(props) {
|
|
|
2548
2656
|
}
|
|
2549
2657
|
resource.relevantHistory = dt19.reference(props.relevantHistory);
|
|
2550
2658
|
}
|
|
2659
|
+
resource.text = {
|
|
2660
|
+
status: "generated",
|
|
2661
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
2662
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
2663
|
+
</div>`
|
|
2664
|
+
};
|
|
2551
2665
|
return resource;
|
|
2552
2666
|
}
|
|
2553
2667
|
|
|
@@ -2634,6 +2748,12 @@ function SzLabSpecimen_default(props) {
|
|
|
2634
2748
|
);
|
|
2635
2749
|
dt20.ensureConceptText(resource.condition);
|
|
2636
2750
|
}
|
|
2751
|
+
resource.text = {
|
|
2752
|
+
status: "generated",
|
|
2753
|
+
div: `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
2754
|
+
<h2>${resource.resourceType}: ${resource.id || "(anon)"}</h2>
|
|
2755
|
+
</div>`
|
|
2756
|
+
};
|
|
2637
2757
|
return resource;
|
|
2638
2758
|
}
|
|
2639
2759
|
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-fhir-eswatini",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5",
|
|
4
4
|
"description": "OpenFn fhir-eswatini adaptor",
|
|
5
5
|
"author": "Open Function Group",
|
|
6
6
|
"license": "LGPLv3",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"fhir": {
|
|
9
9
|
"specUrl": "http://172.209.216.154/definitions.json.zip",
|
|
10
|
-
"adaptorGeneratedDate": "2026-03-
|
|
10
|
+
"adaptorGeneratedDate": "2026-03-30T13:45:30.759Z",
|
|
11
11
|
"generatorVersion": "0.7.7",
|
|
12
12
|
"options": {}
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@openfn/language-
|
|
16
|
-
"@openfn/language-
|
|
15
|
+
"@openfn/language-fhir-4": "0.5.1",
|
|
16
|
+
"@openfn/language-common": "3.3.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"assertion-error": "2.0.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"rimraf": "3.0.2",
|
|
24
24
|
"ts-node": "^10.9.1",
|
|
25
25
|
"typescript": "4.8.4",
|
|
26
|
-
"undici": "^7.
|
|
26
|
+
"undici": "^7.24.7"
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"build": "pnpm clean && build-adaptor fhir-eswatini src ast docs",
|
|
50
50
|
"build:src": "pnpm generate-fhir fhir-eswatini --base fhir-4",
|
|
51
51
|
"build:spec": "pnpm generate-fhir fhir-eswatini --respec",
|
|
52
|
-
"test": "TS_NODE_TRANSPILE_ONLY=true mocha --experimental-specifier-resolution=node --no-warnings --loader=ts-node/esm **/*.test.ts",
|
|
52
|
+
"test": "TS_NODE_TRANSPILE_ONLY=true mocha --experimental-specifier-resolution=node --no-warnings --loader=ts-node/esm \"**/*.test.ts\"",
|
|
53
53
|
"clean": "rimraf dist docs",
|
|
54
54
|
"pack": "pnpm pack --pack-destination ../../dist"
|
|
55
55
|
}
|