fhir-data-utils-ts 0.2.4 → 0.3.2
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/.codex/skills/govern-fhir-data-utilities/SKILL.md +58 -0
- package/.codex/skills/govern-fhir-data-utilities/agents/openai.yaml +4 -0
- package/.codex/skills/govern-fhir-observation-components/SKILL.md +18 -0
- package/CHANGELOG.md +39 -0
- package/README.md +47 -0
- package/dist/builders/immunization-graph.d.ts +36 -0
- package/dist/builders/immunization-graph.js +115 -0
- package/dist/builders/immunization-reminders.d.ts +35 -0
- package/dist/builders/immunization-reminders.js +104 -0
- package/dist/builders/index.d.ts +2 -0
- package/dist/builders/index.js +2 -0
- package/dist/claim-helpers/claim-list-helpers.d.ts +21 -0
- package/dist/claim-helpers/claim-list-helpers.js +54 -0
- package/dist/claim-helpers/claims-helpers-allergy-intolerance.d.ts +18 -0
- package/dist/claim-helpers/claims-helpers-allergy-intolerance.js +65 -0
- package/dist/claim-helpers/claims-helpers-appointment-response.d.ts +8 -0
- package/dist/claim-helpers/claims-helpers-appointment-response.js +20 -0
- package/dist/claim-helpers/claims-helpers-appointment.d.ts +10 -0
- package/dist/claim-helpers/claims-helpers-appointment.js +26 -0
- package/dist/claim-helpers/claims-helpers-care-plan.d.ts +8 -0
- package/dist/claim-helpers/claims-helpers-care-plan.js +20 -0
- package/dist/claim-helpers/claims-helpers-clinical-impression.d.ts +10 -0
- package/dist/claim-helpers/claims-helpers-clinical-impression.js +26 -0
- package/dist/claim-helpers/claims-helpers-communication.d.ts +19 -0
- package/dist/claim-helpers/claims-helpers-communication.js +63 -0
- package/dist/claim-helpers/claims-helpers-composition.d.ts +12 -0
- package/dist/claim-helpers/claims-helpers-composition.js +32 -0
- package/dist/claim-helpers/claims-helpers-condition.d.ts +18 -0
- package/dist/claim-helpers/claims-helpers-condition.js +65 -0
- package/dist/claim-helpers/claims-helpers-coverage.d.ts +10 -0
- package/dist/claim-helpers/claims-helpers-coverage.js +26 -0
- package/dist/claim-helpers/claims-helpers-device-use-statement.d.ts +8 -0
- package/dist/claim-helpers/claims-helpers-device-use-statement.js +20 -0
- package/dist/claim-helpers/claims-helpers-device.d.ts +8 -0
- package/dist/claim-helpers/claims-helpers-device.js +20 -0
- package/dist/claim-helpers/claims-helpers-diagnostic-report.d.ts +16 -0
- package/dist/claim-helpers/claims-helpers-diagnostic-report.js +47 -0
- package/dist/claim-helpers/claims-helpers-document-reference.d.ts +8 -0
- package/dist/claim-helpers/claims-helpers-document-reference.js +20 -0
- package/dist/claim-helpers/claims-helpers-encounter.d.ts +10 -0
- package/dist/claim-helpers/claims-helpers-encounter.js +26 -0
- package/dist/claim-helpers/claims-helpers-flag.d.ts +8 -0
- package/dist/claim-helpers/claims-helpers-flag.js +20 -0
- package/dist/claim-helpers/claims-helpers-immunization.d.ts +8 -0
- package/dist/claim-helpers/claims-helpers-immunization.js +20 -0
- package/dist/claim-helpers/claims-helpers-location.d.ts +10 -0
- package/dist/claim-helpers/claims-helpers-location.js +26 -0
- package/dist/claim-helpers/claims-helpers-medication-statement.d.ts +96 -0
- package/dist/claim-helpers/claims-helpers-medication-statement.js +278 -0
- package/dist/claim-helpers/claims-helpers-observation.d.ts +8 -0
- package/dist/claim-helpers/claims-helpers-observation.js +20 -0
- package/dist/claim-helpers/claims-helpers-organization.d.ts +12 -0
- package/dist/claim-helpers/claims-helpers-organization.js +32 -0
- package/dist/claim-helpers/claims-helpers-procedure.d.ts +8 -0
- package/dist/claim-helpers/claims-helpers-procedure.js +20 -0
- package/dist/claim-helpers/claims-helpers-related-person.d.ts +22 -0
- package/dist/claim-helpers/claims-helpers-related-person.js +53 -0
- package/dist/claim-helpers/index.d.ts +23 -0
- package/dist/claim-helpers/index.js +23 -0
- package/dist/claims/allergy-intolerance-claims.d.ts +153 -0
- package/dist/claims/allergy-intolerance-claims.js +194 -0
- package/dist/claims/appointment-claims.d.ts +226 -0
- package/dist/claims/appointment-claims.js +218 -0
- package/dist/claims/appointment-response-claims.d.ts +63 -0
- package/dist/claims/appointment-response-claims.js +58 -0
- package/dist/claims/care-plan-claims.d.ts +37 -0
- package/dist/claims/care-plan-claims.js +59 -0
- package/dist/claims/claim-types.d.ts +9 -0
- package/dist/claims/claim-types.js +3 -0
- package/dist/claims/clinical-impression-claims.d.ts +17 -0
- package/dist/claims/clinical-impression-claims.js +30 -0
- package/dist/claims/communication-claims.d.ts +55 -0
- package/dist/claims/communication-claims.js +57 -0
- package/dist/claims/composition-claims.d.ts +27 -0
- package/dist/claims/composition-claims.js +27 -0
- package/dist/claims/condition-claims.d.ts +79 -0
- package/dist/claims/condition-claims.js +104 -0
- package/dist/claims/consent-claims.d.ts +195 -0
- package/dist/claims/consent-claims.js +74 -0
- package/dist/claims/coverage-claims.d.ts +16 -0
- package/dist/claims/coverage-claims.js +28 -0
- package/dist/claims/device-claims.d.ts +20 -0
- package/dist/claims/device-claims.js +36 -0
- package/dist/claims/device-use-statement-claims.d.ts +17 -0
- package/dist/claims/device-use-statement-claims.js +28 -0
- package/dist/claims/diagnostic-report-claims.d.ts +109 -0
- package/dist/claims/diagnostic-report-claims.js +120 -0
- package/dist/claims/document-reference-claims.d.ts +39 -0
- package/dist/claims/document-reference-claims.js +96 -0
- package/dist/claims/encounter-claims.d.ts +18 -0
- package/dist/claims/encounter-claims.js +32 -0
- package/dist/claims/flag-claims.d.ts +19 -0
- package/dist/claims/flag-claims.js +33 -0
- package/dist/claims/immunization-claims.d.ts +31 -0
- package/dist/claims/immunization-claims.js +54 -0
- package/dist/claims/immunization-recommendation-claims.d.ts +19 -0
- package/dist/claims/immunization-recommendation-claims.js +26 -0
- package/dist/claims/index.d.ts +29 -0
- package/dist/claims/index.js +29 -0
- package/dist/claims/invoice-claims.d.ts +277 -0
- package/dist/claims/invoice-claims.js +357 -0
- package/dist/claims/location-claims.d.ts +22 -0
- package/dist/claims/location-claims.js +34 -0
- package/dist/claims/medication-claims.d.ts +15 -0
- package/dist/claims/medication-claims.js +23 -0
- package/dist/claims/medication-statement-claims.d.ts +539 -0
- package/dist/claims/medication-statement-claims.js +469 -0
- package/dist/claims/organization-claims.d.ts +18 -0
- package/dist/claims/organization-claims.js +27 -0
- package/dist/claims/practitioner-role-claims.d.ts +18 -0
- package/dist/claims/practitioner-role-claims.js +33 -0
- package/dist/claims/procedure-claims.d.ts +24 -0
- package/dist/claims/procedure-claims.js +44 -0
- package/dist/claims/related-person-claims.d.ts +30 -0
- package/dist/claims/related-person-claims.js +44 -0
- package/dist/claims/research-subject-claims.d.ts +4 -0
- package/dist/claims/research-subject-claims.js +4 -0
- package/dist/claims/task-claims.d.ts +61 -0
- package/dist/claims/task-claims.js +64 -0
- package/dist/clinical-terminology.d.ts +73 -0
- package/dist/clinical-terminology.js +77 -0
- package/dist/constants/clinical-statuses.d.ts +102 -0
- package/dist/constants/clinical-statuses.js +93 -0
- package/dist/constants/fhir-code-systems.d.ts +15 -0
- package/dist/constants/fhir-code-systems.js +15 -0
- package/dist/constants/fhir-resource-types.d.ts +162 -0
- package/dist/constants/fhir-resource-types.js +70 -0
- package/dist/constants/fhir-versions.d.ts +10 -0
- package/dist/constants/fhir-versions.js +10 -0
- package/dist/constants/index.d.ts +4 -0
- package/dist/constants/index.js +4 -0
- package/dist/converters/convert-allergy-intolerance.d.ts +3 -0
- package/dist/converters/convert-allergy-intolerance.js +85 -0
- package/dist/converters/convert-appointment-response.d.ts +3 -0
- package/dist/converters/convert-appointment-response.js +32 -0
- package/dist/converters/convert-appointment.d.ts +3 -0
- package/dist/converters/convert-appointment.js +61 -0
- package/dist/converters/convert-care-plan.d.ts +3 -0
- package/dist/converters/convert-care-plan.js +93 -0
- package/dist/converters/convert-clinical-impression.d.ts +3 -0
- package/dist/converters/convert-clinical-impression.js +42 -0
- package/dist/converters/convert-composition.d.ts +3 -0
- package/dist/converters/convert-composition.js +70 -0
- package/dist/converters/convert-condition.d.ts +3 -0
- package/dist/converters/convert-condition.js +51 -0
- package/dist/converters/convert-consent.d.ts +9 -0
- package/dist/converters/convert-consent.js +174 -0
- package/dist/converters/convert-coverage.d.ts +3 -0
- package/dist/converters/convert-coverage.js +51 -0
- package/dist/converters/convert-device-use-statement.d.ts +3 -0
- package/dist/converters/convert-device-use-statement.js +36 -0
- package/dist/converters/convert-device.d.ts +3 -0
- package/dist/converters/convert-device.js +48 -0
- package/dist/converters/convert-diagnostic-report.d.ts +3 -0
- package/dist/converters/convert-diagnostic-report.js +63 -0
- package/dist/converters/convert-document-reference.d.ts +3 -0
- package/dist/converters/convert-document-reference.js +54 -0
- package/dist/converters/convert-encounter.d.ts +3 -0
- package/dist/converters/convert-encounter.js +68 -0
- package/dist/converters/convert-flag.d.ts +3 -0
- package/dist/converters/convert-flag.js +42 -0
- package/dist/converters/convert-immunization.d.ts +3 -0
- package/dist/converters/convert-immunization.js +80 -0
- package/dist/converters/convert-location.d.ts +3 -0
- package/dist/converters/convert-location.js +44 -0
- package/dist/converters/convert-medication-statement.d.ts +3 -0
- package/dist/converters/convert-medication-statement.js +142 -0
- package/dist/converters/convert-observation.d.ts +33 -0
- package/dist/converters/convert-observation.js +246 -0
- package/dist/converters/convert-organization.d.ts +3 -0
- package/dist/converters/convert-organization.js +39 -0
- package/dist/converters/convert-practitioner-role.d.ts +3 -0
- package/dist/converters/convert-practitioner-role.js +62 -0
- package/dist/converters/convert-procedure.d.ts +3 -0
- package/dist/converters/convert-procedure.js +64 -0
- package/dist/converters/convert-related-person.d.ts +3 -0
- package/dist/converters/convert-related-person.js +31 -0
- package/dist/converters/convert-shared.d.ts +38 -0
- package/dist/converters/convert-shared.js +190 -0
- package/dist/converters/index.d.ts +24 -0
- package/dist/converters/index.js +24 -0
- package/dist/fhir-bundle.d.ts +9 -0
- package/dist/fhir-bundle.js +43 -0
- package/dist/fhir-search-parameters.d.ts +18 -0
- package/dist/fhir-search-parameters.js +52 -0
- package/dist/fhir-tokens.d.ts +11 -0
- package/dist/fhir-tokens.js +26 -0
- package/dist/fhir-types.d.ts +77 -0
- package/dist/fhir-types.js +1 -0
- package/dist/fhir-values.d.ts +13 -0
- package/dist/fhir-values.js +53 -0
- package/dist/group-r5.d.ts +121 -0
- package/dist/group-r5.js +301 -0
- package/dist/imaging-types.d.ts +30 -0
- package/dist/imaging-types.js +1 -0
- package/dist/immunization-flat-claims.d.ts +2 -0
- package/dist/immunization-flat-claims.js +2 -0
- package/dist/immunization-reminder-plan.d.ts +2 -0
- package/dist/immunization-reminder-plan.js +2 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +19 -0
- package/dist/observation-claims.d.ts +170 -0
- package/dist/observation-claims.js +184 -0
- package/dist/related-person.d.ts +16 -0
- package/dist/related-person.js +14 -0
- package/dist/research-study-r5.d.ts +163 -0
- package/dist/research-study-r5.js +490 -0
- package/dist/search-models/index.d.ts +7 -0
- package/dist/search-models/index.js +7 -0
- package/dist/search-models/params/AdverseEvent.params.model.d.ts +14 -0
- package/dist/search-models/params/AdverseEvent.params.model.js +16 -0
- package/dist/search-models/params/AllergyIntolerance.params.model.d.ts +24 -0
- package/dist/search-models/params/AllergyIntolerance.params.model.js +27 -0
- package/dist/search-models/params/Appointment.params.model.d.ts +12 -0
- package/dist/search-models/params/Appointment.params.model.js +14 -0
- package/dist/search-models/params/ClinicalImpression.params.model.d.ts +14 -0
- package/dist/search-models/params/ClinicalImpression.params.model.js +15 -0
- package/dist/search-models/params/Condition.params.model.d.ts +16 -0
- package/dist/search-models/params/Condition.params.model.js +17 -0
- package/dist/search-models/params/DetectedIssue.params.model.d.ts +9 -0
- package/dist/search-models/params/DetectedIssue.params.model.js +11 -0
- package/dist/search-models/params/DiagnosticReport.params.model.d.ts +13 -0
- package/dist/search-models/params/DiagnosticReport.params.model.js +14 -0
- package/dist/search-models/params/Encounter.params.model.d.ts +15 -0
- package/dist/search-models/params/Encounter.params.model.js +17 -0
- package/dist/search-models/params/Immunization.params.model.d.ts +14 -0
- package/dist/search-models/params/Immunization.params.model.js +16 -0
- package/dist/search-models/params/Medication.params.model.d.ts +35 -0
- package/dist/search-models/params/Medication.params.model.js +45 -0
- package/dist/search-models/params/Observation.params.model.d.ts +326 -0
- package/dist/search-models/params/Observation.params.model.js +244 -0
- package/dist/search-models/params/Procedure.params.model.d.ts +15 -0
- package/dist/search-models/params/Procedure.params.model.js +17 -0
- package/dist/search-models/params/Search.params.model.d.ts +75 -0
- package/dist/search-models/params/Search.params.model.js +69 -0
- package/dist/search-models/params/ServiceRequest.params.model.d.ts +14 -0
- package/dist/search-models/params/ServiceRequest.params.model.js +16 -0
- package/dist/search-models/params/Specimen.params.model.d.ts +10 -0
- package/dist/search-models/params/Specimen.params.model.js +12 -0
- package/dist/search-models/params/index.d.ts +15 -0
- package/dist/search-models/params/index.js +15 -0
- package/dist/search-models/templates/AdverseEvent.template.model.d.ts +16 -0
- package/dist/search-models/templates/AdverseEvent.template.model.js +2 -0
- package/dist/search-models/templates/AllergyIntolerance.template.model.d.ts +24 -0
- package/dist/search-models/templates/AllergyIntolerance.template.model.js +1 -0
- package/dist/search-models/templates/Appointment.template.model.d.ts +13 -0
- package/dist/search-models/templates/Appointment.template.model.js +1 -0
- package/dist/search-models/templates/ClinicalImpression.template.model.d.ts +16 -0
- package/dist/search-models/templates/ClinicalImpression.template.model.js +1 -0
- package/dist/search-models/templates/Condition.template.model.d.ts +18 -0
- package/dist/search-models/templates/Condition.template.model.js +1 -0
- package/dist/search-models/templates/DetectedIssue.template.model.d.ts +11 -0
- package/dist/search-models/templates/DetectedIssue.template.model.js +1 -0
- package/dist/search-models/templates/DiagnosticReport.template.model.d.ts +15 -0
- package/dist/search-models/templates/DiagnosticReport.template.model.js +1 -0
- package/dist/search-models/templates/Encounter.template.model.d.ts +17 -0
- package/dist/search-models/templates/Encounter.template.model.js +1 -0
- package/dist/search-models/templates/Immunization.template.model.d.ts +18 -0
- package/dist/search-models/templates/Immunization.template.model.js +2 -0
- package/dist/search-models/templates/Medication.template.model.d.ts +37 -0
- package/dist/search-models/templates/Medication.template.model.js +1 -0
- package/dist/search-models/templates/Observation.template.model.d.ts +18 -0
- package/dist/search-models/templates/Observation.template.model.js +1 -0
- package/dist/search-models/templates/Procedure.template.model.d.ts +17 -0
- package/dist/search-models/templates/Procedure.template.model.js +1 -0
- package/dist/search-models/templates/ServiceRequest.template.model.d.ts +16 -0
- package/dist/search-models/templates/ServiceRequest.template.model.js +1 -0
- package/dist/search-models/templates/Specimen.template.model.d.ts +12 -0
- package/dist/search-models/templates/Specimen.template.model.js +1 -0
- package/dist/search-models/templates/index.d.ts +14 -0
- package/dist/search-models/templates/index.js +14 -0
- package/dist/terminology-models/AtcModel.d.ts +15 -0
- package/dist/terminology-models/AtcModel.js +2 -0
- package/dist/terminology-models/CommonModels.d.ts +70 -0
- package/dist/terminology-models/CommonModels.js +55 -0
- package/dist/terminology-models/FhirModels.d.ts +60 -0
- package/dist/terminology-models/FhirModels.js +34 -0
- package/dist/terminology-models/LoincModels.d.ts +24 -0
- package/dist/terminology-models/LoincModels.js +2 -0
- package/dist/terminology-models/SnomedModels.d.ts +13 -0
- package/dist/terminology-models/SnomedModels.js +2 -0
- package/dist/terminology-models/index.d.ts +6 -0
- package/dist/terminology-models/index.js +6 -0
- package/docs/UHC_FHIR_UTILS_MIGRATION.md +51 -8
- package/package.json +83 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type GenericInteroperableClaims } from './claim-list-helpers.js';
|
|
2
|
+
export type RelatedPersonInteroperableClaims = GenericInteroperableClaims;
|
|
3
|
+
export declare function getRelatedPersonClaimList(claims: RelatedPersonInteroperableClaims, claimKey: string): string[];
|
|
4
|
+
export declare function setRelatedPersonClaimList(claims: RelatedPersonInteroperableClaims, claimKey: string, values: string | readonly string[]): RelatedPersonInteroperableClaims;
|
|
5
|
+
export declare function addRelatedPersonClaimList(claims: RelatedPersonInteroperableClaims, claimKey: string, values: string | readonly string[]): RelatedPersonInteroperableClaims;
|
|
6
|
+
export declare function removeRelatedPersonClaimList(claims: RelatedPersonInteroperableClaims, claimKey: string, values: string | readonly string[]): RelatedPersonInteroperableClaims;
|
|
7
|
+
export declare function getRelatedPersonIdentifier(claims: RelatedPersonInteroperableClaims): string;
|
|
8
|
+
export declare function setRelatedPersonIdentifier(claims: RelatedPersonInteroperableClaims, value: string): RelatedPersonInteroperableClaims;
|
|
9
|
+
/**
|
|
10
|
+
* Returns the current active flag as a boolean when present.
|
|
11
|
+
*
|
|
12
|
+
* Interoperability note:
|
|
13
|
+
* some callers persist the flag as a real boolean while others may carry the
|
|
14
|
+
* transport value as `"true"` / `"false"`. This helper normalizes both
|
|
15
|
+
* shapes.
|
|
16
|
+
*/
|
|
17
|
+
export declare function getRelatedPersonActive(claims: RelatedPersonInteroperableClaims): boolean | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the canonical active flag used by the current `RelatedPerson` lifecycle
|
|
20
|
+
* helpers.
|
|
21
|
+
*/
|
|
22
|
+
export declare function setRelatedPersonActive(claims: RelatedPersonInteroperableClaims, value: boolean): RelatedPersonInteroperableClaims;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { RelatedPersonClaim } from '../claims/related-person-claims.js';
|
|
2
|
+
import { addClaimValues, getClaimValues, normalizeClaimScalar, removeClaimValues, setClaimValues, } from './claim-list-helpers.js';
|
|
3
|
+
export function getRelatedPersonClaimList(claims, claimKey) {
|
|
4
|
+
return getClaimValues(claims, claimKey);
|
|
5
|
+
}
|
|
6
|
+
export function setRelatedPersonClaimList(claims, claimKey, values) {
|
|
7
|
+
return setClaimValues(claims, claimKey, values);
|
|
8
|
+
}
|
|
9
|
+
export function addRelatedPersonClaimList(claims, claimKey, values) {
|
|
10
|
+
return addClaimValues(claims, claimKey, values);
|
|
11
|
+
}
|
|
12
|
+
export function removeRelatedPersonClaimList(claims, claimKey, values) {
|
|
13
|
+
return removeClaimValues(claims, claimKey, values);
|
|
14
|
+
}
|
|
15
|
+
export function getRelatedPersonIdentifier(claims) {
|
|
16
|
+
return normalizeClaimScalar(claims[RelatedPersonClaim.IdentifierValue]
|
|
17
|
+
?? claims[RelatedPersonClaim.Identifier]);
|
|
18
|
+
}
|
|
19
|
+
export function setRelatedPersonIdentifier(claims, value) {
|
|
20
|
+
const normalizedValue = normalizeClaimScalar(value);
|
|
21
|
+
return {
|
|
22
|
+
...claims,
|
|
23
|
+
[RelatedPersonClaim.IdentifierValue]: normalizedValue,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Returns the current active flag as a boolean when present.
|
|
28
|
+
*
|
|
29
|
+
* Interoperability note:
|
|
30
|
+
* some callers persist the flag as a real boolean while others may carry the
|
|
31
|
+
* transport value as `"true"` / `"false"`. This helper normalizes both
|
|
32
|
+
* shapes.
|
|
33
|
+
*/
|
|
34
|
+
export function getRelatedPersonActive(claims) {
|
|
35
|
+
const value = claims[RelatedPersonClaim.Active];
|
|
36
|
+
if (typeof value === 'boolean')
|
|
37
|
+
return value;
|
|
38
|
+
if (typeof value === 'string') {
|
|
39
|
+
const normalized = value.trim().toLowerCase();
|
|
40
|
+
if (normalized === 'true')
|
|
41
|
+
return true;
|
|
42
|
+
if (normalized === 'false')
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Sets the canonical active flag used by the current `RelatedPerson` lifecycle
|
|
49
|
+
* helpers.
|
|
50
|
+
*/
|
|
51
|
+
export function setRelatedPersonActive(claims, value) {
|
|
52
|
+
return { ...claims, [RelatedPersonClaim.Active]: value };
|
|
53
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from './claim-list-helpers.js';
|
|
2
|
+
export * from './claims-helpers-allergy-intolerance.js';
|
|
3
|
+
export * from './claims-helpers-appointment-response.js';
|
|
4
|
+
export * from './claims-helpers-appointment.js';
|
|
5
|
+
export * from './claims-helpers-care-plan.js';
|
|
6
|
+
export * from './claims-helpers-clinical-impression.js';
|
|
7
|
+
export * from './claims-helpers-communication.js';
|
|
8
|
+
export * from './claims-helpers-composition.js';
|
|
9
|
+
export * from './claims-helpers-condition.js';
|
|
10
|
+
export * from './claims-helpers-coverage.js';
|
|
11
|
+
export * from './claims-helpers-device-use-statement.js';
|
|
12
|
+
export * from './claims-helpers-device.js';
|
|
13
|
+
export * from './claims-helpers-diagnostic-report.js';
|
|
14
|
+
export * from './claims-helpers-document-reference.js';
|
|
15
|
+
export * from './claims-helpers-encounter.js';
|
|
16
|
+
export * from './claims-helpers-flag.js';
|
|
17
|
+
export * from './claims-helpers-immunization.js';
|
|
18
|
+
export * from './claims-helpers-location.js';
|
|
19
|
+
export * from './claims-helpers-medication-statement.js';
|
|
20
|
+
export * from './claims-helpers-observation.js';
|
|
21
|
+
export * from './claims-helpers-organization.js';
|
|
22
|
+
export * from './claims-helpers-procedure.js';
|
|
23
|
+
export * from './claims-helpers-related-person.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from './claim-list-helpers.js';
|
|
2
|
+
export * from './claims-helpers-allergy-intolerance.js';
|
|
3
|
+
export * from './claims-helpers-appointment-response.js';
|
|
4
|
+
export * from './claims-helpers-appointment.js';
|
|
5
|
+
export * from './claims-helpers-care-plan.js';
|
|
6
|
+
export * from './claims-helpers-clinical-impression.js';
|
|
7
|
+
export * from './claims-helpers-communication.js';
|
|
8
|
+
export * from './claims-helpers-composition.js';
|
|
9
|
+
export * from './claims-helpers-condition.js';
|
|
10
|
+
export * from './claims-helpers-coverage.js';
|
|
11
|
+
export * from './claims-helpers-device-use-statement.js';
|
|
12
|
+
export * from './claims-helpers-device.js';
|
|
13
|
+
export * from './claims-helpers-diagnostic-report.js';
|
|
14
|
+
export * from './claims-helpers-document-reference.js';
|
|
15
|
+
export * from './claims-helpers-encounter.js';
|
|
16
|
+
export * from './claims-helpers-flag.js';
|
|
17
|
+
export * from './claims-helpers-immunization.js';
|
|
18
|
+
export * from './claims-helpers-location.js';
|
|
19
|
+
export * from './claims-helpers-medication-statement.js';
|
|
20
|
+
export * from './claims-helpers-observation.js';
|
|
21
|
+
export * from './claims-helpers-organization.js';
|
|
22
|
+
export * from './claims-helpers-procedure.js';
|
|
23
|
+
export * from './claims-helpers-related-person.js';
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import type { ClaimSpec } from './claim-types.js';
|
|
2
|
+
/**
|
|
3
|
+
* FHIR R4 `AllergyIntolerance.criticality` codes describing potential future harm.
|
|
4
|
+
*
|
|
5
|
+
* @see https://hl7.org/fhir/R4/allergyintolerance.html
|
|
6
|
+
* @see https://build.fhir.org/ig/HL7/fhir-ips/en/StructureDefinition-AllergyIntolerance-uv-ips.html
|
|
7
|
+
*/
|
|
8
|
+
export declare const AllergyIntoleranceCriticalities: {
|
|
9
|
+
readonly Low: "low";
|
|
10
|
+
readonly High: "high";
|
|
11
|
+
readonly UnableToAssess: "unable-to-assess";
|
|
12
|
+
};
|
|
13
|
+
export type AllergyIntoleranceCriticality = typeof AllergyIntoleranceCriticalities[keyof typeof AllergyIntoleranceCriticalities];
|
|
14
|
+
/**
|
|
15
|
+
* FHIR R4 `AllergyIntolerance.reaction.severity` codes for one observed reaction event.
|
|
16
|
+
*
|
|
17
|
+
* @see https://hl7.org/fhir/R4/valueset-reaction-event-severity.html
|
|
18
|
+
* @see https://build.fhir.org/ig/HL7/fhir-ips/en/StructureDefinition-AllergyIntolerance-uv-ips.html
|
|
19
|
+
*/
|
|
20
|
+
export declare const AllergyIntoleranceReactionSeverities: {
|
|
21
|
+
readonly Mild: "mild";
|
|
22
|
+
readonly Moderate: "moderate";
|
|
23
|
+
readonly Severe: "severe";
|
|
24
|
+
};
|
|
25
|
+
export type AllergyIntoleranceReactionSeverity = typeof AllergyIntoleranceReactionSeverities[keyof typeof AllergyIntoleranceReactionSeverities];
|
|
26
|
+
export declare const AllergyIntoleranceClaim: {
|
|
27
|
+
readonly Identifier: "AllergyIntolerance.identifier";
|
|
28
|
+
readonly Subject: "AllergyIntolerance.subject";
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated Use `AllergyIntolerance.subject`.
|
|
31
|
+
* Kept as compatibility alias because FHIR native field is `patient`.
|
|
32
|
+
*/
|
|
33
|
+
readonly Patient: "AllergyIntolerance.patient";
|
|
34
|
+
readonly Code: "AllergyIntolerance.code";
|
|
35
|
+
/** Local-language label projected to FHIR `AllergyIntolerance.code.text`. */
|
|
36
|
+
readonly CodeText: "AllergyIntolerance.code-text";
|
|
37
|
+
/** Alias that makes the local-language purpose explicit to UI authors. */
|
|
38
|
+
readonly CodeTextLocal: "AllergyIntolerance.code-text";
|
|
39
|
+
/** English/international terminology label projected to `code.coding.display`. */
|
|
40
|
+
readonly CodeDisplay: "AllergyIntolerance.code-display";
|
|
41
|
+
readonly ClinicalStatus: "AllergyIntolerance.clinical-status";
|
|
42
|
+
readonly VerificationStatus: "AllergyIntolerance.verification-status";
|
|
43
|
+
readonly Category: "AllergyIntolerance.category";
|
|
44
|
+
/**
|
|
45
|
+
* Canonical CSV/list of related contained resource references or identifiers.
|
|
46
|
+
*/
|
|
47
|
+
readonly ContainedReferenceList: "AllergyIntolerance.contained-reference-list";
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated Use `ContainedReferenceList`.
|
|
50
|
+
*/
|
|
51
|
+
readonly ContainedResourceList: "AllergyIntolerance.contained-resource-list";
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Use `ContainedReferenceList`.
|
|
54
|
+
*/
|
|
55
|
+
readonly ContainedDocuments: "AllergyIntolerance.contained-documents";
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated Use `ContainedReferenceList`.
|
|
58
|
+
*/
|
|
59
|
+
readonly AttachmentContentIds: "AllergyIntolerance.attachment-content-ids";
|
|
60
|
+
readonly Criticality: "AllergyIntolerance.criticality";
|
|
61
|
+
readonly Asserter: "AllergyIntolerance.asserter";
|
|
62
|
+
readonly RecordedDate: "AllergyIntolerance.date";
|
|
63
|
+
readonly LastOccurrence: "AllergyIntolerance.last-date";
|
|
64
|
+
readonly Manifestation: "AllergyIntolerance.manifestation";
|
|
65
|
+
readonly Onset: "AllergyIntolerance.onset";
|
|
66
|
+
readonly Route: "AllergyIntolerance.route";
|
|
67
|
+
readonly Severity: "AllergyIntolerance.severity";
|
|
68
|
+
readonly Type: "AllergyIntolerance.type";
|
|
69
|
+
readonly OnsetDateTime: "AllergyIntolerance.onset-datetime";
|
|
70
|
+
readonly Recorder: "AllergyIntolerance.recorder";
|
|
71
|
+
};
|
|
72
|
+
export type AllergyIntoleranceClaimKey = typeof AllergyIntoleranceClaim[keyof typeof AllergyIntoleranceClaim];
|
|
73
|
+
export declare enum AllergyIntoleranceClaimsFhirApi {
|
|
74
|
+
Identifier = "org.hl7.fhir.api.AllergyIntolerance.identifier",
|
|
75
|
+
Subject = "org.hl7.fhir.api.AllergyIntolerance.subject",
|
|
76
|
+
Patient = "org.hl7.fhir.api.AllergyIntolerance.patient",
|
|
77
|
+
Code = "org.hl7.fhir.api.AllergyIntolerance.code",
|
|
78
|
+
CodeText = "org.hl7.fhir.api.AllergyIntolerance.code-text",
|
|
79
|
+
CodeDisplay = "org.hl7.fhir.api.AllergyIntolerance.code-display",
|
|
80
|
+
ClinicalStatus = "org.hl7.fhir.api.AllergyIntolerance.clinical-status",
|
|
81
|
+
VerificationStatus = "org.hl7.fhir.api.AllergyIntolerance.verification-status",
|
|
82
|
+
Category = "org.hl7.fhir.api.AllergyIntolerance.category",
|
|
83
|
+
Criticality = "org.hl7.fhir.api.AllergyIntolerance.criticality",
|
|
84
|
+
Asserter = "org.hl7.fhir.api.AllergyIntolerance.asserter",
|
|
85
|
+
Date = "org.hl7.fhir.api.AllergyIntolerance.date",
|
|
86
|
+
LastDate = "org.hl7.fhir.api.AllergyIntolerance.last-date",
|
|
87
|
+
Manifestation = "org.hl7.fhir.api.AllergyIntolerance.manifestation",
|
|
88
|
+
Onset = "org.hl7.fhir.api.AllergyIntolerance.onset",
|
|
89
|
+
Route = "org.hl7.fhir.api.AllergyIntolerance.route",
|
|
90
|
+
Severity = "org.hl7.fhir.api.AllergyIntolerance.severity",
|
|
91
|
+
Type = "org.hl7.fhir.api.AllergyIntolerance.type",
|
|
92
|
+
OnsetDateTime = "org.hl7.fhir.api.AllergyIntolerance.onset-datetime",
|
|
93
|
+
Recorder = "org.hl7.fhir.api.AllergyIntolerance.recorder"
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Resource-specific FHIR R4 search parameters. UI presentation remains governed
|
|
97
|
+
* separately by the applicable IPS StructureDefinition and its obligations.
|
|
98
|
+
*
|
|
99
|
+
* @see https://hl7.org/fhir/R4/allergyintolerance.html#search
|
|
100
|
+
* @see https://build.fhir.org/ig/HL7/fhir-ips/en/CapabilityStatement-ips-server.html
|
|
101
|
+
*/
|
|
102
|
+
export declare const AllergyIntoleranceSearchParamNames: {
|
|
103
|
+
readonly Identifier: "identifier";
|
|
104
|
+
readonly Subject: "subject";
|
|
105
|
+
readonly Patient: "patient";
|
|
106
|
+
readonly Code: "code";
|
|
107
|
+
readonly CodeText: "code-text";
|
|
108
|
+
readonly CodeDisplay: "code-display";
|
|
109
|
+
readonly ClinicalStatus: "clinical-status";
|
|
110
|
+
readonly VerificationStatus: "verification-status";
|
|
111
|
+
readonly Category: "category";
|
|
112
|
+
readonly Criticality: "criticality";
|
|
113
|
+
readonly Asserter: "asserter";
|
|
114
|
+
readonly Date: "date";
|
|
115
|
+
readonly LastDate: "last-date";
|
|
116
|
+
readonly Manifestation: "manifestation";
|
|
117
|
+
readonly Onset: "onset";
|
|
118
|
+
readonly Route: "route";
|
|
119
|
+
readonly Severity: "severity";
|
|
120
|
+
readonly Type: "type";
|
|
121
|
+
readonly OnsetDateTime: "onset-datetime";
|
|
122
|
+
readonly Recorder: "recorder";
|
|
123
|
+
};
|
|
124
|
+
export type AllergyIntoleranceSearchParamName = typeof AllergyIntoleranceSearchParamNames[keyof typeof AllergyIntoleranceSearchParamNames];
|
|
125
|
+
export declare const AllergyIntoleranceSearchParamToClaimKey: Record<AllergyIntoleranceSearchParamName, AllergyIntoleranceClaimsFhirApi>;
|
|
126
|
+
export declare const AllergyIntoleranceClaimsFhirApiMap: {
|
|
127
|
+
"org.hl7.fhir.api.AllergyIntolerance.identifier": StringConstructor;
|
|
128
|
+
"org.hl7.fhir.api.AllergyIntolerance.subject": StringConstructor;
|
|
129
|
+
"org.hl7.fhir.api.AllergyIntolerance.patient": StringConstructor;
|
|
130
|
+
"org.hl7.fhir.api.AllergyIntolerance.code": StringConstructor;
|
|
131
|
+
"org.hl7.fhir.api.AllergyIntolerance.code-text": StringConstructor;
|
|
132
|
+
"org.hl7.fhir.api.AllergyIntolerance.code-display": StringConstructor;
|
|
133
|
+
"org.hl7.fhir.api.AllergyIntolerance.clinical-status": StringConstructor;
|
|
134
|
+
"org.hl7.fhir.api.AllergyIntolerance.verification-status": StringConstructor;
|
|
135
|
+
"org.hl7.fhir.api.AllergyIntolerance.category": StringConstructor;
|
|
136
|
+
"org.hl7.fhir.api.AllergyIntolerance.criticality": StringConstructor;
|
|
137
|
+
"org.hl7.fhir.api.AllergyIntolerance.asserter": StringConstructor;
|
|
138
|
+
"org.hl7.fhir.api.AllergyIntolerance.date": StringConstructor;
|
|
139
|
+
"org.hl7.fhir.api.AllergyIntolerance.last-date": StringConstructor;
|
|
140
|
+
"org.hl7.fhir.api.AllergyIntolerance.manifestation": StringConstructor;
|
|
141
|
+
"org.hl7.fhir.api.AllergyIntolerance.onset": StringConstructor;
|
|
142
|
+
"org.hl7.fhir.api.AllergyIntolerance.route": StringConstructor;
|
|
143
|
+
"org.hl7.fhir.api.AllergyIntolerance.severity": StringConstructor;
|
|
144
|
+
"org.hl7.fhir.api.AllergyIntolerance.type": StringConstructor;
|
|
145
|
+
"org.hl7.fhir.api.AllergyIntolerance.onset-datetime": StringConstructor;
|
|
146
|
+
"org.hl7.fhir.api.AllergyIntolerance.recorder": StringConstructor;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* http://hl7.org/fhir/uv/ips/ValueSet/allergies-intolerances-uv-ips
|
|
150
|
+
* Snomed IPS codes for allergy and intolerance categories: food, medication, environment, biologic.
|
|
151
|
+
* WHO ATC codes V01AA for Allergen extracts
|
|
152
|
+
*/
|
|
153
|
+
export declare const AllergyIntoleranceClaimSpecs: ClaimSpec[];
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
// Copyright 2026 Conéctate Soluciones y Aplicaciones SL under the Apache License, Version 2.0.
|
|
2
|
+
// File: src/models/interoperable-claims/allergy-intolerance-claims.ts
|
|
3
|
+
// Always create JSDoc, do not use strings inline in keys nor values, use types instead, and reuse the data test examples.
|
|
4
|
+
/**
|
|
5
|
+
* FHIR R4 `AllergyIntolerance.criticality` codes describing potential future harm.
|
|
6
|
+
*
|
|
7
|
+
* @see https://hl7.org/fhir/R4/allergyintolerance.html
|
|
8
|
+
* @see https://build.fhir.org/ig/HL7/fhir-ips/en/StructureDefinition-AllergyIntolerance-uv-ips.html
|
|
9
|
+
*/
|
|
10
|
+
export const AllergyIntoleranceCriticalities = {
|
|
11
|
+
Low: 'low',
|
|
12
|
+
High: 'high',
|
|
13
|
+
UnableToAssess: 'unable-to-assess',
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* FHIR R4 `AllergyIntolerance.reaction.severity` codes for one observed reaction event.
|
|
17
|
+
*
|
|
18
|
+
* @see https://hl7.org/fhir/R4/valueset-reaction-event-severity.html
|
|
19
|
+
* @see https://build.fhir.org/ig/HL7/fhir-ips/en/StructureDefinition-AllergyIntolerance-uv-ips.html
|
|
20
|
+
*/
|
|
21
|
+
export const AllergyIntoleranceReactionSeverities = {
|
|
22
|
+
Mild: 'mild',
|
|
23
|
+
Moderate: 'moderate',
|
|
24
|
+
Severe: 'severe',
|
|
25
|
+
};
|
|
26
|
+
export const AllergyIntoleranceClaim = {
|
|
27
|
+
Identifier: 'AllergyIntolerance.identifier',
|
|
28
|
+
Subject: 'AllergyIntolerance.subject',
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated Use `AllergyIntolerance.subject`.
|
|
31
|
+
* Kept as compatibility alias because FHIR native field is `patient`.
|
|
32
|
+
*/
|
|
33
|
+
Patient: 'AllergyIntolerance.patient',
|
|
34
|
+
Code: 'AllergyIntolerance.code',
|
|
35
|
+
/** Local-language label projected to FHIR `AllergyIntolerance.code.text`. */
|
|
36
|
+
CodeText: 'AllergyIntolerance.code-text',
|
|
37
|
+
/** Alias that makes the local-language purpose explicit to UI authors. */
|
|
38
|
+
CodeTextLocal: 'AllergyIntolerance.code-text',
|
|
39
|
+
/** English/international terminology label projected to `code.coding.display`. */
|
|
40
|
+
CodeDisplay: 'AllergyIntolerance.code-display',
|
|
41
|
+
ClinicalStatus: 'AllergyIntolerance.clinical-status',
|
|
42
|
+
VerificationStatus: 'AllergyIntolerance.verification-status',
|
|
43
|
+
Category: 'AllergyIntolerance.category',
|
|
44
|
+
/**
|
|
45
|
+
* Canonical CSV/list of related contained resource references or identifiers.
|
|
46
|
+
*/
|
|
47
|
+
ContainedReferenceList: 'AllergyIntolerance.contained-reference-list',
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated Use `ContainedReferenceList`.
|
|
50
|
+
*/
|
|
51
|
+
ContainedResourceList: 'AllergyIntolerance.contained-resource-list',
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Use `ContainedReferenceList`.
|
|
54
|
+
*/
|
|
55
|
+
ContainedDocuments: 'AllergyIntolerance.contained-documents',
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated Use `ContainedReferenceList`.
|
|
58
|
+
*/
|
|
59
|
+
AttachmentContentIds: 'AllergyIntolerance.attachment-content-ids',
|
|
60
|
+
Criticality: 'AllergyIntolerance.criticality',
|
|
61
|
+
Asserter: 'AllergyIntolerance.asserter',
|
|
62
|
+
RecordedDate: 'AllergyIntolerance.date',
|
|
63
|
+
LastOccurrence: 'AllergyIntolerance.last-date',
|
|
64
|
+
Manifestation: 'AllergyIntolerance.manifestation',
|
|
65
|
+
Onset: 'AllergyIntolerance.onset',
|
|
66
|
+
Route: 'AllergyIntolerance.route',
|
|
67
|
+
Severity: 'AllergyIntolerance.severity',
|
|
68
|
+
Type: 'AllergyIntolerance.type',
|
|
69
|
+
OnsetDateTime: 'AllergyIntolerance.onset-datetime',
|
|
70
|
+
Recorder: 'AllergyIntolerance.recorder',
|
|
71
|
+
};
|
|
72
|
+
export var AllergyIntoleranceClaimsFhirApi;
|
|
73
|
+
(function (AllergyIntoleranceClaimsFhirApi) {
|
|
74
|
+
AllergyIntoleranceClaimsFhirApi["Identifier"] = "org.hl7.fhir.api.AllergyIntolerance.identifier";
|
|
75
|
+
AllergyIntoleranceClaimsFhirApi["Subject"] = "org.hl7.fhir.api.AllergyIntolerance.subject";
|
|
76
|
+
AllergyIntoleranceClaimsFhirApi["Patient"] = "org.hl7.fhir.api.AllergyIntolerance.patient";
|
|
77
|
+
AllergyIntoleranceClaimsFhirApi["Code"] = "org.hl7.fhir.api.AllergyIntolerance.code";
|
|
78
|
+
AllergyIntoleranceClaimsFhirApi["CodeText"] = "org.hl7.fhir.api.AllergyIntolerance.code-text";
|
|
79
|
+
AllergyIntoleranceClaimsFhirApi["CodeDisplay"] = "org.hl7.fhir.api.AllergyIntolerance.code-display";
|
|
80
|
+
AllergyIntoleranceClaimsFhirApi["ClinicalStatus"] = "org.hl7.fhir.api.AllergyIntolerance.clinical-status";
|
|
81
|
+
AllergyIntoleranceClaimsFhirApi["VerificationStatus"] = "org.hl7.fhir.api.AllergyIntolerance.verification-status";
|
|
82
|
+
AllergyIntoleranceClaimsFhirApi["Category"] = "org.hl7.fhir.api.AllergyIntolerance.category";
|
|
83
|
+
AllergyIntoleranceClaimsFhirApi["Criticality"] = "org.hl7.fhir.api.AllergyIntolerance.criticality";
|
|
84
|
+
AllergyIntoleranceClaimsFhirApi["Asserter"] = "org.hl7.fhir.api.AllergyIntolerance.asserter";
|
|
85
|
+
AllergyIntoleranceClaimsFhirApi["Date"] = "org.hl7.fhir.api.AllergyIntolerance.date";
|
|
86
|
+
AllergyIntoleranceClaimsFhirApi["LastDate"] = "org.hl7.fhir.api.AllergyIntolerance.last-date";
|
|
87
|
+
AllergyIntoleranceClaimsFhirApi["Manifestation"] = "org.hl7.fhir.api.AllergyIntolerance.manifestation";
|
|
88
|
+
AllergyIntoleranceClaimsFhirApi["Onset"] = "org.hl7.fhir.api.AllergyIntolerance.onset";
|
|
89
|
+
AllergyIntoleranceClaimsFhirApi["Route"] = "org.hl7.fhir.api.AllergyIntolerance.route";
|
|
90
|
+
AllergyIntoleranceClaimsFhirApi["Severity"] = "org.hl7.fhir.api.AllergyIntolerance.severity";
|
|
91
|
+
AllergyIntoleranceClaimsFhirApi["Type"] = "org.hl7.fhir.api.AllergyIntolerance.type";
|
|
92
|
+
AllergyIntoleranceClaimsFhirApi["OnsetDateTime"] = "org.hl7.fhir.api.AllergyIntolerance.onset-datetime";
|
|
93
|
+
AllergyIntoleranceClaimsFhirApi["Recorder"] = "org.hl7.fhir.api.AllergyIntolerance.recorder";
|
|
94
|
+
})(AllergyIntoleranceClaimsFhirApi || (AllergyIntoleranceClaimsFhirApi = {}));
|
|
95
|
+
/**
|
|
96
|
+
* Resource-specific FHIR R4 search parameters. UI presentation remains governed
|
|
97
|
+
* separately by the applicable IPS StructureDefinition and its obligations.
|
|
98
|
+
*
|
|
99
|
+
* @see https://hl7.org/fhir/R4/allergyintolerance.html#search
|
|
100
|
+
* @see https://build.fhir.org/ig/HL7/fhir-ips/en/CapabilityStatement-ips-server.html
|
|
101
|
+
*/
|
|
102
|
+
export const AllergyIntoleranceSearchParamNames = {
|
|
103
|
+
Identifier: 'identifier',
|
|
104
|
+
Subject: 'subject',
|
|
105
|
+
Patient: 'patient',
|
|
106
|
+
Code: 'code',
|
|
107
|
+
CodeText: 'code-text',
|
|
108
|
+
CodeDisplay: 'code-display',
|
|
109
|
+
ClinicalStatus: 'clinical-status',
|
|
110
|
+
VerificationStatus: 'verification-status',
|
|
111
|
+
Category: 'category',
|
|
112
|
+
Criticality: 'criticality',
|
|
113
|
+
Asserter: 'asserter',
|
|
114
|
+
Date: 'date',
|
|
115
|
+
LastDate: 'last-date',
|
|
116
|
+
Manifestation: 'manifestation',
|
|
117
|
+
Onset: 'onset',
|
|
118
|
+
Route: 'route',
|
|
119
|
+
Severity: 'severity',
|
|
120
|
+
Type: 'type',
|
|
121
|
+
OnsetDateTime: 'onset-datetime',
|
|
122
|
+
Recorder: 'recorder',
|
|
123
|
+
};
|
|
124
|
+
export const AllergyIntoleranceSearchParamToClaimKey = {
|
|
125
|
+
[AllergyIntoleranceSearchParamNames.Identifier]: AllergyIntoleranceClaimsFhirApi.Identifier,
|
|
126
|
+
[AllergyIntoleranceSearchParamNames.Subject]: AllergyIntoleranceClaimsFhirApi.Subject,
|
|
127
|
+
[AllergyIntoleranceSearchParamNames.Patient]: AllergyIntoleranceClaimsFhirApi.Patient,
|
|
128
|
+
[AllergyIntoleranceSearchParamNames.Code]: AllergyIntoleranceClaimsFhirApi.Code,
|
|
129
|
+
[AllergyIntoleranceSearchParamNames.CodeText]: AllergyIntoleranceClaimsFhirApi.CodeText,
|
|
130
|
+
[AllergyIntoleranceSearchParamNames.CodeDisplay]: AllergyIntoleranceClaimsFhirApi.CodeDisplay,
|
|
131
|
+
[AllergyIntoleranceSearchParamNames.ClinicalStatus]: AllergyIntoleranceClaimsFhirApi.ClinicalStatus,
|
|
132
|
+
[AllergyIntoleranceSearchParamNames.VerificationStatus]: AllergyIntoleranceClaimsFhirApi.VerificationStatus,
|
|
133
|
+
[AllergyIntoleranceSearchParamNames.Category]: AllergyIntoleranceClaimsFhirApi.Category,
|
|
134
|
+
[AllergyIntoleranceSearchParamNames.Criticality]: AllergyIntoleranceClaimsFhirApi.Criticality,
|
|
135
|
+
[AllergyIntoleranceSearchParamNames.Asserter]: AllergyIntoleranceClaimsFhirApi.Asserter,
|
|
136
|
+
[AllergyIntoleranceSearchParamNames.Date]: AllergyIntoleranceClaimsFhirApi.Date,
|
|
137
|
+
[AllergyIntoleranceSearchParamNames.LastDate]: AllergyIntoleranceClaimsFhirApi.LastDate,
|
|
138
|
+
[AllergyIntoleranceSearchParamNames.Manifestation]: AllergyIntoleranceClaimsFhirApi.Manifestation,
|
|
139
|
+
[AllergyIntoleranceSearchParamNames.Onset]: AllergyIntoleranceClaimsFhirApi.Onset,
|
|
140
|
+
[AllergyIntoleranceSearchParamNames.Route]: AllergyIntoleranceClaimsFhirApi.Route,
|
|
141
|
+
[AllergyIntoleranceSearchParamNames.Severity]: AllergyIntoleranceClaimsFhirApi.Severity,
|
|
142
|
+
[AllergyIntoleranceSearchParamNames.Type]: AllergyIntoleranceClaimsFhirApi.Type,
|
|
143
|
+
[AllergyIntoleranceSearchParamNames.OnsetDateTime]: AllergyIntoleranceClaimsFhirApi.OnsetDateTime,
|
|
144
|
+
[AllergyIntoleranceSearchParamNames.Recorder]: AllergyIntoleranceClaimsFhirApi.Recorder,
|
|
145
|
+
};
|
|
146
|
+
export const AllergyIntoleranceClaimsFhirApiMap = {
|
|
147
|
+
[AllergyIntoleranceClaimsFhirApi.Identifier]: String,
|
|
148
|
+
[AllergyIntoleranceClaimsFhirApi.Subject]: String,
|
|
149
|
+
[AllergyIntoleranceClaimsFhirApi.Patient]: String,
|
|
150
|
+
[AllergyIntoleranceClaimsFhirApi.Code]: String,
|
|
151
|
+
[AllergyIntoleranceClaimsFhirApi.CodeText]: String,
|
|
152
|
+
[AllergyIntoleranceClaimsFhirApi.CodeDisplay]: String,
|
|
153
|
+
[AllergyIntoleranceClaimsFhirApi.ClinicalStatus]: String,
|
|
154
|
+
[AllergyIntoleranceClaimsFhirApi.VerificationStatus]: String,
|
|
155
|
+
[AllergyIntoleranceClaimsFhirApi.Category]: String,
|
|
156
|
+
[AllergyIntoleranceClaimsFhirApi.Criticality]: String,
|
|
157
|
+
[AllergyIntoleranceClaimsFhirApi.Asserter]: String,
|
|
158
|
+
[AllergyIntoleranceClaimsFhirApi.Date]: String,
|
|
159
|
+
[AllergyIntoleranceClaimsFhirApi.LastDate]: String,
|
|
160
|
+
[AllergyIntoleranceClaimsFhirApi.Manifestation]: String,
|
|
161
|
+
[AllergyIntoleranceClaimsFhirApi.Onset]: String,
|
|
162
|
+
[AllergyIntoleranceClaimsFhirApi.Route]: String,
|
|
163
|
+
[AllergyIntoleranceClaimsFhirApi.Severity]: String,
|
|
164
|
+
[AllergyIntoleranceClaimsFhirApi.Type]: String,
|
|
165
|
+
[AllergyIntoleranceClaimsFhirApi.OnsetDateTime]: String,
|
|
166
|
+
[AllergyIntoleranceClaimsFhirApi.Recorder]: String,
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* http://hl7.org/fhir/uv/ips/ValueSet/allergies-intolerances-uv-ips
|
|
170
|
+
* Snomed IPS codes for allergy and intolerance categories: food, medication, environment, biologic.
|
|
171
|
+
* WHO ATC codes V01AA for Allergen extracts
|
|
172
|
+
*/
|
|
173
|
+
export const AllergyIntoleranceClaimSpecs = [
|
|
174
|
+
{ key: AllergyIntoleranceClaim.Identifier, meaning: 'Business identifier for allergy record.', example: 'ALG-0001' },
|
|
175
|
+
{ key: AllergyIntoleranceClaim.Subject, meaning: 'Canonical subject reference (maps to FHIR AllergyIntolerance.patient.reference).', example: 'urn:uuid:<UUID-V4>' },
|
|
176
|
+
{ key: AllergyIntoleranceClaim.Patient, meaning: 'Deprecated alias of subject for compatibility.', example: 'urn:uuid:<UUID-V4>' },
|
|
177
|
+
{ key: AllergyIntoleranceClaim.Code, meaning: 'Allergy or intolerance code.', example: 'http://snomed.info/sct|227493005' },
|
|
178
|
+
{ key: AllergyIntoleranceClaim.CodeText, meaning: 'Local-language allergy label matching the resource language.', example: 'Penicilina' },
|
|
179
|
+
{ key: AllergyIntoleranceClaim.CodeDisplay, meaning: 'English/international terminology display.', example: 'Penicillin' },
|
|
180
|
+
{ key: AllergyIntoleranceClaim.ClinicalStatus, meaning: 'Clinical status code.', example: 'active' },
|
|
181
|
+
{ key: AllergyIntoleranceClaim.VerificationStatus, meaning: 'Verification status code.', example: 'confirmed' },
|
|
182
|
+
{ key: AllergyIntoleranceClaim.Category, meaning: 'Category value.', example: 'food' },
|
|
183
|
+
{ key: AllergyIntoleranceClaim.Criticality, meaning: 'Potential future harm if exposed to the substance.', example: AllergyIntoleranceCriticalities.High },
|
|
184
|
+
{ key: AllergyIntoleranceClaim.Asserter, meaning: 'Source of the allergy assertion.', example: 'Practitioner/practitioner-123' },
|
|
185
|
+
{ key: AllergyIntoleranceClaim.RecordedDate, meaning: 'Date the allergy record was first captured.', example: '2026-01-10T10:00:00Z' },
|
|
186
|
+
{ key: AllergyIntoleranceClaim.LastOccurrence, meaning: 'Date of the most recent known reaction.', example: '2026-01-09T18:00:00Z' },
|
|
187
|
+
{ key: AllergyIntoleranceClaim.Manifestation, meaning: 'Clinical manifestation of the reaction.', example: 'http://snomed.info/sct|247472004' },
|
|
188
|
+
{ key: AllergyIntoleranceClaim.Onset, meaning: 'Searchable onset value for the allergy or reaction.', example: '2026-01-10' },
|
|
189
|
+
{ key: AllergyIntoleranceClaim.Route, meaning: 'Exposure route for the reaction.', example: 'http://snomed.info/sct|26643006' },
|
|
190
|
+
{ key: AllergyIntoleranceClaim.Severity, meaning: 'Severity of one observed reaction event, distinct from future-risk criticality.', example: AllergyIntoleranceReactionSeverities.Moderate },
|
|
191
|
+
{ key: AllergyIntoleranceClaim.Type, meaning: 'Allergy or intolerance classification.', example: 'allergy' },
|
|
192
|
+
{ key: AllergyIntoleranceClaim.OnsetDateTime, meaning: 'Onset date/time.', example: '2026-01-10T10:00:00Z' },
|
|
193
|
+
{ key: AllergyIntoleranceClaim.Recorder, meaning: 'Recorder reference.', example: 'did:web:<domain>:organization:taxid:<TAXID>:member:<MEMBER_ID>:<roleCode>' },
|
|
194
|
+
];
|