Skip to content

Commit

Permalink
Merge pull request #12 from mcode/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
smalho01 authored Jan 12, 2024
2 parents 9d175cc + 94a78e8 commit 2b5f576
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions resources/HookTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export interface FhirAuthorization {

export interface HookContext {
[key: string]: string | string[] | Bundle | undefined;
userId: string;
patientId: string;
encounterId?: string;
}

export interface HookPrefetch {
Expand Down Expand Up @@ -49,27 +52,17 @@ export interface Hook {

// https://cds-hooks.org/hooks/order-sign/#context
export interface OrderSignContext extends HookContext {
userId: string;
patientId: string;
encounterId?: string;
draftOrders: Bundle;
}

// https://cds-hooks.org/hooks/order-select/#context
export interface OrderSelectContext extends HookContext {
userId: string;
patientId: string;
encounterId?: string;
selections: string[];
draftOrders: Bundle;
}

// https://cds-hooks.org/hooks/patient-view/#context
export interface PatientViewContext extends HookContext {
userId: string;
patientId: string;
encounterId?: string;
}
export type PatientViewContext = HookContext;

// https://cds-hooks.hl7.org/1.0/#calling-a-cds-service
export interface OrderSignHook extends Hook {
Expand Down

0 comments on commit 2b5f576

Please sign in to comment.