@cosyte/fhir 0.1.2 → 0.1.3
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/README.md +22 -9
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +14 -9
package/README.md
CHANGED
|
@@ -7,13 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
# @cosyte/fhir
|
|
9
9
|
|
|
10
|
-
> Read real-world FHIR R4, keep every value exactly as it was written, and validate it against your
|
|
11
|
-
> profiles.
|
|
10
|
+
> Read real-world FHIR R4, keep every value exactly as it was written, and validate it against your profiles.
|
|
12
11
|
|
|
13
12
|
[](https://www.npmjs.com/package/@cosyte/fhir)
|
|
14
13
|
[](https://github.com/cosyte/fhir/actions/workflows/ci.yml)
|
|
15
14
|
[](https://github.com/cosyte/fhir/blob/main/LICENSE)
|
|
16
|
-
[](https://nodejs.org)
|
|
15
|
+
[](https://nodejs.org)
|
|
17
16
|
|
|
18
17
|
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.
|
|
19
18
|
|
|
@@ -59,9 +58,9 @@ from a model read out of XML, unit conversion, and executing a transaction Bundl
|
|
|
59
58
|
pnpm add @cosyte/fhir
|
|
60
59
|
```
|
|
61
60
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
Node.js 22 or later, tested on 22, 24, and 26. The package ships dual ESM and CommonJS builds with
|
|
62
|
+
type declarations for both, so `import` and `require` both work and neither needs a compatibility
|
|
63
|
+
shim. There are zero runtime dependencies, and it imports no Node built-in.
|
|
65
64
|
|
|
66
65
|
## Usage
|
|
67
66
|
|
|
@@ -160,11 +159,25 @@ as PHI.
|
|
|
160
159
|
- [`CHANGELOG.md`](https://github.com/cosyte/fhir/blob/main/CHANGELOG.md): every change, with the
|
|
161
160
|
breaking ones called out.
|
|
162
161
|
|
|
162
|
+
## Support
|
|
163
|
+
|
|
164
|
+
Bug reports, questions, and FHIR quirks from the servers and EHRs you connect to belong in
|
|
165
|
+
[GitHub issues](https://github.com/cosyte/fhir/issues), with a minimal reproduction that uses
|
|
166
|
+
synthetic data only. Ideas and open questions can also go to
|
|
167
|
+
[Discussions](https://github.com/cosyte/.github/discussions). Our
|
|
168
|
+
[support page](https://github.com/cosyte/.github/blob/main/SUPPORT.md) lists every route.
|
|
169
|
+
|
|
170
|
+
## Security
|
|
171
|
+
|
|
172
|
+
Report a vulnerability privately, never in a public issue: through GitHub's
|
|
173
|
+
[private vulnerability reporting](https://github.com/cosyte/fhir/security/advisories/new) on this
|
|
174
|
+
repository, or by email to [security@cosyte.com](mailto:security@cosyte.com). Use synthetic data
|
|
175
|
+
only. Our [security policy](https://github.com/cosyte/.github/blob/main/SECURITY.md) says what is in
|
|
176
|
+
scope and which versions we support.
|
|
177
|
+
|
|
163
178
|
## Contributing
|
|
164
179
|
|
|
165
|
-
|
|
166
|
-
[GitHub issues](https://github.com/cosyte/fhir/issues). Pull requests are welcome; every fixture
|
|
167
|
-
must be synthetic, never a real patient's data.
|
|
180
|
+
Pull requests are welcome; every fixture must be synthetic, never a real patient's data.
|
|
168
181
|
|
|
169
182
|
```bash
|
|
170
183
|
pnpm install
|
package/dist/index.cjs
CHANGED
|
@@ -7558,7 +7558,7 @@ async function* streamNdjson(source, options = {}) {
|
|
|
7558
7558
|
}
|
|
7559
7559
|
|
|
7560
7560
|
// src/index.ts
|
|
7561
|
-
var VERSION = "0.1.
|
|
7561
|
+
var VERSION = "0.1.3";
|
|
7562
7562
|
|
|
7563
7563
|
exports.ABSENCE_CODES = ABSENCE_CODES;
|
|
7564
7564
|
exports.ALLERGY_CLINICAL_SYSTEM = ALLERGY_CLINICAL_SYSTEM;
|
package/dist/index.mjs
CHANGED
|
@@ -7556,7 +7556,7 @@ async function* streamNdjson(source, options = {}) {
|
|
|
7556
7556
|
}
|
|
7557
7557
|
|
|
7558
7558
|
// src/index.ts
|
|
7559
|
-
var VERSION = "0.1.
|
|
7559
|
+
var VERSION = "0.1.3";
|
|
7560
7560
|
|
|
7561
7561
|
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 };
|
|
7562
7562
|
//# 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.3",
|
|
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",
|
|
@@ -68,12 +68,13 @@
|
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@arethetypeswrong/cli": "0.18.4",
|
|
70
70
|
"@changesets/cli": "2.31.0",
|
|
71
|
-
"@cosyte/eslint-config": "^0.1.
|
|
72
|
-
"@cosyte/prettier-config": "^0.1.
|
|
73
|
-
"@cosyte/
|
|
74
|
-
"@cosyte/
|
|
75
|
-
"@cosyte/
|
|
76
|
-
"@cosyte/
|
|
71
|
+
"@cosyte/eslint-config": "^0.1.2",
|
|
72
|
+
"@cosyte/prettier-config": "^0.1.2",
|
|
73
|
+
"@cosyte/script-utils": "^0.1.4",
|
|
74
|
+
"@cosyte/test-utils": "^0.1.2",
|
|
75
|
+
"@cosyte/tsconfig": "^0.1.2",
|
|
76
|
+
"@cosyte/tsup-config": "^0.1.2",
|
|
77
|
+
"@cosyte/vitest-config": "^0.1.2",
|
|
77
78
|
"@types/node": "^22.0.0",
|
|
78
79
|
"@vitest/coverage-v8": "4.1.4",
|
|
79
80
|
"eslint": "10.5.0",
|
|
@@ -99,7 +100,7 @@
|
|
|
99
100
|
"test:coverage": "vitest run --coverage",
|
|
100
101
|
"clean": "rm -rf dist coverage",
|
|
101
102
|
"pack:docs": "bash scripts/build-docs-artifacts.sh",
|
|
102
|
-
"attw": "
|
|
103
|
+
"attw": "cosyte-attw",
|
|
103
104
|
"examples": "tsx scripts/run-examples.ts",
|
|
104
105
|
"typecheck:examples": "tsc -p examples/tsconfig.json",
|
|
105
106
|
"lint:examples": "eslint examples --max-warnings=0",
|
|
@@ -113,9 +114,13 @@
|
|
|
113
114
|
"capture:xml-wellformed": "tsx scripts/capture-xml-wellformed.ts",
|
|
114
115
|
"uscore:projection": "tsx scripts/uscore-projection.ts",
|
|
115
116
|
"uscore:constraints": "tsx scripts/uscore-constraints.ts",
|
|
116
|
-
"check:no-emdash": "
|
|
117
|
+
"check:no-emdash": "cosyte-no-emdash",
|
|
117
118
|
"check:no-internal-refs": "bash scripts/check-no-internal-refs.sh",
|
|
118
119
|
"check:docs-set": "tsx scripts/docs-set-check.ts",
|
|
120
|
+
"check:readme": "cosyte-readme",
|
|
121
|
+
"check:claude-card": "cosyte-claude-card",
|
|
122
|
+
"check:agent-notes": "cosyte-agent-notes",
|
|
123
|
+
"check:catalog": "cosyte-catalog",
|
|
119
124
|
"version": "changeset version && node scripts/sync-version.mjs && prettier --write package.json src/index.ts",
|
|
120
125
|
"release": "changeset publish"
|
|
121
126
|
}
|