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,16 @@
|
|
|
1
|
+
export declare enum ConditionParameters {
|
|
2
|
+
AbatementBoolean = "org.hl7.fhir.api.Condition.abatement-boolean",
|
|
3
|
+
AbatementDate = "org.hl7.fhir.api.Condition.abatement-date",
|
|
4
|
+
AbatementString = "org.hl7.fhir.api.Condition.abatement-string",
|
|
5
|
+
AssertedDate = "org.hl7.fhir.api.Condition.asserted-date",
|
|
6
|
+
BodySite = "org.hl7.fhir.api.Condition.body-site",
|
|
7
|
+
Category = "org.hl7.fhir.api.Condition.category",
|
|
8
|
+
ClinicalStatus = "org.hl7.fhir.api.Condition.clinical-status",
|
|
9
|
+
Code = "org.hl7.fhir.api.Condition.code",
|
|
10
|
+
Identifier = "org.hl7.fhir.api.Condition.identifier",
|
|
11
|
+
OnsetDate = "org.hl7.fhir.api.Condition.onset-date",
|
|
12
|
+
Severity = "org.hl7.fhir.api.Condition.severity",
|
|
13
|
+
Stage = "org.hl7.fhir.api.Condition.stage",
|
|
14
|
+
Subject = "org.hl7.fhir.api.Condition.subject",
|
|
15
|
+
VerificationStatus = "org.hl7.fhir.api.Condition.verification-status"
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export var ConditionParameters;
|
|
2
|
+
(function (ConditionParameters) {
|
|
3
|
+
ConditionParameters["AbatementBoolean"] = "org.hl7.fhir.api.Condition.abatement-boolean";
|
|
4
|
+
ConditionParameters["AbatementDate"] = "org.hl7.fhir.api.Condition.abatement-date";
|
|
5
|
+
ConditionParameters["AbatementString"] = "org.hl7.fhir.api.Condition.abatement-string";
|
|
6
|
+
ConditionParameters["AssertedDate"] = "org.hl7.fhir.api.Condition.asserted-date";
|
|
7
|
+
ConditionParameters["BodySite"] = "org.hl7.fhir.api.Condition.body-site";
|
|
8
|
+
ConditionParameters["Category"] = "org.hl7.fhir.api.Condition.category";
|
|
9
|
+
ConditionParameters["ClinicalStatus"] = "org.hl7.fhir.api.Condition.clinical-status";
|
|
10
|
+
ConditionParameters["Code"] = "org.hl7.fhir.api.Condition.code";
|
|
11
|
+
ConditionParameters["Identifier"] = "org.hl7.fhir.api.Condition.identifier";
|
|
12
|
+
ConditionParameters["OnsetDate"] = "org.hl7.fhir.api.Condition.onset-date";
|
|
13
|
+
ConditionParameters["Severity"] = "org.hl7.fhir.api.Condition.severity";
|
|
14
|
+
ConditionParameters["Stage"] = "org.hl7.fhir.api.Condition.stage";
|
|
15
|
+
ConditionParameters["Subject"] = "org.hl7.fhir.api.Condition.subject";
|
|
16
|
+
ConditionParameters["VerificationStatus"] = "org.hl7.fhir.api.Condition.verification-status";
|
|
17
|
+
})(ConditionParameters || (ConditionParameters = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum DetectedIssueParameters {
|
|
2
|
+
Author = "org.hl7.fhir.api.DetectedIssue.author",
|
|
3
|
+
Code = "org.hl7.fhir.api.DetectedIssue.code",
|
|
4
|
+
Identified = "org.hl7.fhir.api.DetectedIssue.identified",
|
|
5
|
+
Identifier = "org.hl7.fhir.api.DetectedIssue.identifier",
|
|
6
|
+
Implicated = "org.hl7.fhir.api.DetectedIssue.implicated",
|
|
7
|
+
Patient = "org.hl7.fhir.api.DetectedIssue.patient",
|
|
8
|
+
Status = "org.hl7.fhir.api.DetectedIssue.status"
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// DetectedIssue Parameters
|
|
2
|
+
export var DetectedIssueParameters;
|
|
3
|
+
(function (DetectedIssueParameters) {
|
|
4
|
+
DetectedIssueParameters["Author"] = "org.hl7.fhir.api.DetectedIssue.author";
|
|
5
|
+
DetectedIssueParameters["Code"] = "org.hl7.fhir.api.DetectedIssue.code";
|
|
6
|
+
DetectedIssueParameters["Identified"] = "org.hl7.fhir.api.DetectedIssue.identified";
|
|
7
|
+
DetectedIssueParameters["Identifier"] = "org.hl7.fhir.api.DetectedIssue.identifier";
|
|
8
|
+
DetectedIssueParameters["Implicated"] = "org.hl7.fhir.api.DetectedIssue.implicated";
|
|
9
|
+
DetectedIssueParameters["Patient"] = "org.hl7.fhir.api.DetectedIssue.patient";
|
|
10
|
+
DetectedIssueParameters["Status"] = "org.hl7.fhir.api.DetectedIssue.status";
|
|
11
|
+
})(DetectedIssueParameters || (DetectedIssueParameters = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum DiagnosticReportParameters {
|
|
2
|
+
BasedOn = "org.hl7.fhir.api.DiagnosticReport.based-on",
|
|
3
|
+
Category = "org.hl7.fhir.api.DiagnosticReport.category",
|
|
4
|
+
Code = "org.hl7.fhir.api.DiagnosticReport.code",
|
|
5
|
+
Date = "org.hl7.fhir.api.DiagnosticReport.date",
|
|
6
|
+
Encounter = "org.hl7.fhir.api.DiagnosticReport.encounter",
|
|
7
|
+
Identifier = "org.hl7.fhir.api.DiagnosticReport.identifier",
|
|
8
|
+
ImagingStudy = "org.hl7.fhir.api.DiagnosticReport.imaging-study",
|
|
9
|
+
Patient = "org.hl7.fhir.api.DiagnosticReport.patient",
|
|
10
|
+
Performer = "org.hl7.fhir.api.DiagnosticReport.performer",
|
|
11
|
+
Result = "org.hl7.fhir.api.DiagnosticReport.result",
|
|
12
|
+
Status = "org.hl7.fhir.api.DiagnosticReport.status"
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export var DiagnosticReportParameters;
|
|
2
|
+
(function (DiagnosticReportParameters) {
|
|
3
|
+
DiagnosticReportParameters["BasedOn"] = "org.hl7.fhir.api.DiagnosticReport.based-on";
|
|
4
|
+
DiagnosticReportParameters["Category"] = "org.hl7.fhir.api.DiagnosticReport.category";
|
|
5
|
+
DiagnosticReportParameters["Code"] = "org.hl7.fhir.api.DiagnosticReport.code";
|
|
6
|
+
DiagnosticReportParameters["Date"] = "org.hl7.fhir.api.DiagnosticReport.date";
|
|
7
|
+
DiagnosticReportParameters["Encounter"] = "org.hl7.fhir.api.DiagnosticReport.encounter";
|
|
8
|
+
DiagnosticReportParameters["Identifier"] = "org.hl7.fhir.api.DiagnosticReport.identifier";
|
|
9
|
+
DiagnosticReportParameters["ImagingStudy"] = "org.hl7.fhir.api.DiagnosticReport.imaging-study";
|
|
10
|
+
DiagnosticReportParameters["Patient"] = "org.hl7.fhir.api.DiagnosticReport.patient";
|
|
11
|
+
DiagnosticReportParameters["Performer"] = "org.hl7.fhir.api.DiagnosticReport.performer";
|
|
12
|
+
DiagnosticReportParameters["Result"] = "org.hl7.fhir.api.DiagnosticReport.result";
|
|
13
|
+
DiagnosticReportParameters["Status"] = "org.hl7.fhir.api.DiagnosticReport.status";
|
|
14
|
+
})(DiagnosticReportParameters || (DiagnosticReportParameters = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum EncounterParameters {
|
|
2
|
+
Appointment = "org.hl7.fhir.api.Encounter.appointment",
|
|
3
|
+
Class = "org.hl7.fhir.api.Encounter.class",
|
|
4
|
+
Diagnosis = "org.hl7.fhir.api.Encounter.diagnosis",
|
|
5
|
+
EpisodeOfCare = "org.hl7.fhir.api.Encounter.episode-of-care",
|
|
6
|
+
Identifier = "org.hl7.fhir.api.Encounter.identifier",
|
|
7
|
+
Location = "org.hl7.fhir.api.Encounter.location",
|
|
8
|
+
Participant = "org.hl7.fhir.api.Encounter.participant",
|
|
9
|
+
Patient = "org.hl7.fhir.api.Encounter.patient",
|
|
10
|
+
ReasonCode = "org.hl7.fhir.api.Encounter.reason-code",
|
|
11
|
+
ReasonReference = "org.hl7.fhir.api.Encounter.reason-reference",
|
|
12
|
+
ServiceProvider = "org.hl7.fhir.api.Encounter.service-provider",
|
|
13
|
+
Status = "org.hl7.fhir.api.Encounter.status",
|
|
14
|
+
Type = "org.hl7.fhir.api.Encounter.type"
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Encounter Parameters
|
|
2
|
+
export var EncounterParameters;
|
|
3
|
+
(function (EncounterParameters) {
|
|
4
|
+
EncounterParameters["Appointment"] = "org.hl7.fhir.api.Encounter.appointment";
|
|
5
|
+
EncounterParameters["Class"] = "org.hl7.fhir.api.Encounter.class";
|
|
6
|
+
EncounterParameters["Diagnosis"] = "org.hl7.fhir.api.Encounter.diagnosis";
|
|
7
|
+
EncounterParameters["EpisodeOfCare"] = "org.hl7.fhir.api.Encounter.episode-of-care";
|
|
8
|
+
EncounterParameters["Identifier"] = "org.hl7.fhir.api.Encounter.identifier";
|
|
9
|
+
EncounterParameters["Location"] = "org.hl7.fhir.api.Encounter.location";
|
|
10
|
+
EncounterParameters["Participant"] = "org.hl7.fhir.api.Encounter.participant";
|
|
11
|
+
EncounterParameters["Patient"] = "org.hl7.fhir.api.Encounter.patient";
|
|
12
|
+
EncounterParameters["ReasonCode"] = "org.hl7.fhir.api.Encounter.reason-code";
|
|
13
|
+
EncounterParameters["ReasonReference"] = "org.hl7.fhir.api.Encounter.reason-reference";
|
|
14
|
+
EncounterParameters["ServiceProvider"] = "org.hl7.fhir.api.Encounter.service-provider";
|
|
15
|
+
EncounterParameters["Status"] = "org.hl7.fhir.api.Encounter.status";
|
|
16
|
+
EncounterParameters["Type"] = "org.hl7.fhir.api.Encounter.type";
|
|
17
|
+
})(EncounterParameters || (EncounterParameters = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum ImmunizationParameters {
|
|
2
|
+
Date = "org.hl7.fhir.api.Immunization.date",
|
|
3
|
+
Identifier = "org.hl7.fhir.api.Immunization.identifier",
|
|
4
|
+
Location = "org.hl7.fhir.api.Immunization.location",
|
|
5
|
+
LotNumber = "org.hl7.fhir.api.Immunization.lot-number",
|
|
6
|
+
Manufacturer = "org.hl7.fhir.api.Immunization.manufacturer",
|
|
7
|
+
Patient = "org.hl7.fhir.api.Immunization.patient",
|
|
8
|
+
Performer = "org.hl7.fhir.api.Immunization.performer",
|
|
9
|
+
Reaction = "org.hl7.fhir.api.Immunization.reaction",
|
|
10
|
+
Status = "org.hl7.fhir.api.Immunization.status",
|
|
11
|
+
VaccineCode = "org.hl7.fhir.api.Immunization.vaccine-code",
|
|
12
|
+
ManufacturerDisplay = "org.hl7.fhir.api.Immunization.manufacturer-display",
|
|
13
|
+
TargetDisease = "org.hl7.fhir.api.Immunization.target-disease"
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Immunization Parameters
|
|
2
|
+
export var ImmunizationParameters;
|
|
3
|
+
(function (ImmunizationParameters) {
|
|
4
|
+
ImmunizationParameters["Date"] = "org.hl7.fhir.api.Immunization.date";
|
|
5
|
+
ImmunizationParameters["Identifier"] = "org.hl7.fhir.api.Immunization.identifier";
|
|
6
|
+
ImmunizationParameters["Location"] = "org.hl7.fhir.api.Immunization.location";
|
|
7
|
+
ImmunizationParameters["LotNumber"] = "org.hl7.fhir.api.Immunization.lot-number";
|
|
8
|
+
ImmunizationParameters["Manufacturer"] = "org.hl7.fhir.api.Immunization.manufacturer";
|
|
9
|
+
ImmunizationParameters["Patient"] = "org.hl7.fhir.api.Immunization.patient";
|
|
10
|
+
ImmunizationParameters["Performer"] = "org.hl7.fhir.api.Immunization.performer";
|
|
11
|
+
ImmunizationParameters["Reaction"] = "org.hl7.fhir.api.Immunization.reaction";
|
|
12
|
+
ImmunizationParameters["Status"] = "org.hl7.fhir.api.Immunization.status";
|
|
13
|
+
ImmunizationParameters["VaccineCode"] = "org.hl7.fhir.api.Immunization.vaccine-code";
|
|
14
|
+
ImmunizationParameters["ManufacturerDisplay"] = "org.hl7.fhir.api.Immunization.manufacturer-display";
|
|
15
|
+
ImmunizationParameters["TargetDisease"] = "org.hl7.fhir.api.Immunization.target-disease";
|
|
16
|
+
})(ImmunizationParameters || (ImmunizationParameters = {}));
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare enum MedicationParameters {
|
|
2
|
+
Code = "org.hl7.fhir.api.Medication.code",
|
|
3
|
+
Identifier = "org.hl7.fhir.api.Medication.identifier",
|
|
4
|
+
Manufacturer = "org.hl7.fhir.api.Medication.manufacturer",
|
|
5
|
+
Status = "org.hl7.fhir.api.Medication.status"
|
|
6
|
+
}
|
|
7
|
+
export declare enum MedicationStatementParameters {
|
|
8
|
+
Category = "org.hl7.fhir.api.MedicationStatement.category",
|
|
9
|
+
Medication = "org.hl7.fhir.api.MedicationStatement.medication",
|
|
10
|
+
Identifier = "org.hl7.fhir.api.MedicationStatement.identifier",
|
|
11
|
+
Patient = "org.hl7.fhir.api.MedicationStatement.patient",
|
|
12
|
+
Status = "org.hl7.fhir.api.MedicationStatement.status",
|
|
13
|
+
Subject = "org.hl7.fhir.api.MedicationStatement.subject"
|
|
14
|
+
}
|
|
15
|
+
export declare enum MedicationDispenseParameters {
|
|
16
|
+
Identifier = "org.hl7.fhir.api.MedicationDispense.identifier",
|
|
17
|
+
Medication = "org.hl7.fhir.api.MedicationDispense.medication",
|
|
18
|
+
Patient = "org.hl7.fhir.api.MedicationDispense.patient",
|
|
19
|
+
Status = "org.hl7.fhir.api.MedicationDispense.status"
|
|
20
|
+
}
|
|
21
|
+
export declare enum MedicationRequestParameters {
|
|
22
|
+
AuthoredOn = "org.hl7.fhir.api.MedicationRequest.authored-on",
|
|
23
|
+
Medication = "org.hl7.fhir.api.MedicationRequest.medication",
|
|
24
|
+
Patient = "org.hl7.fhir.api.MedicationRequest.patient",
|
|
25
|
+
Status = "org.hl7.fhir.api.MedicationRequest.status",
|
|
26
|
+
Subject = "org.hl7.fhir.api.MedicationRequest.subject"
|
|
27
|
+
}
|
|
28
|
+
export declare enum MedicationAdministrationParameters {
|
|
29
|
+
Identifier = "org.hl7.fhir.api.MedicationAdministration.identifier",
|
|
30
|
+
Medication = "org.hl7.fhir.api.MedicationAdministration.medication",
|
|
31
|
+
Patient = "org.hl7.fhir.api.MedicationAdministration.patient",
|
|
32
|
+
Status = "org.hl7.fhir.api.MedicationAdministration.status",
|
|
33
|
+
EffectiveTime = "org.hl7.fhir.api.MedicationAdministration.effective-time",
|
|
34
|
+
Subject = "org.hl7.fhir.api.MedicationAdministration.subject"
|
|
35
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// Medication Parameters
|
|
2
|
+
export var MedicationParameters;
|
|
3
|
+
(function (MedicationParameters) {
|
|
4
|
+
MedicationParameters["Code"] = "org.hl7.fhir.api.Medication.code";
|
|
5
|
+
MedicationParameters["Identifier"] = "org.hl7.fhir.api.Medication.identifier";
|
|
6
|
+
MedicationParameters["Manufacturer"] = "org.hl7.fhir.api.Medication.manufacturer";
|
|
7
|
+
MedicationParameters["Status"] = "org.hl7.fhir.api.Medication.status";
|
|
8
|
+
})(MedicationParameters || (MedicationParameters = {}));
|
|
9
|
+
// MedicationStatement Parameters
|
|
10
|
+
export var MedicationStatementParameters;
|
|
11
|
+
(function (MedicationStatementParameters) {
|
|
12
|
+
MedicationStatementParameters["Category"] = "org.hl7.fhir.api.MedicationStatement.category";
|
|
13
|
+
MedicationStatementParameters["Medication"] = "org.hl7.fhir.api.MedicationStatement.medication";
|
|
14
|
+
MedicationStatementParameters["Identifier"] = "org.hl7.fhir.api.MedicationStatement.identifier";
|
|
15
|
+
MedicationStatementParameters["Patient"] = "org.hl7.fhir.api.MedicationStatement.patient";
|
|
16
|
+
MedicationStatementParameters["Status"] = "org.hl7.fhir.api.MedicationStatement.status";
|
|
17
|
+
MedicationStatementParameters["Subject"] = "org.hl7.fhir.api.MedicationStatement.subject";
|
|
18
|
+
})(MedicationStatementParameters || (MedicationStatementParameters = {}));
|
|
19
|
+
// MedicationDispense Parameters
|
|
20
|
+
export var MedicationDispenseParameters;
|
|
21
|
+
(function (MedicationDispenseParameters) {
|
|
22
|
+
MedicationDispenseParameters["Identifier"] = "org.hl7.fhir.api.MedicationDispense.identifier";
|
|
23
|
+
MedicationDispenseParameters["Medication"] = "org.hl7.fhir.api.MedicationDispense.medication";
|
|
24
|
+
MedicationDispenseParameters["Patient"] = "org.hl7.fhir.api.MedicationDispense.patient";
|
|
25
|
+
MedicationDispenseParameters["Status"] = "org.hl7.fhir.api.MedicationDispense.status";
|
|
26
|
+
})(MedicationDispenseParameters || (MedicationDispenseParameters = {}));
|
|
27
|
+
// MedicationRequest Parameters
|
|
28
|
+
export var MedicationRequestParameters;
|
|
29
|
+
(function (MedicationRequestParameters) {
|
|
30
|
+
MedicationRequestParameters["AuthoredOn"] = "org.hl7.fhir.api.MedicationRequest.authored-on";
|
|
31
|
+
MedicationRequestParameters["Medication"] = "org.hl7.fhir.api.MedicationRequest.medication";
|
|
32
|
+
MedicationRequestParameters["Patient"] = "org.hl7.fhir.api.MedicationRequest.patient";
|
|
33
|
+
MedicationRequestParameters["Status"] = "org.hl7.fhir.api.MedicationRequest.status";
|
|
34
|
+
MedicationRequestParameters["Subject"] = "org.hl7.fhir.api.MedicationRequest.subject";
|
|
35
|
+
})(MedicationRequestParameters || (MedicationRequestParameters = {}));
|
|
36
|
+
// MedicationAdministration Parameters
|
|
37
|
+
export var MedicationAdministrationParameters;
|
|
38
|
+
(function (MedicationAdministrationParameters) {
|
|
39
|
+
MedicationAdministrationParameters["Identifier"] = "org.hl7.fhir.api.MedicationAdministration.identifier";
|
|
40
|
+
MedicationAdministrationParameters["Medication"] = "org.hl7.fhir.api.MedicationAdministration.medication";
|
|
41
|
+
MedicationAdministrationParameters["Patient"] = "org.hl7.fhir.api.MedicationAdministration.patient";
|
|
42
|
+
MedicationAdministrationParameters["Status"] = "org.hl7.fhir.api.MedicationAdministration.status";
|
|
43
|
+
MedicationAdministrationParameters["EffectiveTime"] = "org.hl7.fhir.api.MedicationAdministration.effective-time";
|
|
44
|
+
MedicationAdministrationParameters["Subject"] = "org.hl7.fhir.api.MedicationAdministration.subject";
|
|
45
|
+
})(MedicationAdministrationParameters || (MedicationAdministrationParameters = {}));
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* # Personal Observations (org.hl7.fhir.api) — Flat Claims Contract
|
|
3
|
+
*
|
|
4
|
+
* This file defines the canonical and contextualized flat-claim keys for collecting **self-reported**
|
|
5
|
+
* Observations (non-clinical/personal data) using `@context = "org.hl7.fhir.api"`.
|
|
6
|
+
*
|
|
7
|
+
* ## 1) Contextualized vs Canonical keys
|
|
8
|
+
*
|
|
9
|
+
* When a claims object includes:
|
|
10
|
+
*
|
|
11
|
+
* ```json
|
|
12
|
+
* { "@context": "org.hl7.fhir.api", ... }
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* clients MAY send **contextualized** keys like:
|
|
16
|
+
* - `"Observation.code"`
|
|
17
|
+
* - `"Observation.value-quantity"`
|
|
18
|
+
*
|
|
19
|
+
* The SDK/gateway MUST normalize them to **canonical** keys before storage/matching/hashing:
|
|
20
|
+
* - `"org.hl7.fhir.api.Observation.code"`
|
|
21
|
+
* - `"org.hl7.fhir.api.Observation.value-quantity"`
|
|
22
|
+
*
|
|
23
|
+
* Interoperable keys from other namespaces (e.g., `org.ilo.isco.*`) MUST NOT be prefixed.
|
|
24
|
+
*
|
|
25
|
+
* ## 2) Naming convention: FHIR Search Parameters style
|
|
26
|
+
*
|
|
27
|
+
* For values, we follow the **FHIR Search Parameters** naming whenever possible:
|
|
28
|
+
* - `Observation.value-string` (string)
|
|
29
|
+
* - `Observation.value-concept` (token "system|code")
|
|
30
|
+
* - `Observation.value-date` (date/dateTime/period expressed as ISO strings)
|
|
31
|
+
* - `Observation.value-quantity` (quantity search syntax)
|
|
32
|
+
*
|
|
33
|
+
* This makes the contract familiar and easy to map to FHIR R4/R5/R6 resources later.
|
|
34
|
+
*
|
|
35
|
+
* ## 3) Quantity encoding (FHIR search syntax)
|
|
36
|
+
*
|
|
37
|
+
* `Observation.value-quantity` uses the FHIR `quantity` parameter syntax:
|
|
38
|
+
*
|
|
39
|
+
* - `{prefix}{number}`
|
|
40
|
+
* - `{prefix}{number}|{system}|{code}`
|
|
41
|
+
* - `{prefix}{number}||{code}`
|
|
42
|
+
*
|
|
43
|
+
* Where:
|
|
44
|
+
* - `prefix` is optional: `eq, ne, gt, lt, ge, le, sa, eb, ap`
|
|
45
|
+
* - `system|code` is typically UCUM (`http://unitsofmeasure.org`)
|
|
46
|
+
*
|
|
47
|
+
* ### Repeated parameters (ranges) in flat-claims
|
|
48
|
+
*
|
|
49
|
+
* In URLs, FHIR often repeats a parameter for ranges, e.g.:
|
|
50
|
+
* `?value-quantity=ge60|...|kg&value-quantity=le90|...|kg`
|
|
51
|
+
*
|
|
52
|
+
* In flat-claims (JSON), we represent repetition as a **comma-separated list**:
|
|
53
|
+
*
|
|
54
|
+
* ```json
|
|
55
|
+
* "Observation.value-quantity": "ge60|http://unitsofmeasure.org|kg,le90|http://unitsofmeasure.org|kg"
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* Each comma-separated item MUST be a valid FHIR quantity expression.
|
|
59
|
+
*
|
|
60
|
+
* ### UCUM defaulting rule (platform-specific)
|
|
61
|
+
*
|
|
62
|
+
* This platform MAY treat missing `system` (`||kg`) as UCUM for common UCUM units:
|
|
63
|
+
*
|
|
64
|
+
* ```json
|
|
65
|
+
* "Observation.value-quantity": "ge60|http://unitsofmeasure.org|kg,le90||kg"
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* IMPORTANT:
|
|
69
|
+
* - In pure FHIR, `||kg` does NOT strictly mean UCUM; it means "match by code (or human unit)".
|
|
70
|
+
* - Here, we **optionally default to UCUM** for developer convenience and interoperability.
|
|
71
|
+
*
|
|
72
|
+
* ## 4) Time semantics: issued vs effective (date*)
|
|
73
|
+
*
|
|
74
|
+
* - `Observation.issued` = when the app recorded/captured the observation (ISO dateTime).
|
|
75
|
+
* - `Observation.date*` fields describe when the finding applies (effective[x]):
|
|
76
|
+
* - `Observation.date` = generic effective date/dateTime (ISO string)
|
|
77
|
+
* - `Observation.date-period` = ISO 8601 interval `start/end` (string)
|
|
78
|
+
* - `Observation.date-when` = EventTiming bucket: `MORN|AFT|EVE|NIGHT`
|
|
79
|
+
* - optional advanced schedule controls are exposed via `Observation.date-*` keys.
|
|
80
|
+
*
|
|
81
|
+
* ## 5) meta-tag convention (UI/AI routing)
|
|
82
|
+
*
|
|
83
|
+
* `Observation.meta-tag` is a comma-separated list of **short English labels** for grouping/routing:
|
|
84
|
+
* - Example: `"Anxiety,Night"`
|
|
85
|
+
*
|
|
86
|
+
* Do NOT place numeric quantities in `meta-tag`. Use `value-*` instead.
|
|
87
|
+
*
|
|
88
|
+
* ## 6) Examples (contextualized claims)
|
|
89
|
+
*
|
|
90
|
+
* ### Example A: "Anxiety at night" (string value + tags)
|
|
91
|
+
* ```json
|
|
92
|
+
* {
|
|
93
|
+
* "@context": "org.hl7.fhir.api",
|
|
94
|
+
* "@type": "Observation:SelfReported",
|
|
95
|
+
* "Observation.subject": "did:web:api.acme.org:individual:<unified-health-identifier>",
|
|
96
|
+
* "Observation.category": "http://terminology.hl7.org/CodeSystem/observation-category|social-history",
|
|
97
|
+
* "Observation.code": "SNOMED|48694002",
|
|
98
|
+
* "Observation.code-userselected": true,
|
|
99
|
+
* "Observation.issued": "2025-11-27T10:00:00Z",
|
|
100
|
+
* "Observation.date-when": "NIGHT",
|
|
101
|
+
* "Observation.value-string": "Feels anxious at night.",
|
|
102
|
+
* "Observation.meta-tag": "Anxiety,Night"
|
|
103
|
+
* }
|
|
104
|
+
* ```
|
|
105
|
+
*
|
|
106
|
+
* ### Example B: "Body weight between 60 and 90 kg" (quantity list)
|
|
107
|
+
* ```json
|
|
108
|
+
* {
|
|
109
|
+
* "@context": "org.hl7.fhir.api",
|
|
110
|
+
* "@type": "Observation:SelfReported",
|
|
111
|
+
* "Observation.subject": "did:web:api.acme.org:individual:<unified-health-identifier>",
|
|
112
|
+
* "Observation.category": "http://terminology.hl7.org/CodeSystem/observation-category|vital-signs",
|
|
113
|
+
* "Observation.code": "LOINC|29463-7",
|
|
114
|
+
* "Observation.value-quantity": "ge60|http://unitsofmeasure.org|kg,le90||kg",
|
|
115
|
+
* "Observation.meta-tag": "Weight"
|
|
116
|
+
* }
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
export declare enum ObservationParameters {
|
|
120
|
+
BasedOn = "org.hl7.fhir.api.Observation.based-on",
|
|
121
|
+
Subject = "org.hl7.fhir.api.Observation.subject",
|
|
122
|
+
Patient = "org.hl7.fhir.api.Observation.patient",
|
|
123
|
+
Category = "org.hl7.fhir.api.Observation.category",
|
|
124
|
+
Identifier = "org.hl7.fhir.api.Observation.identifier",
|
|
125
|
+
Encounter = "org.hl7.fhir.api.Observation.encounter",
|
|
126
|
+
Code = "org.hl7.fhir.api.Observation.code",
|
|
127
|
+
CodeUserSelected = "org.hl7.fhir.api.Observation.code-userselected",
|
|
128
|
+
Method = "org.hl7.fhir.api.Observation.method",
|
|
129
|
+
Performer = "org.hl7.fhir.api.Observation.performer",
|
|
130
|
+
Status = "org.hl7.fhir.api.Observation.status",
|
|
131
|
+
Issued = "org.hl7.fhir.api.Observation.issued",
|
|
132
|
+
Date = "org.hl7.fhir.api.Observation.date",
|
|
133
|
+
DatePeriod = "org.hl7.fhir.api.Observation.date-period",
|
|
134
|
+
DateWhen = "org.hl7.fhir.api.Observation.date-when",
|
|
135
|
+
DateTimeOfDay = "org.hl7.fhir.api.Observation.date-time-of-day",
|
|
136
|
+
DateDayOfWeek = "org.hl7.fhir.api.Observation.date-day-of-week",
|
|
137
|
+
DateBoundsPeriod = "org.hl7.fhir.api.Observation.date-bounds-period",
|
|
138
|
+
DateBoundsDuration = "org.hl7.fhir.api.Observation.date-bounds-duration",
|
|
139
|
+
DateBoundsRange = "org.hl7.fhir.api.Observation.date-bounds-range",
|
|
140
|
+
DateCount = "org.hl7.fhir.api.Observation.date-count",
|
|
141
|
+
DateCountMax = "org.hl7.fhir.api.Observation.date-count-max",
|
|
142
|
+
DateDuration = "org.hl7.fhir.api.Observation.date-duration",
|
|
143
|
+
DateDurationMax = "org.hl7.fhir.api.Observation.date-duration-max",
|
|
144
|
+
DateDurationUnit = "org.hl7.fhir.api.Observation.date-duration-unit",
|
|
145
|
+
DateFrequency = "org.hl7.fhir.api.Observation.date-frequency",
|
|
146
|
+
DateFrequencyMax = "org.hl7.fhir.api.Observation.date-frequency-max",
|
|
147
|
+
DatePeriodValue = "org.hl7.fhir.api.Observation.date-period-value",
|
|
148
|
+
DatePeriodMax = "org.hl7.fhir.api.Observation.date-period-max",
|
|
149
|
+
DatePeriodUnit = "org.hl7.fhir.api.Observation.date-period-unit",
|
|
150
|
+
DateOffset = "org.hl7.fhir.api.Observation.date-offset",
|
|
151
|
+
ValueConcept = "org.hl7.fhir.api.Observation.value-concept",
|
|
152
|
+
ValueDate = "org.hl7.fhir.api.Observation.value-date",
|
|
153
|
+
ValueQuantity = "org.hl7.fhir.api.Observation.value-quantity",
|
|
154
|
+
ValueString = "org.hl7.fhir.api.Observation.value-string",
|
|
155
|
+
MetaTag = "org.hl7.fhir.api.Observation.meta-tag"
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* When `@context` is set to `"org.hl7.fhir.api"`, claim keys MAY be sent in contextualized form
|
|
159
|
+
* (e.g., `"Observation.code"`) by omitting the `@context` namespace prefix.
|
|
160
|
+
* The gateway/SDK MUST normalize them to canonical form (e.g., `"org.hl7.fhir.api.Observation.code"`)
|
|
161
|
+
* before storage, matching, and hashing.
|
|
162
|
+
*/
|
|
163
|
+
export declare enum ClaimsObservationContext {
|
|
164
|
+
/** FHIR claims namespace. Must be "org.hl7.fhir.api". */
|
|
165
|
+
Context = "@context",
|
|
166
|
+
/** Optional discriminator. Example: "Observation:SelfReported". */
|
|
167
|
+
Type = "@type",
|
|
168
|
+
/** Subject DID (the individual the observation is about). */
|
|
169
|
+
Subject = "Observation.subject",
|
|
170
|
+
/** Category token. Example: "http://terminology.hl7.org/CodeSystem/observation-category|social-history". */
|
|
171
|
+
Category = "Observation.category",
|
|
172
|
+
/** Observation identifier (URN). Example: "urn:uuid:11b2c3d4-e5f6-7890-1234-567890abcdef". */
|
|
173
|
+
Identifier = "Observation.identifier",
|
|
174
|
+
/** Observation code token. Example: "SNOMED|48694002" or "LOINC|54728-1". */
|
|
175
|
+
Code = "Observation.code",
|
|
176
|
+
/** True if user explicitly selected the code (picker). */
|
|
177
|
+
CodeUserSelected = "Observation.code-userselected",
|
|
178
|
+
/** Capture timestamp (ISO 8601 dateTime). */
|
|
179
|
+
Issued = "Observation.issued",
|
|
180
|
+
/** Generic effective[x] date filter (ISO date/dateTime). */
|
|
181
|
+
Date = "Observation.date",
|
|
182
|
+
/**
|
|
183
|
+
* ISO 8601 interval "<start>/<end>" where each side is an ISO date or dateTime.
|
|
184
|
+
* Examples:
|
|
185
|
+
* - "2025-01-01/2025-12-31"
|
|
186
|
+
* - "2025-11-27T20:00:00Z/2025-12-27T20:00:00Z"
|
|
187
|
+
*/
|
|
188
|
+
DatePeriod = "Observation.date-period",
|
|
189
|
+
/** Time-of-day bucket (FHIR EventTiming). Allowed: MORN|AFT|EVE|NIGHT. */
|
|
190
|
+
DateWhen = "Observation.date-when",
|
|
191
|
+
/** Specific time of day. Format: "HH:MM" or "HH:MM:SS". */
|
|
192
|
+
DateTimeOfDay = "Observation.date-time-of-day",
|
|
193
|
+
/** Comma-separated weekdays: "mon,tue,wed,thu,fri,sat,sun". */
|
|
194
|
+
DateDayOfWeek = "Observation.date-day-of-week",
|
|
195
|
+
/**
|
|
196
|
+
* ISO 8601 interval "<start>/<end>" where each side is an ISO date or dateTime.
|
|
197
|
+
* Examples:
|
|
198
|
+
* - "2025-01-01/2025-12-31"
|
|
199
|
+
* - "2025-11-27T20:00:00Z/2025-12-27T20:00:00Z"
|
|
200
|
+
*/
|
|
201
|
+
DateBoundsPeriod = "Observation.date-bounds-period",
|
|
202
|
+
/** Timing.repeat.boundsDuration (Duration). Encode as FHIR quantity string. Example: "30|http://unitsofmeasure.org|d" */
|
|
203
|
+
DateBoundsDuration = "Observation.date-bounds-duration",
|
|
204
|
+
/** Timing.repeat.boundsRange (Range). Encode as comma-separated quantity expressions. Example: "ge10|http://unitsofmeasure.org|mg,le20||mg" */
|
|
205
|
+
DateBoundsRange = "Observation.date-bounds-range",
|
|
206
|
+
/** Repeat count. */
|
|
207
|
+
DateCount = "Observation.date-count",
|
|
208
|
+
/** Repeat count max. */
|
|
209
|
+
DateCountMax = "Observation.date-count-max",
|
|
210
|
+
/** Repeat duration (number). */
|
|
211
|
+
DateDuration = "Observation.date-duration",
|
|
212
|
+
/** Repeat duration max (number). */
|
|
213
|
+
DateDurationMax = "Observation.date-duration-max",
|
|
214
|
+
/** Repeat duration unit. Allowed: s|min|h|d|wk|mo|a. */
|
|
215
|
+
DateDurationUnit = "Observation.date-duration-unit",
|
|
216
|
+
/** Repeat frequency (number of events per period). */
|
|
217
|
+
DateFrequency = "Observation.date-frequency",
|
|
218
|
+
/** Repeat frequency max. */
|
|
219
|
+
DateFrequencyMax = "Observation.date-frequency-max",
|
|
220
|
+
/** Repeat period value. */
|
|
221
|
+
DatePeriodValue = "Observation.date-period-value",
|
|
222
|
+
/** Repeat period max. */
|
|
223
|
+
DatePeriodMax = "Observation.date-period-max",
|
|
224
|
+
/** Repeat period unit. Allowed: s|min|h|d|wk|mo|a. */
|
|
225
|
+
DatePeriodUnit = "Observation.date-period-unit",
|
|
226
|
+
/** Repeat offset in minutes. */
|
|
227
|
+
DateOffset = "Observation.date-offset",
|
|
228
|
+
/**
|
|
229
|
+
* Quantity value using FHIR quantity search syntax:
|
|
230
|
+
* "{prefix}{number}|{system}|{code}".
|
|
231
|
+
* Example: "le5.4|http://unitsofmeasure.org|mg".
|
|
232
|
+
*/
|
|
233
|
+
ValueQuantity = "Observation.value-quantity",
|
|
234
|
+
/** String value. Example: "Feels anxious at night." */
|
|
235
|
+
ValueString = "Observation.value-string",
|
|
236
|
+
/** Date/dateTime/period value as ISO string (or "<start>/<end>" if period). */
|
|
237
|
+
ValueDate = "Observation.value-date",
|
|
238
|
+
/** Coded value token "system|code". Example yes/no: "http://terminology.hl7.org/CodeSystem/v2-0136|Y". */
|
|
239
|
+
ValueConcept = "Observation.value-concept",
|
|
240
|
+
/** Short English classifier tags, comma-separated. Example: "Anxiety,Night". */
|
|
241
|
+
MetaTag = "Observation.meta-tag"
|
|
242
|
+
}
|
|
243
|
+
export type ObservationTemplateContextualized = {
|
|
244
|
+
/** Must be exactly "org.hl7.fhir.api". Defines the contextualized prefix for claim keys. */
|
|
245
|
+
[ClaimsObservationContext.Context]: 'org.hl7.fhir.api';
|
|
246
|
+
/** Optional discriminator for business meaning (e.g., "Observation:SelfReported"). */
|
|
247
|
+
[ClaimsObservationContext.Type]?: string;
|
|
248
|
+
/** Subject (individual) DID of the observation context. */
|
|
249
|
+
[ClaimsObservationContext.Subject]: string;
|
|
250
|
+
/** Observation category token. Example: "http://terminology.hl7.org/CodeSystem/observation-category|social-history". */
|
|
251
|
+
[ClaimsObservationContext.Category]?: string;
|
|
252
|
+
/** Observation identifier (URN). Example: "urn:uuid:11b2c3d4-e5f6-7890-1234-567890abcdef". */
|
|
253
|
+
[ClaimsObservationContext.Identifier]?: string;
|
|
254
|
+
/** Observation code as token "system|code". Example: "SNOMED|48694002" or "LOINC|54728-1". */
|
|
255
|
+
[ClaimsObservationContext.Code]?: string;
|
|
256
|
+
/** True if the code was explicitly selected by the user (e.g., from a picker). */
|
|
257
|
+
[ClaimsObservationContext.CodeUserSelected]?: boolean;
|
|
258
|
+
/** When the Observation was captured/recorded by the app (ISO 8601 dateTime string). */
|
|
259
|
+
[ClaimsObservationContext.Issued]?: string;
|
|
260
|
+
/**
|
|
261
|
+
* Generic effective[x] filter (FHIR search-param concept "date").
|
|
262
|
+
* Use ISO date/dateTime string. Example: "2025-11-27" or "2025-11-27T10:00:00Z".
|
|
263
|
+
*/
|
|
264
|
+
[ClaimsObservationContext.Date]?: string;
|
|
265
|
+
/**
|
|
266
|
+
* Convenience range for effective[x] as "<start>/<end>" (both ISO date/dateTime).
|
|
267
|
+
* Example: "2025-01-01/2025-12-31".
|
|
268
|
+
*/
|
|
269
|
+
[ClaimsObservationContext.DatePeriod]?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Time-of-day bucket for recurring patterns (FHIR EventTiming).
|
|
272
|
+
* Allowed: "MORN" | "AFT" | "EVE" | "NIGHT".
|
|
273
|
+
*/
|
|
274
|
+
[ClaimsObservationContext.DateWhen]?: string;
|
|
275
|
+
/** Specific time-of-day constraint for the pattern. Format: "HH:MM" or "HH:MM:SS". */
|
|
276
|
+
[ClaimsObservationContext.DateTimeOfDay]?: string;
|
|
277
|
+
/** Comma-separated weekdays for the pattern. Example: "mon,tue,wed". */
|
|
278
|
+
[ClaimsObservationContext.DateDayOfWeek]?: string;
|
|
279
|
+
/** Bounds period for the schedule as "<start>/<end>" (ISO date/dateTime). */
|
|
280
|
+
[ClaimsObservationContext.DateBoundsPeriod]?: string;
|
|
281
|
+
/** Timing.repeat.boundsDuration (string form; only needed for advanced schedules). */
|
|
282
|
+
[ClaimsObservationContext.DateBoundsDuration]?: string;
|
|
283
|
+
/** Timing.repeat.boundsRange (string form; only needed for advanced schedules). */
|
|
284
|
+
[ClaimsObservationContext.DateBoundsRange]?: string;
|
|
285
|
+
/** Timing.repeat.count (how many times to repeat). */
|
|
286
|
+
[ClaimsObservationContext.DateCount]?: number;
|
|
287
|
+
/** Timing.repeat.countMax (maximum repeats). */
|
|
288
|
+
[ClaimsObservationContext.DateCountMax]?: number;
|
|
289
|
+
/** Timing.repeat.duration (duration of each occurrence). */
|
|
290
|
+
[ClaimsObservationContext.DateDuration]?: number;
|
|
291
|
+
/** Timing.repeat.durationMax (max duration of each occurrence). */
|
|
292
|
+
[ClaimsObservationContext.DateDurationMax]?: number;
|
|
293
|
+
/** Timing.repeat.durationUnit (FHIR unitsOfTime: "s|min|h|d|wk|mo|a"). */
|
|
294
|
+
[ClaimsObservationContext.DateDurationUnit]?: string;
|
|
295
|
+
/** Timing.repeat.frequency (events per period). */
|
|
296
|
+
[ClaimsObservationContext.DateFrequency]?: number;
|
|
297
|
+
/** Timing.repeat.frequencyMax (max frequency). */
|
|
298
|
+
[ClaimsObservationContext.DateFrequencyMax]?: number;
|
|
299
|
+
/** Timing.repeat.period (period length). */
|
|
300
|
+
[ClaimsObservationContext.DatePeriodValue]?: number;
|
|
301
|
+
/** Timing.repeat.periodMax (max period length). */
|
|
302
|
+
[ClaimsObservationContext.DatePeriodMax]?: number;
|
|
303
|
+
/** Timing.repeat.periodUnit (FHIR unitsOfTime: "s|min|h|d|wk|mo|a"). */
|
|
304
|
+
[ClaimsObservationContext.DatePeriodUnit]?: string;
|
|
305
|
+
/** Timing.repeat.offset (minutes from event start). */
|
|
306
|
+
[ClaimsObservationContext.DateOffset]?: number;
|
|
307
|
+
/**
|
|
308
|
+
* Observation value as FHIR quantity search syntax.
|
|
309
|
+
* Example: "le5.4|http://unitsofmeasure.org|mg" or "5.4||mg" or "5.4".
|
|
310
|
+
*/
|
|
311
|
+
[ClaimsObservationContext.ValueQuantity]?: string;
|
|
312
|
+
/** Observation value as string (free text). */
|
|
313
|
+
[ClaimsObservationContext.ValueString]?: string;
|
|
314
|
+
/**
|
|
315
|
+
* Observation value if it's a date/dateTime/period.
|
|
316
|
+
* Use ISO strings or "<start>/<end>" if you choose to mirror DatePeriod convention.
|
|
317
|
+
*/
|
|
318
|
+
[ClaimsObservationContext.ValueDate]?: string;
|
|
319
|
+
/** Observation value as token "system|code". Example yes/no: "http://terminology.hl7.org/CodeSystem/v2-0136|Y". */
|
|
320
|
+
[ClaimsObservationContext.ValueConcept]?: string;
|
|
321
|
+
/**
|
|
322
|
+
* Optional short English classifier tags for search/routing, comma-separated.
|
|
323
|
+
* Example: "Anxiety,Night".
|
|
324
|
+
*/
|
|
325
|
+
[ClaimsObservationContext.MetaTag]?: string;
|
|
326
|
+
};
|