I submit the following two request to OD under my private FHIR API key:
Code: Select all
FHIR POST request https://api.opendental.com/fhir/v2/servicerequest with body:
{
"status": "active",
"intent": "proposal",
"code": {
"coding": [
{
"system": "http://hl7.org/fhir/us/sid/cdt",
"code": "T1356"
}
]
},
"subject": {
"reference": "Patient/24"
},
"occurrenceDateTime": "2019-08-26T09:15:00",
"performer": [
{
"reference": "Practitioner/3"
}
]
}
Code: Select all
FHIR POST request https://api.opendental.com/fhir/v2/appointment with body
{
"start": "2019-08-26T09:15:00",
"end": "2019-08-26T10:15:00",
"minutesDuration": 60,
"status": "booked",
"priority": 5,
"participant": [
{
"actor": {
"reference": "Patient/24"
},
"type": [
{
"code": [
{
"code": "PART",
"system": "http://hl7.org/fhir/participant-type"
}
]
}
],
"required": "required",
"status": "accepted"
},
{
"actor": {
"reference": "Practitioner/3"
},
"type": [
{
"code": [
{
"code": "PPRF",
"system": "http://hl7.org/fhir/participant-type"
}
]
}
]
},
{
"actor": {
"reference": "Location/1"
},
"type": [
{
"code": [
{
"code": "PART",
"system": "http://hl7.org/fhir/participant-type"
}
]
}
]
}
],
"basedOn": [
{
"reference": "ServiceRequest/138"
}
],
"reasonReference": []
}
Many TIA,
Best regards,
Giovanni