fhir-data-utils-ts 0.2.4 → 0.3.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/.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 +30 -0
- package/README.md +39 -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 +130 -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 +33 -0
- package/dist/converters/convert-shared.js +181 -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,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
|
+
];
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the flat claims structure for a FHIR Appointment resource, separating
|
|
3
|
+
* version-specific data model fields from version-agnostic API search parameters.
|
|
4
|
+
*
|
|
5
|
+
* This model aligns with FHIR R5 conventions (using `note.text` instead of `comment`)
|
|
6
|
+
* for forward compatibility and consistency with other resources like Communication.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Claims are never version-specific. Kept as a source-compatible
|
|
11
|
+
* alias whose values now use the expanded `org.hl7.fhir.api` vocabulary.
|
|
12
|
+
*
|
|
13
|
+
* @basedon https://www.hl7.org/fhir/R4/appointment.html
|
|
14
|
+
*/
|
|
15
|
+
export declare enum AppointmentClaimsFhirR4Core {
|
|
16
|
+
Identifier = "org.hl7.fhir.api.Appointment.identifier",
|
|
17
|
+
Status = "org.hl7.fhir.api.Appointment.status",
|
|
18
|
+
CancelationReason = "org.hl7.fhir.api.Appointment.cancelation-reason",
|
|
19
|
+
ServiceCategory = "org.hl7.fhir.api.Appointment.service-category",
|
|
20
|
+
ServiceType = "org.hl7.fhir.api.Appointment.service-type",
|
|
21
|
+
Specialty = "org.hl7.fhir.api.Appointment.specialty",
|
|
22
|
+
AppointmentType = "org.hl7.fhir.api.Appointment.appointment-type",
|
|
23
|
+
ReasonCode = "org.hl7.fhir.api.Appointment.reason-code",
|
|
24
|
+
ReasonReference = "org.hl7.fhir.api.Appointment.reason-reference",
|
|
25
|
+
Priority = "org.hl7.fhir.api.Appointment.priority",
|
|
26
|
+
Description = "org.hl7.fhir.api.Appointment.description",
|
|
27
|
+
SupportingInformation = "org.hl7.fhir.api.Appointment.supporting-information",
|
|
28
|
+
Start = "org.hl7.fhir.api.Appointment.start",
|
|
29
|
+
End = "org.hl7.fhir.api.Appointment.end",
|
|
30
|
+
MinutesDuration = "org.hl7.fhir.api.Appointment.minutes-duration",
|
|
31
|
+
Slot = "org.hl7.fhir.api.Appointment.slot",
|
|
32
|
+
Created = "org.hl7.fhir.api.Appointment.created",
|
|
33
|
+
NoteText = "org.hl7.fhir.api.Appointment.note-text",
|
|
34
|
+
PatientInstruction = "org.hl7.fhir.api.Appointment.patient-instruction",
|
|
35
|
+
BasedOn = "org.hl7.fhir.api.Appointment.based-on",
|
|
36
|
+
ParticipantActor = "org.hl7.fhir.api.Appointment.participant-actor",
|
|
37
|
+
ParticipantRequired = "org.hl7.fhir.api.Appointment.participant-required",
|
|
38
|
+
ParticipantStatus = "org.hl7.fhir.api.Appointment.participant-status",
|
|
39
|
+
ParticipantType = "org.hl7.fhir.api.Appointment.participant-type",
|
|
40
|
+
RequestedPeriod = "org.hl7.fhir.api.Appointment.requested-period",
|
|
41
|
+
ResourceId = "org.hl7.fhir.api.Appointment.resource-id"
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Contains claims representing the standard, version-agnostic API search parameters for an Appointment.
|
|
45
|
+
*
|
|
46
|
+
* @basedon https://www.hl7.org/fhir/appointment.html#search
|
|
47
|
+
*/
|
|
48
|
+
export declare enum AppointmentClaimsFhirApi {
|
|
49
|
+
Actor = "org.hl7.fhir.api.Appointment.actor",
|
|
50
|
+
AppointmentType = "org.hl7.fhir.api.Appointment.appointment-type",
|
|
51
|
+
BasedOn = "org.hl7.fhir.api.Appointment.based-on",
|
|
52
|
+
Date = "org.hl7.fhir.api.Appointment.date",
|
|
53
|
+
Identifier = "org.hl7.fhir.api.Appointment.identifier",
|
|
54
|
+
Location = "org.hl7.fhir.api.Appointment.location",
|
|
55
|
+
PartStatus = "org.hl7.fhir.api.Appointment.part-status",
|
|
56
|
+
Patient = "org.hl7.fhir.api.Appointment.patient",
|
|
57
|
+
Practitioner = "org.hl7.fhir.api.Appointment.practitioner",
|
|
58
|
+
ReasonCode = "org.hl7.fhir.api.Appointment.reason-code",
|
|
59
|
+
ReasonReference = "org.hl7.fhir.api.Appointment.reason-reference",
|
|
60
|
+
ServiceCategory = "org.hl7.fhir.api.Appointment.service-category",
|
|
61
|
+
ServiceType = "org.hl7.fhir.api.Appointment.service-type",
|
|
62
|
+
Slot = "org.hl7.fhir.api.Appointment.slot",
|
|
63
|
+
Specialty = "org.hl7.fhir.api.Appointment.specialty",
|
|
64
|
+
Status = "org.hl7.fhir.api.Appointment.status",
|
|
65
|
+
SupportingInfo = "org.hl7.fhir.api.Appointment.supporting-info"
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Extends the standard API search parameters with custom parameters derived from core data model fields.
|
|
69
|
+
*/
|
|
70
|
+
export declare enum AppointmentClaimsFhirApiExtended {
|
|
71
|
+
Actor = "org.hl7.fhir.api.Appointment.actor",
|
|
72
|
+
AppointmentType = "org.hl7.fhir.api.Appointment.appointment-type",
|
|
73
|
+
BasedOn = "org.hl7.fhir.api.Appointment.based-on",
|
|
74
|
+
Date = "org.hl7.fhir.api.Appointment.date",
|
|
75
|
+
Identifier = "org.hl7.fhir.api.Appointment.identifier",
|
|
76
|
+
Location = "org.hl7.fhir.api.Appointment.location",
|
|
77
|
+
PartStatus = "org.hl7.fhir.api.Appointment.part-status",
|
|
78
|
+
Patient = "org.hl7.fhir.api.Appointment.patient",
|
|
79
|
+
Practitioner = "org.hl7.fhir.api.Appointment.practitioner",
|
|
80
|
+
ReasonCode = "org.hl7.fhir.api.Appointment.reason-code",
|
|
81
|
+
ReasonReference = "org.hl7.fhir.api.Appointment.reason-reference",
|
|
82
|
+
ServiceCategory = "org.hl7.fhir.api.Appointment.service-category",
|
|
83
|
+
ServiceType = "org.hl7.fhir.api.Appointment.service-type",
|
|
84
|
+
Slot = "org.hl7.fhir.api.Appointment.slot",
|
|
85
|
+
Specialty = "org.hl7.fhir.api.Appointment.specialty",
|
|
86
|
+
Status = "org.hl7.fhir.api.Appointment.status",
|
|
87
|
+
SupportingInfo = "org.hl7.fhir.api.Appointment.supporting-info",
|
|
88
|
+
CancelationReason = "org.hl7.fhir.api.Appointment.cancelation-reason",
|
|
89
|
+
MinutesDuration = "org.hl7.fhir.api.Appointment.minutes-duration",
|
|
90
|
+
Priority = "org.hl7.fhir.api.Appointment.priority",
|
|
91
|
+
Created = "org.hl7.fhir.api.Appointment.created",
|
|
92
|
+
Description = "org.hl7.fhir.api.Appointment.description",
|
|
93
|
+
NoteText = "org.hl7.fhir.api.Appointment.note-text"
|
|
94
|
+
}
|
|
95
|
+
export declare const AppointmentClaimsFhirR4CoreMap: {
|
|
96
|
+
"org.hl7.fhir.api.Appointment.identifier": StringConstructor;
|
|
97
|
+
"org.hl7.fhir.api.Appointment.status": StringConstructor;
|
|
98
|
+
"org.hl7.fhir.api.Appointment.cancelation-reason": StringConstructor;
|
|
99
|
+
"org.hl7.fhir.api.Appointment.service-category": StringConstructor;
|
|
100
|
+
"org.hl7.fhir.api.Appointment.service-type": StringConstructor;
|
|
101
|
+
"org.hl7.fhir.api.Appointment.specialty": StringConstructor;
|
|
102
|
+
"org.hl7.fhir.api.Appointment.appointment-type": StringConstructor;
|
|
103
|
+
"org.hl7.fhir.api.Appointment.reason-code": StringConstructor;
|
|
104
|
+
"org.hl7.fhir.api.Appointment.reason-reference": StringConstructor;
|
|
105
|
+
"org.hl7.fhir.api.Appointment.priority": NumberConstructor;
|
|
106
|
+
"org.hl7.fhir.api.Appointment.description": StringConstructor;
|
|
107
|
+
"org.hl7.fhir.api.Appointment.supporting-information": StringConstructor;
|
|
108
|
+
"org.hl7.fhir.api.Appointment.start": StringConstructor;
|
|
109
|
+
"org.hl7.fhir.api.Appointment.end": StringConstructor;
|
|
110
|
+
"org.hl7.fhir.api.Appointment.minutes-duration": NumberConstructor;
|
|
111
|
+
"org.hl7.fhir.api.Appointment.slot": StringConstructor;
|
|
112
|
+
"org.hl7.fhir.api.Appointment.created": StringConstructor;
|
|
113
|
+
"org.hl7.fhir.api.Appointment.note-text": StringConstructor;
|
|
114
|
+
"org.hl7.fhir.api.Appointment.patient-instruction": StringConstructor;
|
|
115
|
+
"org.hl7.fhir.api.Appointment.based-on": StringConstructor;
|
|
116
|
+
"org.hl7.fhir.api.Appointment.participant-actor": StringConstructor;
|
|
117
|
+
"org.hl7.fhir.api.Appointment.participant-required": StringConstructor;
|
|
118
|
+
"org.hl7.fhir.api.Appointment.participant-status": StringConstructor;
|
|
119
|
+
"org.hl7.fhir.api.Appointment.participant-type": StringConstructor;
|
|
120
|
+
"org.hl7.fhir.api.Appointment.requested-period": StringConstructor;
|
|
121
|
+
"org.hl7.fhir.api.Appointment.resource-id": StringConstructor;
|
|
122
|
+
};
|
|
123
|
+
export declare const AppointmentClaimsFhirApiMap: {
|
|
124
|
+
"org.hl7.fhir.api.Appointment.actor": StringConstructor;
|
|
125
|
+
"org.hl7.fhir.api.Appointment.appointment-type": StringConstructor;
|
|
126
|
+
"org.hl7.fhir.api.Appointment.based-on": StringConstructor;
|
|
127
|
+
"org.hl7.fhir.api.Appointment.date": StringConstructor;
|
|
128
|
+
"org.hl7.fhir.api.Appointment.identifier": StringConstructor;
|
|
129
|
+
"org.hl7.fhir.api.Appointment.location": StringConstructor;
|
|
130
|
+
"org.hl7.fhir.api.Appointment.part-status": StringConstructor;
|
|
131
|
+
"org.hl7.fhir.api.Appointment.patient": StringConstructor;
|
|
132
|
+
"org.hl7.fhir.api.Appointment.practitioner": StringConstructor;
|
|
133
|
+
"org.hl7.fhir.api.Appointment.reason-code": StringConstructor;
|
|
134
|
+
"org.hl7.fhir.api.Appointment.reason-reference": StringConstructor;
|
|
135
|
+
"org.hl7.fhir.api.Appointment.service-category": StringConstructor;
|
|
136
|
+
"org.hl7.fhir.api.Appointment.service-type": StringConstructor;
|
|
137
|
+
"org.hl7.fhir.api.Appointment.slot": StringConstructor;
|
|
138
|
+
"org.hl7.fhir.api.Appointment.specialty": StringConstructor;
|
|
139
|
+
"org.hl7.fhir.api.Appointment.status": StringConstructor;
|
|
140
|
+
"org.hl7.fhir.api.Appointment.supporting-info": StringConstructor;
|
|
141
|
+
};
|
|
142
|
+
export declare const AppointmentClaimsFhirApiExtendedMap: {
|
|
143
|
+
"org.hl7.fhir.api.Appointment.cancelation-reason": StringConstructor;
|
|
144
|
+
"org.hl7.fhir.api.Appointment.minutes-duration": NumberConstructor;
|
|
145
|
+
"org.hl7.fhir.api.Appointment.priority": NumberConstructor;
|
|
146
|
+
"org.hl7.fhir.api.Appointment.created": StringConstructor;
|
|
147
|
+
"org.hl7.fhir.api.Appointment.description": StringConstructor;
|
|
148
|
+
"org.hl7.fhir.api.Appointment.note-text": StringConstructor;
|
|
149
|
+
"org.hl7.fhir.api.Appointment.actor": StringConstructor;
|
|
150
|
+
"org.hl7.fhir.api.Appointment.appointment-type": StringConstructor;
|
|
151
|
+
"org.hl7.fhir.api.Appointment.based-on": StringConstructor;
|
|
152
|
+
"org.hl7.fhir.api.Appointment.date": StringConstructor;
|
|
153
|
+
"org.hl7.fhir.api.Appointment.identifier": StringConstructor;
|
|
154
|
+
"org.hl7.fhir.api.Appointment.location": StringConstructor;
|
|
155
|
+
"org.hl7.fhir.api.Appointment.part-status": StringConstructor;
|
|
156
|
+
"org.hl7.fhir.api.Appointment.patient": StringConstructor;
|
|
157
|
+
"org.hl7.fhir.api.Appointment.practitioner": StringConstructor;
|
|
158
|
+
"org.hl7.fhir.api.Appointment.reason-code": StringConstructor;
|
|
159
|
+
"org.hl7.fhir.api.Appointment.reason-reference": StringConstructor;
|
|
160
|
+
"org.hl7.fhir.api.Appointment.service-category": StringConstructor;
|
|
161
|
+
"org.hl7.fhir.api.Appointment.service-type": StringConstructor;
|
|
162
|
+
"org.hl7.fhir.api.Appointment.slot": StringConstructor;
|
|
163
|
+
"org.hl7.fhir.api.Appointment.specialty": StringConstructor;
|
|
164
|
+
"org.hl7.fhir.api.Appointment.status": StringConstructor;
|
|
165
|
+
"org.hl7.fhir.api.Appointment.supporting-info": StringConstructor;
|
|
166
|
+
};
|
|
167
|
+
export declare const AppointmentClaim: {
|
|
168
|
+
readonly Identifier: "Appointment.identifier";
|
|
169
|
+
readonly Status: "Appointment.status";
|
|
170
|
+
readonly ServiceCategory: "Appointment.service-category";
|
|
171
|
+
readonly ServiceType: "Appointment.service-type";
|
|
172
|
+
readonly Specialty: "Appointment.specialty";
|
|
173
|
+
readonly AppointmentType: "Appointment.appointment-type";
|
|
174
|
+
readonly ReasonCode: "Appointment.reason-code";
|
|
175
|
+
readonly ReasonReference: "Appointment.reason-reference";
|
|
176
|
+
readonly Description: "Appointment.description";
|
|
177
|
+
readonly Start: "Appointment.start";
|
|
178
|
+
readonly End: "Appointment.end";
|
|
179
|
+
readonly MinutesDuration: "Appointment.minutes-duration";
|
|
180
|
+
readonly Created: "Appointment.created";
|
|
181
|
+
readonly NoteText: "Appointment.note-text";
|
|
182
|
+
readonly PatientInstruction: "Appointment.patient-instruction";
|
|
183
|
+
readonly BasedOn: "Appointment.based-on";
|
|
184
|
+
readonly ParticipantActor: "Appointment.actor";
|
|
185
|
+
readonly ParticipantStatus: "Appointment.part-status";
|
|
186
|
+
readonly ParticipantType: "Appointment.participant-type";
|
|
187
|
+
};
|
|
188
|
+
export type AppointmentClaimKey = typeof AppointmentClaim[keyof typeof AppointmentClaim];
|
|
189
|
+
/**
|
|
190
|
+
* Defines the possible values for the `status` field on a FHIR Appointment resource.
|
|
191
|
+
* @basedon http://hl7.org/fhir/R4/appointment.html#status
|
|
192
|
+
* @basedon http://hl7.org/fhir/valueset-appointmentstatus.html
|
|
193
|
+
*/
|
|
194
|
+
export declare enum AppointmentStatus {
|
|
195
|
+
Proposed = "proposed",
|
|
196
|
+
Pending = "pending",
|
|
197
|
+
Booked = "booked",
|
|
198
|
+
Arrived = "arrived",
|
|
199
|
+
Fulfilled = "fulfilled",
|
|
200
|
+
Cancelled = "cancelled",
|
|
201
|
+
NoShow = "noshow",
|
|
202
|
+
EnteredInError = "entered-in-error",
|
|
203
|
+
CheckedIn = "checked-in",
|
|
204
|
+
Waitlist = "waitlist"
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Defines the possible values for the `participant.required` field on a FHIR Appointment resource.
|
|
208
|
+
* @basedon http://hl7.org/fhir/R4/appointment.html#participant
|
|
209
|
+
* @basedon http://hl7.org/fhir/valueset-participantrequired.html
|
|
210
|
+
*/
|
|
211
|
+
export declare enum AppointmentParticipantRequired {
|
|
212
|
+
Required = "required",
|
|
213
|
+
Optional = "optional",
|
|
214
|
+
InformationOnly = "information-only"
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Defines the possible values for the `participant.status` field on a FHIR Appointment resource.
|
|
218
|
+
* @basedon http://hl7.org/fhir/R4/appointment.html#participant
|
|
219
|
+
* @basedon http://hl7.org/fhir/valueset-participationstatus.html
|
|
220
|
+
*/
|
|
221
|
+
export declare enum AppointmentParticipantStatus {
|
|
222
|
+
Accepted = "accepted",
|
|
223
|
+
Declined = "declined",
|
|
224
|
+
Tentative = "tentative",
|
|
225
|
+
NeedsAction = "needs-action"
|
|
226
|
+
}
|