A Patient is a single, planned meeting in the future or the past. Examples include a scheduled surgery or a follow-up for a clinical visit.
Overview of Data Model for an Appointment. The Appointment Resource implements the FHIR Appointment Resource.
Key | Type | Required | Public | Description | FHIR Resource |
---|---|---|---|---|---|
id | String | * | Identifier | ||
start | DateTime | * | * | Start Date | APPOINTMENT -> start |
end | Date | * | * | End Date | APPOINTMENT -> end |
patientId | String | Reference to Patient | APPOINTMENT -> Participant -> Patient | ||
doctorId | String | * | * | Reference to Doctor | APPOINTMENT -> Participant -> PractitionerRole |
description | String | Description | APPOINTMENT -> Description |
Notes:
The Appointment Resource has the following endpoints available:
Search for Appointments for some doctors
GET /appointments?doctors=id1,id2,id3,...&start=2020-11-30T13:22:26.597Z&end=2020-12-30T13:22:26.597Z
Access Level: Public
Parameters (Query String):
Return Value: List of Appointments (only public keys)
List Appointments of a Doctor
GET /profile/doctor/appointments?start=2020-11-30T13:22:26.597Z&end=2020-12-30T13:22:26.597Z&include=patient
Access Level: Authorized
Parameters (Query String):
doctor
and/or patient
which will include the full public keys of the patient or doctorReturn Value: List of Appointments
Create Appointment as a Doctor
POST /profile/doctor/appointments
Access Level: Authorized
Parameters (Query String): Appointment
Return Value: Appointment (including id)
List Appointments of a Patient
GET /profile/patient/appointments?start=2020-11-30T13:22:26.597Z&end=2020-12-30T13:22:26.597Z&include=doctor
Access Level: Authorized
Parameters (Query String):
doctor
and/or patient
which will include the full public keys of the patient or doctorReturn Value: List of Appointments
Create Appointment as a Patient
POST /profile/patient/appointments
Access Level: Authorized
Parameters (Query String): Appointment
Return Value: Appointment (including id)