@cosyte/synth 0.1.7 → 0.1.9
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/CHANGELOG.md +24 -0
- package/README.md +8 -2
- package/dist/astm/index.cjs +10 -3
- package/dist/astm/index.cjs.map +1 -1
- package/dist/astm/index.mjs +10 -3
- package/dist/astm/index.mjs.map +1 -1
- package/dist/ccda/index.cjs +6 -1
- package/dist/ccda/index.cjs.map +1 -1
- package/dist/ccda/index.mjs +6 -1
- package/dist/ccda/index.mjs.map +1 -1
- package/dist/deid/index.cjs +33 -13
- package/dist/deid/index.cjs.map +1 -1
- package/dist/deid/index.mjs +33 -13
- package/dist/deid/index.mjs.map +1 -1
- package/dist/fhir/index.cjs +31 -13
- package/dist/fhir/index.cjs.map +1 -1
- package/dist/fhir/index.d.cts +8 -5
- package/dist/fhir/index.d.ts +8 -5
- package/dist/fhir/index.mjs +31 -13
- package/dist/fhir/index.mjs.map +1 -1
- package/dist/hl7/index.cjs +9 -2
- package/dist/hl7/index.cjs.map +1 -1
- package/dist/hl7/index.mjs +9 -2
- package/dist/hl7/index.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/ncpdp/index.cjs +6 -1
- package/dist/ncpdp/index.cjs.map +1 -1
- package/dist/ncpdp/index.mjs +6 -1
- package/dist/ncpdp/index.mjs.map +1 -1
- package/dist/x12/index.cjs +6 -1
- package/dist/x12/index.cjs.map +1 -1
- package/dist/x12/index.mjs +6 -1
- package/dist/x12/index.mjs.map +1 -1
- package/package.json +13 -5
package/dist/astm/index.mjs
CHANGED
|
@@ -602,7 +602,12 @@ function isRequireEsmRefusal(error) {
|
|
|
602
602
|
}
|
|
603
603
|
function loadPeer(specifier, host) {
|
|
604
604
|
if (host.resolve === void 0) return host.require(specifier);
|
|
605
|
-
|
|
605
|
+
let entry;
|
|
606
|
+
try {
|
|
607
|
+
entry = fileURLToPath(host.resolve(specifier));
|
|
608
|
+
} catch {
|
|
609
|
+
return host.require(specifier);
|
|
610
|
+
}
|
|
606
611
|
try {
|
|
607
612
|
return host.require(entry);
|
|
608
613
|
} catch (error) {
|
|
@@ -663,8 +668,10 @@ function buildResultInput(options) {
|
|
|
663
668
|
records.push({ type: "C", source: "L", text: rng.pick(ASTM_COMMENT_TEXT), commentType: "G" });
|
|
664
669
|
}
|
|
665
670
|
return {
|
|
666
|
-
// H.3 (message control id) and H.4 (access password) stay empty; H.5 is the sender name.
|
|
667
|
-
|
|
671
|
+
// H.3 (message control id) and H.4 (access password) stay empty; H.5 is the sender name. H.6 to
|
|
672
|
+
// H.11 stay empty, and H.12, the processing ID, is `T` (training), never `P` (production): every
|
|
673
|
+
// message says it is test data in the field the standard gives for it.
|
|
674
|
+
header: { fields: ["", "", head.sender, "", "", "", "", "", "", "T"] },
|
|
668
675
|
records,
|
|
669
676
|
terminationCode: "N"
|
|
670
677
|
};
|