Skip to content

Commit

Permalink
Merge pull request #501 from lifeomic/doc-refs
Browse files Browse the repository at this point in the history
feat: add DocumentReference FHIR resource typing
  • Loading branch information
swain authored Dec 14, 2023
2 parents f00f41d + ee305df commit 1e792be
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/types/fhir-api-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
Questionnaire,
QuestionnaireResponse,
ProcedureRequest,
DocumentReference,
} from 'fhir/r3';

// These "better" types strongly type the bundle
Expand All @@ -26,13 +27,14 @@ type BetterBundle<T> = Omit<Bundle<T>, '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;
};

/**
Expand Down

0 comments on commit 1e792be

Please sign in to comment.