Constructors
Methods
batch
- batch(requests): Promise<any>
Returns Promise<any>
create
- create<T>(resource_type, resource): Promise<T>
Parameters
- resource_type: string
- resource: T
Returns Promise<T>
delete
- delete(resource_type, id): Promise<void>
Parameters
- resource_type: string
- id: string
Returns Promise<void>
expand_value_set
- expand_value_set(url): Promise<any>
Returns Promise<any>
get
- get<T>(url, params?): Promise<T>
Parameters
- url: string
Optional
params: Record<string, any>
Returns Promise<T>
get_capability_statement
- get_capability_statement(): Promise<any>
Returns Promise<any>
get_document_references
- get_document_references(patient_id): Promise<any>
Returns Promise<any>
get_observation_with_reports
- get_observation_with_reports(id): Promise<any>
Returns Promise<any>
get_provenance
- get_provenance(resource_type, resource_id): Promise<any[]>
Parameters
- resource_type: string
- resource_id: string
Returns Promise<any[]>
history
- history<T>(resource_type, id): Promise<T[]>
Parameters
- resource_type: string
- id: string
Returns Promise<T[]>
operation
- operation(resource_type, operation_name, params): Promise<any>
Parameters
- resource_type: string
- operation_name: string
- params: any
Returns Promise<any>
patch
- patch<T>(resource_type, id, patch_data): Promise<T>
Parameters
- resource_type: string
- id: string
- patch_data: any
Returns Promise<T>
post
- post<T>(url, data): Promise<T>
Returns Promise<T>
read
- read<T>(resource_type, id): Promise<T>
Parameters
- resource_type: string
- id: string
Returns Promise<T>
read_binary
- read_binary(id): Promise<Blob>
Returns Promise<Blob>
refresh_token
- refresh_token(refresh_token, client_id): Promise<void>
Parameters
- refresh_token: string
- client_id: string
Returns Promise<void>
search
- search<T>(resource_type, params): Promise<T[]>
Parameters
- resource_type: string
- params: Record<string, string | number>
Returns Promise<T[]>
search_care_plans
- search_care_plans(patient_id, category): Promise<any[]>
Parameters
- patient_id: string
- category: string
Returns Promise<any[]>
search_encounters
- search_encounters(patient_id, date): Promise<any[]>
Parameters
- patient_id: string
- date: string
Returns Promise<any[]>
search_observations_by_code
- search_observations_by_code(patient_id, code): Promise<any[]>
Parameters
- patient_id: string
- code: string
Returns Promise<any[]>
search_patients_by_name
- search_patients_by_name(name): Promise<any[]>
Returns Promise<any[]>
search_with_include
- search_with_include<T>(resource_type, params, include): Promise<T[]>
Parameters
- resource_type: string
- params: Record<string, string | number>
- include: string
Returns Promise<T[]>
search_with_pagination
- search_with_pagination<T>(resource_type, params, page_url?): Promise<{
data: T[];
next_page_url?: string;
}> Parameters
- resource_type: string
- params: Record<string, string | number>
Optional
page_url: string
Returns Promise<{
data: T[];
next_page_url?: string;
}>
transaction
- transaction(requests): Promise<any>
Returns Promise<any>
update
- update<T>(resource_type, id, resource): Promise<T>
Parameters
- resource_type: string
- id: string
- resource: T
Returns Promise<T>
validate
- validate<T>(resource_type, resource): Promise<any>
Parameters
- resource_type: string
- resource: T
Returns Promise<any>
Perform a batch operation