From ee305df82d3cd6089551f5bdd5e05a406796683d Mon Sep 17 00:00:00 2001 From: Swain Molster Date: Thu, 14 Dec 2023 09:54:54 -0500 Subject: [PATCH] feat: add DocumentReference FHIR resource typing --- src/types/fhir-api-types.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/types/fhir-api-types.ts b/src/types/fhir-api-types.ts index 6a2238ca..c857430e 100644 --- a/src/types/fhir-api-types.ts +++ b/src/types/fhir-api-types.ts @@ -8,6 +8,7 @@ import { Questionnaire, QuestionnaireResponse, ProcedureRequest, + DocumentReference, } from 'fhir/r3'; // These "better" types strongly type the bundle @@ -26,13 +27,14 @@ type BetterBundle = Omit, 'entry'> & { * Add entries to this type to support them in the hooks. */ type FhirResourcesByName = { - Patient: Patient; - Observation: Observation; - Questionnaire: Questionnaire; - QuestionnaireResponse: QuestionnaireResponse; Appointment: Appointment; + DocumentReference: DocumentReference; + Observation: Observation; + Patient: Patient; Practitioner: Practitioner; ProcedureRequest: ProcedureRequest; + Questionnaire: Questionnaire; + QuestionnaireResponse: QuestionnaireResponse; }; /**