UNPKG

@enteral/fhir-schema

Version:
69 lines (68 loc) 4.91 kB
import { Options } from "../interfaces"; export declare const typeDefs = "\n type ListInfo {\n totalCount: Int\n\n \"\"\"\n Pass the value of this as `after` to the relevant field in order to\n fetch the next page of results.\n \"\"\"\n nextPageToken: String\n }\n\n type PatientList {\n edges: [Patient]\n nodes: [Patient]\n listInfo: ListInfo\n }\n\n type ObservationList {\n edges: [Observation]\n nodes: [Observation]\n listInfo: ListInfo\n }\n\n type AllergyIntoleranceList {\n edges: [Observation]\n nodes: [AllergyIntolerance]\n listInfo: ListInfo\n }\n\n type NutritionOrderList {\n edges: [Observation]\n nodes: [NutritionOrder]\n listInfo: ListInfo\n }\n\n enum PatientOrderBy {\n ID_DESC\n ID_ASC\n BIRTHDATE_DESC\n BIRTHDATE_ASC\n }\n\n type Query {\n allPatients(\n \"\"\"\n The value of `nextPageToken` from a list such that the next page\n may be fetched.\n \"\"\"\n after: String\n first: Int\n offset: Int\n orderBy: PatientOrderBy\n searchTerms: String\n ): PatientList\n\n allNutritionOrders(\n \"\"\"\n The value of `nextPageToken` from a list such that the next page\n may be fetched.\n \"\"\"\n after: String\n ): NutritionOrderList\n\n allObservations(\n \"\"\"\n The value of `nextPageToken` from a list such that the next page\n may be fetched.\n \"\"\"\n after: String\n ): ObservationList\n\n allAllergyIntoleranceLists(\n \"\"\"\n The value of `nextPageToken` from a list such that the next page\n may be fetched.\n \"\"\"\n after: String\n ): AllergyIntoleranceList\n\n fhirPatientById(id: String!): Patient\n fhirNutritionOrderById(id: String!): NutritionOrder\n fhirObservationById(id: String!): Observation\n fhirAllergyIntoleranceById(id: String!): AllergyIntolerance\n fhirNutritionOrdersByPatientId(id: String!): NutritionOrderList\n fhirObservationsByPatientId(id: String!): ObservationList\n fhirAllergyIntolerancesByPatientId(id: String!): AllergyIntoleranceList\n }\n\n extend type Patient {\n allergyIntolerances(\n \"\"\"\n The value of `nextPageToken` from a list such that the next page\n may be fetched.\n \"\"\"\n after: String\n ): AllergyIntoleranceList\n\n observations(\n \"\"\"\n The value of `nextPageToken` from a list such that the next page\n may be fetched.\n \"\"\"\n after: String\n ): ObservationList\n\n nutritionOrders(\n \"\"\"\n The value of `nextPageToken` from a list such that the next page\n may be fetched.\n \"\"\"\n after: String\n ): NutritionOrderList\n }\n"; export declare function makeResolvers(options: Options): { Query: { allPatients(_: any, args: any): Promise<{ nodes: any; totalCount: any; nextPageToken: string; }>; fhirPatientById(_: any, args: any): Promise<any>; allObservations(_: any, args: any): Promise<{ nodes: any; totalCount: any; nextPageToken: string; }>; allNutritionOrders(_: any, args: any): Promise<{ nodes: any; totalCount: any; nextPageToken: string; }>; allAllergyIntoleranceLists(_: any, args: any): Promise<{ nodes: any; totalCount: any; nextPageToken: string; }>; fhirNutritionOrdersByPatientId(_: any, args: any): Promise<{ nodes: any; totalCount: any; nextPageToken: string; }>; fhirObservationsByPatientId(_: any, args: any): Promise<{ nodes: any; totalCount: any; nextPageToken: string; }>; fhirAllergyIntolerancesByPatientId(_: any, args: any): Promise<{ nodes: any; totalCount: any; nextPageToken: string; }>; fhirNutritionOrderById(_: any, args: any): Promise<any>; fhirObservationById(_: any, args: any): Promise<any>; fhirAllergyIntoleranceById(_: any, args: any): Promise<any>; }; Patient: { observations(patient: any, args: any): Promise<{ nodes: any; totalCount: any; nextPageToken: string; }>; allergyIntolerances(patient: any, args: any): Promise<{ nodes: any; totalCount: any; nextPageToken: string; }>; nutritionOrders(patient: any, args: any): Promise<{ nodes: any; totalCount: any; nextPageToken: string; }>; }; NutritionOrder: { patient(order: any): Promise<any>; }; NutritionOrderpatient_patient_Union: { __resolveType(record: any): string; }; };