import { TrackTileService, Tracker, Code } from '../services/TrackTileService'; export declare const useAxiosTrackTileService: () => TrackTileService; export declare const toDateKey: (date: string | Date) => string; export type FetchTrackerResponse = { data: { patient: { observationsConnection: { edges: Observation[]; }; proceduresConnection: { edges: Procedure[]; }; }; }; }; export type Observation = { node: { id: string; effectiveDateTime: string; code: { coding: Code[]; }; valueQuantity: { value: number; }; }; }; export type Procedure = { node: { id: string; code: { coding: Code[]; }; performedPeriod: { start: string; end: string; }; }; }; export declare const FETCH_TRACKER_VALUES_BY_DATES_QUERY = "\nquery GetObservations($dates: [String!], $codeBelow: String!, $patientId: String, $first: Int) {\n patient(id: $patientId) {\n observationsConnection(dates: $dates, codeBelow: $codeBelow, first: $first) {\n edges {\n node {\n id\n effectiveDateTime\n code {\n coding {\n system\n code\n id\n display\n }\n }\n valueQuantity {\n value\n }\n }\n }\n }\n proceduresConnection(dates: $dates, codeBelow: $codeBelow, first: $first) {\n edges {\n node {\n id\n code {\n coding {\n system\n code\n id\n display\n }\n }\n performedPeriod {\n start\n end\n }\n }\n }\n }\n }\n}\n"; export type UpsertObservationResponse = { data: { resource: Pick; }; }; export declare const MUTATE_OBSERVATION_RESOURCE: (mutation: 'Create' | 'Update') => string; export type UpsertProcedureResponse = { data: { resource: Pick; }; }; export declare const MUTATE_PROCEDURE_RESOURCE: (mutation: 'Create' | 'Update') => string; type CodeNode = Code & { relationshipConnection: { edges: { node: CodeNode; }[]; }; }; export type QueryOntologyResponse = { data: { searchCodings: { edges: { node: CodeNode; }[]; }; }; }; export declare const QUERY_ONTOLOGY = "\nquery fetchOntology($project: String!, $code: String!) {\n searchCodings(project: $project, code: $code, relationship: SPECIALIZES, sort: \"display\") {\n edges {\n node {\n id\n code\n system\n display\n educationContent {\n description\n thumbnail\n url\n }\n relationshipConnection(relationship: SPECIALIZES) {\n edges {\n node {\n id\n code\n system\n display\n educationContent {\n description\n thumbnail\n url\n }\n relationshipConnection(relationship: SPECIALIZES) {\n edges {\n node {\n id\n code\n system\n display\n educationContent {\n description\n thumbnail\n url\n }\n relationshipConnection(relationship: SPECIALIZES) {\n edges {\n node {\n id\n code\n system\n display\n educationContent {\n description\n thumbnail\n url\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}\n"; export type DeleteResourceResponse = { data: { success: boolean; }; }; export declare const DELETE_RESOURCE: (type: Tracker['resourceType']) => string; export {};