@cosyte/fhir 0.1.0 → 0.1.1
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 +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +27 -36
package/dist/index.cjs
CHANGED
|
@@ -7550,7 +7550,7 @@ async function* streamNdjson(source, options = {}) {
|
|
|
7550
7550
|
}
|
|
7551
7551
|
|
|
7552
7552
|
// src/index.ts
|
|
7553
|
-
var VERSION = "0.1.
|
|
7553
|
+
var VERSION = "0.1.1";
|
|
7554
7554
|
|
|
7555
7555
|
exports.ABSENCE_CODES = ABSENCE_CODES;
|
|
7556
7556
|
exports.ALLERGY_CLINICAL_SYSTEM = ALLERGY_CLINICAL_SYSTEM;
|
package/dist/index.d.cts
CHANGED
|
@@ -2264,7 +2264,7 @@ interface TerminologyService {
|
|
|
2264
2264
|
*
|
|
2265
2265
|
* This is deliberately *not* a FHIR `StructureDefinition` and not a snapshot generator, that engine
|
|
2266
2266
|
* (loading StructureDefinitions, generating snapshots from differentials, slicing, US Core profiles)
|
|
2267
|
-
* is separate ({@link ../profiles/index.js}). This layer needs only enough shape to run layers 1
|
|
2267
|
+
* is separate ({@link ../profiles/index.js}). This layer needs only enough shape to run layers 1 to 3,
|
|
2268
2268
|
* so it uses a hand-authored, hierarchy-free record; the schema type is the seam between the two.
|
|
2269
2269
|
*
|
|
2270
2270
|
* **What ships built-in here is a named, deliberately short list:** the base `Resource` /
|
|
@@ -2876,7 +2876,7 @@ declare function diagnosticFor(code: ValidationCode): string;
|
|
|
2876
2876
|
declare function validationIssue(code: ValidationCode, severity: ValidationSeverity, expression: string, constraint?: string, codeSystemVersion?: CodeSystemVersionRecord): ValidationIssue;
|
|
2877
2877
|
|
|
2878
2878
|
/**
|
|
2879
|
-
* The layered structural / cardinality / value-domain validator (validation layers 1
|
|
2879
|
+
* The layered structural / cardinality / value-domain validator (validation layers 1 to 3).
|
|
2880
2880
|
*
|
|
2881
2881
|
* Given a resource model (from `parseResource`) and a schema ({@link ./schema.js}), the validator
|
|
2882
2882
|
* walks the resource once and produces value-free {@link ValidationIssue}s across three layers:
|
package/dist/index.d.ts
CHANGED
|
@@ -2264,7 +2264,7 @@ interface TerminologyService {
|
|
|
2264
2264
|
*
|
|
2265
2265
|
* This is deliberately *not* a FHIR `StructureDefinition` and not a snapshot generator, that engine
|
|
2266
2266
|
* (loading StructureDefinitions, generating snapshots from differentials, slicing, US Core profiles)
|
|
2267
|
-
* is separate ({@link ../profiles/index.js}). This layer needs only enough shape to run layers 1
|
|
2267
|
+
* is separate ({@link ../profiles/index.js}). This layer needs only enough shape to run layers 1 to 3,
|
|
2268
2268
|
* so it uses a hand-authored, hierarchy-free record; the schema type is the seam between the two.
|
|
2269
2269
|
*
|
|
2270
2270
|
* **What ships built-in here is a named, deliberately short list:** the base `Resource` /
|
|
@@ -2876,7 +2876,7 @@ declare function diagnosticFor(code: ValidationCode): string;
|
|
|
2876
2876
|
declare function validationIssue(code: ValidationCode, severity: ValidationSeverity, expression: string, constraint?: string, codeSystemVersion?: CodeSystemVersionRecord): ValidationIssue;
|
|
2877
2877
|
|
|
2878
2878
|
/**
|
|
2879
|
-
* The layered structural / cardinality / value-domain validator (validation layers 1
|
|
2879
|
+
* The layered structural / cardinality / value-domain validator (validation layers 1 to 3).
|
|
2880
2880
|
*
|
|
2881
2881
|
* Given a resource model (from `parseResource`) and a schema ({@link ./schema.js}), the validator
|
|
2882
2882
|
* walks the resource once and produces value-free {@link ValidationIssue}s across three layers:
|
package/dist/index.mjs
CHANGED
|
@@ -7548,7 +7548,7 @@ async function* streamNdjson(source, options = {}) {
|
|
|
7548
7548
|
}
|
|
7549
7549
|
|
|
7550
7550
|
// src/index.ts
|
|
7551
|
-
var VERSION = "0.1.
|
|
7551
|
+
var VERSION = "0.1.1";
|
|
7552
7552
|
|
|
7553
7553
|
export { ABSENCE_CODES, ALLERGY_CLINICAL_SYSTEM, ALLERGY_SUBSTANCE_VALUESET, ALLERGY_VERIFICATION_SYSTEM, BINDING_STRENGTHS, BUNDLE_TYPES, CODE_SYSTEM_VERSION_RECORD_CODES, CODE_SYSTEM_VERSION_RECORD_SYSTEM, CONDITION_CATEGORY_SYSTEM, CONDITION_CLINICAL_SYSTEM, CONDITION_VERIFICATION_SYSTEM, CPT_SYSTEM, CVX_SYSTEM, DATA_ABSENT_REASON_URL, DISCRIMINATOR_TYPES, ENTERED_IN_ERROR, FATAL_CODES, FHIR_XML_NAMESPACE, FhirCodecError, FhirDecimal, FhirInteger64, FhirProfileError, FhirSafetyError, FhirSerializeError, FhirXmlError, ICD10CM_SYSTEM, ICD9CM_SYSTEM, ISSUE_CODES, ISSUE_SEVERITIES, ISSUE_TYPES, InvalidProfileError, KNOWN_MODIFIER_EXTENSION_URLS, KNOWN_SYSTEMS, LOINC_SYSTEM, MAX_REFERENCE_DEPTH, MEDICATION_VALUESET, MODIFIER_ELEMENT_ROOT_TYPES, NDC_SYSTEM, NDJSON_ERROR_CODES, NOT_DONE, NOT_TAKEN, NO_KNOWN_ALLERGY, OBSERVATION_CATEGORY_SYSTEM, OBSERVATION_VALUE_TYPES, PATIENT_IDENTIFIER_STARTER, PRIMITIVE_TYPES, REFUTED, RXNORM_SYSTEM, SAFETY_RESOURCE_TYPES, SERIALIZE_ERROR_CODES, SNOMED_SCT, STARTER_PROFILES, STARTER_PROFILE_BASE_URL, TERMINOLOGY_BINDINGS, UCUM_SYSTEM, UNBOUNDED, UnsupportedFhirPathError, VALIDATION_CODES, VERSION, VITAL_SIGNS_CATEGORY, VITAL_SIGNS_PROFILE, VITAL_SIGN_OBSERVATION_STARTER, VITAL_SIGN_UNITS, WITHHELD, XHTML_NAMESPACE, XML_FATAL_CODES, absenceMarkers, arrayWrappedScalars, assertSafeToSummarize, baseSchema, buildBindingRegistry, buildBundleIndex, buildRegistry, codeOf, codingsOf, collectBundleIssues, collectInvariantIssues, collectProfileIssues, collectProfileVersionIssues, collectQuantityIssues, collectSafetyIssues, collectTerminologyIssues, complex, conflictingAbsenceMarkers, containedIndex, convertToBoolean, decimal, decimalPrecisionAtRisk, defineProfile, diagnosticFor, droppedText, duplicateProperty, entryProcessing, evaluateInvariant, generateSnapshot, getAllProperties, getProperty, hasCodeAnySystem, hasCoding, hasContainedCycle, integer64, isAbsenceCode, isAtomicBundle, isChoice, isComplex, isDroppedText, isForeignRoot, isKnownSystem, isList, isNestedArray, isPrimitive, isPrimitiveType, isRetracted, isUndefinedNull, list, loadStructureDefinition, locateDoseQuantities, matchSlices, matchesFixed, matchesPattern, misplacedPrimitiveExtension, mixedXmlSpelling, modifierElements, nearMissNegationCodes, nestedArray, nestedArrayContent, nestedArrays, nodesEquivalent, parseFhirPath, parseNdjsonLine, parseReference, parseResource, parseResourceXml, pathExists, primitive, readBundle, readInterpretations, readMedicationDoses, readObservationValue, readQuantity, readRawJson, readRawXml, readReferenceRanges, readSafety, requiredVitalSignUnits, resolveElement, resolvePath, resolveReference, resolveSlices, resourceType, serializeResource, serializeResourceXml, shadowedProperties, snapshotElements, starterProfile, streamNdjson, toOperationOutcome, tokenize, undefinedJsonNull, unexpectedXmlContent, unhandledModifierExtensions, unknownProperty, unreadableAbsenceMarkers, unreadableBooleans, unreadableNegationCodes, validatePrimitiveValue, validateResource, validateUcumShape, validationIssue, wouldLosePrecisionAsDouble };
|
|
7554
7554
|
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosyte/fhir",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "FHIR R4 for Node.js and TypeScript: a resource model that keeps every value exactly as written, JSON and XML codecs, layered validation, and a safety readout for status and negation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fhir",
|
|
@@ -33,13 +33,6 @@
|
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": ">=22.0.0"
|
|
35
35
|
},
|
|
36
|
-
"packageManager": "pnpm@10.0.0+sha512.b8fef5494bd3fe4cbd4edabd0745df2ee5be3e4b0b8b08fa643aa3e4c6702ccc0f00d68fa8a8c9858a735a0032485a44990ed2810526c875e416f001b17df12b",
|
|
37
|
-
"pnpm": {
|
|
38
|
-
"overrides": {
|
|
39
|
-
"esbuild@>=0.27.3 <0.28.1": "0.28.1",
|
|
40
|
-
"js-yaml@>=4.0.0 <4.3.0": "4.3.0"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
36
|
"main": "./dist/index.cjs",
|
|
44
37
|
"module": "./dist/index.mjs",
|
|
45
38
|
"types": "./dist/index.d.ts",
|
|
@@ -69,6 +62,30 @@
|
|
|
69
62
|
"provenance": true
|
|
70
63
|
},
|
|
71
64
|
"prettier": "@cosyte/prettier-config",
|
|
65
|
+
"simple-git-hooks": {
|
|
66
|
+
"pre-commit": "pnpm phi-scan --staged"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@arethetypeswrong/cli": "0.18.4",
|
|
70
|
+
"@changesets/cli": "2.31.0",
|
|
71
|
+
"@cosyte/eslint-config": "^0.0.3",
|
|
72
|
+
"@cosyte/prettier-config": "^0.0.2",
|
|
73
|
+
"@cosyte/test-utils": "^0.0.2",
|
|
74
|
+
"@cosyte/tsconfig": "^0.0.2",
|
|
75
|
+
"@cosyte/tsup-config": "^0.0.1",
|
|
76
|
+
"@cosyte/vitest-config": "^0.0.2",
|
|
77
|
+
"@types/node": "^22.0.0",
|
|
78
|
+
"@vitest/coverage-v8": "4.1.4",
|
|
79
|
+
"eslint": "10.5.0",
|
|
80
|
+
"fast-check": "3.23.2",
|
|
81
|
+
"prettier": "3.8.3",
|
|
82
|
+
"simple-git-hooks": "2.13.0",
|
|
83
|
+
"tsup": "8.5.1",
|
|
84
|
+
"tsx": "4.21.0",
|
|
85
|
+
"typescript": "5.9.3",
|
|
86
|
+
"vite": "7.3.6",
|
|
87
|
+
"vitest": "4.1.4"
|
|
88
|
+
},
|
|
72
89
|
"scripts": {
|
|
73
90
|
"build": "tsup",
|
|
74
91
|
"changeset": "changeset",
|
|
@@ -100,32 +117,6 @@
|
|
|
100
117
|
"check:no-internal-refs": "bash scripts/check-no-internal-refs.sh",
|
|
101
118
|
"check:docs-set": "tsx scripts/docs-set-check.ts",
|
|
102
119
|
"version": "changeset version && node scripts/sync-version.mjs && prettier --write package.json src/index.ts",
|
|
103
|
-
"release": "changeset publish"
|
|
104
|
-
"prepublishOnly": "pnpm clean && pnpm typecheck && pnpm lint && pnpm test && pnpm build && pnpm attw",
|
|
105
|
-
"prepare": "command -v simple-git-hooks >/dev/null 2>&1 && simple-git-hooks || true"
|
|
106
|
-
},
|
|
107
|
-
"simple-git-hooks": {
|
|
108
|
-
"pre-commit": "pnpm phi-scan --staged"
|
|
109
|
-
},
|
|
110
|
-
"devDependencies": {
|
|
111
|
-
"@arethetypeswrong/cli": "0.18.4",
|
|
112
|
-
"@changesets/cli": "2.31.0",
|
|
113
|
-
"@cosyte/eslint-config": "^0.0.3",
|
|
114
|
-
"@cosyte/prettier-config": "^0.0.2",
|
|
115
|
-
"@cosyte/test-utils": "^0.0.2",
|
|
116
|
-
"@cosyte/tsconfig": "^0.0.2",
|
|
117
|
-
"@cosyte/tsup-config": "^0.0.1",
|
|
118
|
-
"@cosyte/vitest-config": "^0.0.2",
|
|
119
|
-
"@types/node": "^22.0.0",
|
|
120
|
-
"@vitest/coverage-v8": "4.1.4",
|
|
121
|
-
"eslint": "10.5.0",
|
|
122
|
-
"fast-check": "3.23.2",
|
|
123
|
-
"prettier": "3.8.3",
|
|
124
|
-
"simple-git-hooks": "2.13.0",
|
|
125
|
-
"tsup": "8.5.1",
|
|
126
|
-
"tsx": "4.21.0",
|
|
127
|
-
"typescript": "5.9.3",
|
|
128
|
-
"vite": "7.3.6",
|
|
129
|
-
"vitest": "4.1.4"
|
|
120
|
+
"release": "changeset publish"
|
|
130
121
|
}
|
|
131
|
-
}
|
|
122
|
+
}
|