@cosyte/synth 0.0.6 → 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 +165 -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/deid/index.cjs
CHANGED
|
@@ -47,15 +47,15 @@ function sfc32Next(s) {
|
|
|
47
47
|
var SYNTH_FATAL_CODES = {
|
|
48
48
|
/** A concept's code-system URI has no OID mapping in the C-CDA example-code table. Fatal. */
|
|
49
49
|
SYNTH_UNMAPPED_CODE_SYSTEM: "SYNTH_UNMAPPED_CODE_SYSTEM",
|
|
50
|
-
/** A money value could not be read as an X12 decimal. Fatal
|
|
50
|
+
/** A money value could not be read as an X12 decimal. Fatal: a generator never rounds to a float. */
|
|
51
51
|
SYNTH_INVALID_DECIMAL: "SYNTH_INVALID_DECIMAL",
|
|
52
52
|
/** An integer range was requested with its maximum below its minimum. Fatal. */
|
|
53
53
|
SYNTH_INVALID_RANGE: "SYNTH_INVALID_RANGE",
|
|
54
|
-
/** A value was drawn from an empty pool. Fatal
|
|
54
|
+
/** A value was drawn from an empty pool. Fatal, never a fabricated substitute. */
|
|
55
55
|
SYNTH_EMPTY_POOL: "SYNTH_EMPTY_POOL",
|
|
56
56
|
/**
|
|
57
57
|
* A caller-supplied selector (a message kind, a document type, a corpus mix entry, a claim
|
|
58
|
-
* variant, a Bundle type, a resource profile) is not in the closed set that governs it. Fatal
|
|
58
|
+
* variant, a Bundle type, a resource profile) is not in the closed set that governs it. Fatal:
|
|
59
59
|
* see `resolveKind`: a selector union is erased at run time, and a selector that falls through
|
|
60
60
|
* either mislabels the fixture or hands the value to a peer builder that quotes it back.
|
|
61
61
|
*/
|
|
@@ -136,7 +136,7 @@ function componentsField(components) {
|
|
|
136
136
|
var SYNTHETIC_ASSIGNING_AUTHORITY = Object.freeze({
|
|
137
137
|
/** The human-readable assigning-authority namespace id (HL7 HD.1). */
|
|
138
138
|
namespaceId: "COSYTE-SYNTH",
|
|
139
|
-
/** The universal id
|
|
139
|
+
/** The universal id, an OID under HL7's example arc `2.16.840.1.113883.19` (HD.2). */
|
|
140
140
|
universalId: "2.16.840.1.113883.19.999",
|
|
141
141
|
/** The universal id type (HD.3). */
|
|
142
142
|
universalIdType: "ISO"
|
|
@@ -834,23 +834,23 @@ var SYSTEM = Object.freeze({
|
|
|
834
834
|
IDENTIFIER_TYPE: "http://terminology.hl7.org/CodeSystem/v2-0203",
|
|
835
835
|
/** OMB race & ethnicity category system (US Core race/ethnicity `ombCategory`). */
|
|
836
836
|
OMB_RACE_ETHNICITY: "urn:oid:2.16.840.1.113883.6.238",
|
|
837
|
-
/** LOINC
|
|
837
|
+
/** LOINC, `Observation.code` (lab + vital-signs). */
|
|
838
838
|
LOINC: "http://loinc.org",
|
|
839
|
-
/** SNOMED CT
|
|
839
|
+
/** SNOMED CT, `Condition.code`. */
|
|
840
840
|
SNOMED: "http://snomed.info/sct",
|
|
841
|
-
/** RxNorm
|
|
841
|
+
/** RxNorm, `MedicationRequest.medicationCodeableConcept` + an allergen substance. */
|
|
842
842
|
RXNORM: "http://www.nlm.nih.gov/research/umls/rxnorm",
|
|
843
|
-
/** UCUM
|
|
843
|
+
/** UCUM, `Quantity.system` for units of measure. */
|
|
844
844
|
UCUM: "http://unitsofmeasure.org",
|
|
845
|
-
/** CVX (CDC vaccine administered)
|
|
845
|
+
/** CVX (CDC vaccine administered), `Immunization.vaccineCode`. */
|
|
846
846
|
CVX: "http://hl7.org/fhir/sid/cvx",
|
|
847
|
-
/** HL7 v3 `ActCode
|
|
847
|
+
/** HL7 v3 `ActCode`, `Encounter.class`. */
|
|
848
848
|
V3_ACT_CODE: "http://terminology.hl7.org/CodeSystem/v3-ActCode",
|
|
849
|
-
/** HL7 v2 `0074` diagnostic-service-section
|
|
849
|
+
/** HL7 v2 `0074` diagnostic-service-section, `DiagnosticReport.category` (`LAB`). */
|
|
850
850
|
DIAGNOSTIC_SERVICE_SECTION: "http://terminology.hl7.org/CodeSystem/v2-0074",
|
|
851
|
-
/** HL7 Terminology `allergyintolerance-clinical
|
|
851
|
+
/** HL7 Terminology `allergyintolerance-clinical`, `AllergyIntolerance.clinicalStatus`. */
|
|
852
852
|
ALLERGY_CLINICAL: "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
|
|
853
|
-
/** HL7 Terminology `allergyintolerance-verification
|
|
853
|
+
/** HL7 Terminology `allergyintolerance-verification`, `AllergyIntolerance.verificationStatus`. */
|
|
854
854
|
ALLERGY_VERIFICATION: "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification"
|
|
855
855
|
});
|
|
856
856
|
|
|
@@ -1989,7 +1989,7 @@ function specOf(rng, variant) {
|
|
|
1989
1989
|
claims: [
|
|
1990
1990
|
{
|
|
1991
1991
|
...claim,
|
|
1992
|
-
// Rendering provider (Loop 2310B, NM1 fields round-trip)
|
|
1992
|
+
// Rendering provider (Loop 2310B, NM1 fields round-trip), a person with an invalid-Luhn NPI.
|
|
1993
1993
|
providers: [
|
|
1994
1994
|
{
|
|
1995
1995
|
entityIdentifierCode: "82",
|
|
@@ -2016,7 +2016,7 @@ function specOf(rng, variant) {
|
|
|
2016
2016
|
state: org.address.state,
|
|
2017
2017
|
postalCode: org.address.zip
|
|
2018
2018
|
},
|
|
2019
|
-
// Provider tax id as a never-issued (900-range) SSN at REF*SY
|
|
2019
|
+
// Provider tax id as a never-issued (900-range) SSN at REF*SY, provably synthetic (roadmap §4.1).
|
|
2020
2020
|
references: [{ qualifier: "SY", value: org.taxIdSsn }]
|
|
2021
2021
|
},
|
|
2022
2022
|
subscribers: [subscriber]
|