FHIR New Patient Appointment booking (no patient y

2019-07-27 08:16发布

问题:

Suppose a new patient is trying to book an appointment using FHIR APIs , how should I get his/her first name, last name, dob, phone number in my system ?

The appointment resource just specifies actor reference which is an Id to Patient resource in this case. But I have not created the patient in system who is trying to book appointment first time. So I need all this patient details.

How can I post those details in Appointment resource which I post to create an appointment ?

回答1:

Alternatively, if you do not wish to create the patient in your system yet until he/she shows up, the initial appointment could contain the Patient as a "contained resource": https://www.hl7.org/fhir/references.html#contained. This is useful for getting data across that doesn't have an identified endpoint on a FHIR server.



回答2:

You should expect to perform multiple FHIR interactions:

  • POST a Patient resource to create the patient. That will return the server ID of the patient.
  • Perform a Slot search to retrieve the list of available appointment slots. This will return a list of slots with their server IDs.
  • POST an Appointment resource including the patient ID and selected slot ID returned from the first two interactions.

You may also need to perform a Practitioner or other search prior to creating the patient if you want (for example) indicate who the patient's PCP is.