@cosyte/synth 0.0.7 → 0.0.8
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 +135 -17
- package/README.md +47 -45
- package/dist/astm/index.cjs +7 -7
- package/dist/astm/index.cjs.map +1 -1
- package/dist/astm/index.d.cts +47 -47
- package/dist/astm/index.d.ts +47 -47
- package/dist/astm/index.mjs +7 -7
- package/dist/astm/index.mjs.map +1 -1
- package/dist/ccda/index.cjs +15 -15
- package/dist/ccda/index.cjs.map +1 -1
- package/dist/ccda/index.d.cts +31 -31
- package/dist/ccda/index.d.ts +31 -31
- package/dist/ccda/index.mjs +15 -15
- package/dist/ccda/index.mjs.map +1 -1
- package/dist/deid/index.cjs +15 -15
- package/dist/deid/index.cjs.map +1 -1
- package/dist/deid/index.d.cts +37 -37
- package/dist/deid/index.d.ts +37 -37
- package/dist/deid/index.mjs +15 -15
- package/dist/deid/index.mjs.map +1 -1
- package/dist/{example-codes-DeXcnCSK.d.cts → example-codes-88f3_bQZ.d.cts} +8 -8
- package/dist/{example-codes-DeXcnCSK.d.ts → example-codes-88f3_bQZ.d.ts} +8 -8
- package/dist/fhir/index.cjs +12 -12
- package/dist/fhir/index.cjs.map +1 -1
- package/dist/fhir/index.d.cts +46 -46
- package/dist/fhir/index.d.ts +46 -46
- package/dist/fhir/index.mjs +12 -12
- package/dist/fhir/index.mjs.map +1 -1
- package/dist/hl7/index.cjs +6 -6
- package/dist/hl7/index.cjs.map +1 -1
- package/dist/hl7/index.d.cts +45 -45
- package/dist/hl7/index.d.ts +45 -45
- package/dist/hl7/index.mjs +6 -6
- package/dist/hl7/index.mjs.map +1 -1
- package/dist/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -49
- package/dist/index.d.ts +49 -49
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/dist/ncpdp/index.cjs +3 -3
- package/dist/ncpdp/index.cjs.map +1 -1
- package/dist/ncpdp/index.d.cts +42 -42
- package/dist/ncpdp/index.d.ts +42 -42
- package/dist/ncpdp/index.mjs +3 -3
- package/dist/ncpdp/index.mjs.map +1 -1
- package/dist/{providers-OLz3zAc-.d.cts → providers-B9uVinAe.d.cts} +24 -24
- package/dist/{providers-OLz3zAc-.d.ts → providers-B9uVinAe.d.ts} +24 -24
- package/dist/{quirk-C9t9CkPS.d.ts → quirk-HZdznAkM.d.ts} +23 -23
- package/dist/{quirk-DYMDojVw.d.cts → quirk-IaHp4z7N.d.cts} +23 -23
- package/dist/x12/index.cjs +6 -6
- package/dist/x12/index.cjs.map +1 -1
- package/dist/x12/index.d.cts +44 -44
- package/dist/x12/index.d.ts +44 -44
- package/dist/x12/index.mjs +6 -6
- package/dist/x12/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/ccda/index.cjs
CHANGED
|
@@ -34,32 +34,32 @@ function sfc32Next(s) {
|
|
|
34
34
|
// src/codes.ts
|
|
35
35
|
var SYNTH_FATAL_CODES = {
|
|
36
36
|
/**
|
|
37
|
-
* A vendor quirk was requested that the target format's profile system does not support. Fatal
|
|
37
|
+
* A vendor quirk was requested that the target format's profile system does not support. Fatal,
|
|
38
38
|
* never a silent no-op and never a fabricated quirk.
|
|
39
39
|
*/
|
|
40
40
|
SYNTH_UNSUPPORTED_QUIRK: "SYNTH_UNSUPPORTED_QUIRK",
|
|
41
41
|
/**
|
|
42
42
|
* A quirk transform found no structural anchor to mutate, so the fixture would not carry the
|
|
43
|
-
* deviation it is labelled with. Fatal
|
|
43
|
+
* deviation it is labelled with. Fatal: a golden file that lies about its parser verdict is worse
|
|
44
44
|
* than no golden file.
|
|
45
45
|
*/
|
|
46
46
|
SYNTH_QUIRK_ANCHOR_ABSENT: "SYNTH_QUIRK_ANCHOR_ABSENT",
|
|
47
47
|
/**
|
|
48
48
|
* A bare parse of a freshly-generated quirk artifact did not produce exactly the declared intended
|
|
49
|
-
* warning code(s). Fatal
|
|
49
|
+
* warning code(s). Fatal, never emit a mislabeled fixture.
|
|
50
50
|
*/
|
|
51
51
|
SYNTH_INTENDED_WARNING_MISMATCH: "SYNTH_INTENDED_WARNING_MISMATCH",
|
|
52
52
|
/** A concept's code-system URI has no OID mapping in the C-CDA example-code table. Fatal. */
|
|
53
53
|
SYNTH_UNMAPPED_CODE_SYSTEM: "SYNTH_UNMAPPED_CODE_SYSTEM",
|
|
54
54
|
/** An integer range was requested with its maximum below its minimum. Fatal. */
|
|
55
55
|
SYNTH_INVALID_RANGE: "SYNTH_INVALID_RANGE",
|
|
56
|
-
/** A value was drawn from an empty pool. Fatal
|
|
56
|
+
/** A value was drawn from an empty pool. Fatal, never a fabricated substitute. */
|
|
57
57
|
SYNTH_EMPTY_POOL: "SYNTH_EMPTY_POOL",
|
|
58
58
|
/** A `defineSynthProfile` spec was not usable (a missing or blank `name`). Fatal. */
|
|
59
59
|
SYNTH_INVALID_PROFILE: "SYNTH_INVALID_PROFILE",
|
|
60
60
|
/**
|
|
61
61
|
* A caller-supplied selector (a message kind, a document type, a corpus mix entry, a claim
|
|
62
|
-
* variant, a Bundle type, a resource profile) is not in the closed set that governs it. Fatal
|
|
62
|
+
* variant, a Bundle type, a resource profile) is not in the closed set that governs it. Fatal:
|
|
63
63
|
* see `resolveKind`: a selector union is erased at run time, and a selector that falls through
|
|
64
64
|
* either mislabels the fixture or hands the value to a peer builder that quotes it back.
|
|
65
65
|
*/
|
|
@@ -153,7 +153,7 @@ function makeCorpus(seed, artifacts, quirks = []) {
|
|
|
153
153
|
var SYNTHETIC_ASSIGNING_AUTHORITY = Object.freeze({
|
|
154
154
|
/** The human-readable assigning-authority namespace id (HL7 HD.1). */
|
|
155
155
|
namespaceId: "COSYTE-SYNTH",
|
|
156
|
-
/** The universal id
|
|
156
|
+
/** The universal id, an OID under HL7's example arc `2.16.840.1.113883.19` (HD.2). */
|
|
157
157
|
universalId: "2.16.840.1.113883.19.999",
|
|
158
158
|
/** The universal id type (HD.3). */
|
|
159
159
|
universalIdType: "ISO"
|
|
@@ -435,23 +435,23 @@ var SYSTEM = Object.freeze({
|
|
|
435
435
|
IDENTIFIER_TYPE: "http://terminology.hl7.org/CodeSystem/v2-0203",
|
|
436
436
|
/** OMB race & ethnicity category system (US Core race/ethnicity `ombCategory`). */
|
|
437
437
|
OMB_RACE_ETHNICITY: "urn:oid:2.16.840.1.113883.6.238",
|
|
438
|
-
/** LOINC
|
|
438
|
+
/** LOINC, `Observation.code` (lab + vital-signs). */
|
|
439
439
|
LOINC: "http://loinc.org",
|
|
440
|
-
/** SNOMED CT
|
|
440
|
+
/** SNOMED CT, `Condition.code`. */
|
|
441
441
|
SNOMED: "http://snomed.info/sct",
|
|
442
|
-
/** RxNorm
|
|
442
|
+
/** RxNorm, `MedicationRequest.medicationCodeableConcept` + an allergen substance. */
|
|
443
443
|
RXNORM: "http://www.nlm.nih.gov/research/umls/rxnorm",
|
|
444
|
-
/** UCUM
|
|
444
|
+
/** UCUM, `Quantity.system` for units of measure. */
|
|
445
445
|
UCUM: "http://unitsofmeasure.org",
|
|
446
|
-
/** CVX (CDC vaccine administered)
|
|
446
|
+
/** CVX (CDC vaccine administered), `Immunization.vaccineCode`. */
|
|
447
447
|
CVX: "http://hl7.org/fhir/sid/cvx",
|
|
448
|
-
/** HL7 v3 `ActCode
|
|
448
|
+
/** HL7 v3 `ActCode`, `Encounter.class`. */
|
|
449
449
|
V3_ACT_CODE: "http://terminology.hl7.org/CodeSystem/v3-ActCode",
|
|
450
|
-
/** HL7 v2 `0074` diagnostic-service-section
|
|
450
|
+
/** HL7 v2 `0074` diagnostic-service-section, `DiagnosticReport.category` (`LAB`). */
|
|
451
451
|
DIAGNOSTIC_SERVICE_SECTION: "http://terminology.hl7.org/CodeSystem/v2-0074",
|
|
452
|
-
/** HL7 Terminology `allergyintolerance-clinical
|
|
452
|
+
/** HL7 Terminology `allergyintolerance-clinical`, `AllergyIntolerance.clinicalStatus`. */
|
|
453
453
|
ALLERGY_CLINICAL: "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
|
|
454
|
-
/** HL7 Terminology `allergyintolerance-verification
|
|
454
|
+
/** HL7 Terminology `allergyintolerance-verification`, `AllergyIntolerance.verificationStatus`. */
|
|
455
455
|
ALLERGY_VERIFICATION: "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification"
|
|
456
456
|
});
|
|
457
457
|
|