This forum is for programmers who have questions about the source code.
-
bravegag
- Posts: 49
- Joined: Fri May 24, 2019 3:37 pm
Post
by bravegag » Sat Aug 10, 2019 6:55 am
Hello,
Do you have a sample JSON for a practitioner provider with multiple specialties e.g.
Code: Select all
"practitionerRole": [
{
"role": {
"coding": [
{
"code": "provider",
"display": "Provider",
"userSelected": false
}
]
},
"specialty": [
{
"coding": [
{
"code": "generalist",
"display": "Generalist",
"userSelected": false
},
{
"code": "orthodontist",
"display": "Orthodontist",
"userSelected": false
}
]
}
]
}
],
Would this be a valid JSON value? can you please include such cases for the 19.2.x FIHR demo keys?
Many TIA,
Best regards,
Giovanni
-
cmcgehee
- Posts: 711
- Joined: Tue Aug 25, 2015 5:06 pm
- Location: Salem, Oregon
Post
by cmcgehee » Mon Aug 12, 2019 11:08 am
In the Open Dental program, it is possible to set the provider's specialty to a single specialty only, so the API does not support multiple specialties.
-
bravegag
- Posts: 49
- Joined: Fri May 24, 2019 3:37 pm
Post
by bravegag » Tue Aug 13, 2019 1:17 am
Hi Chris,
Thank you, great to know.
Wouldn't it then make more sense to make the JSON entry `specialty` an single JSON object as opposed to an array type? When you have an array is because they may be multiple of those ..
Best regards,
Giovanni
-
cmcgehee
- Posts: 711
- Joined: Tue Aug 25, 2015 5:06 pm
- Location: Salem, Oregon
Post
by cmcgehee » Tue Aug 13, 2019 7:50 am
The "specialty" is an array because we are following the FHIR standard which dictates this field should be formatted as a list. We, Open Dental, then have a business rule that the practitioner can have only one specialty.
-
bravegag
- Posts: 49
- Joined: Fri May 24, 2019 3:37 pm
Post
by bravegag » Thu Aug 15, 2019 10:04 am
Hi Chris,
Ok got it. Thanks for the clarification.
Best regards,
Giovanni