Stream: implementers
Topic: Specialty coding list error for PractitionerRole
Bastian (Jan 04 2021 at 18:29):
Hello, I'm getting a validation error when creating a PractitionerRole with a specific coding.
According to the implementation of my country found here: https://simplifier.net/NictizSTU3-Zib2017/nl-core-practitionerrole/~overview
I should give a "Specialty" consisting of two possible codings, I'm using the SpecialtyAGB coding (see JSON below).
I'm using the following JSON for URL: "http://hapi.fhir.org/baseDstu3/Bundle/$validate":
{
"resourceType": "Bundle",
"entry": [
{
"fullUrl": "urn:uuid:5ff359937122c150874932",
"request": {
"method": "POST",
"url": "PractitionerRole"
},
"resource": {
"resourceType": "PractitionerRole",
"meta": {
"profile": [
"http://fhir.nl/fhir/StructureDefinition/nl-core-practitionerrole"
]
},
"specialty": [
{
"coding": [
{
"code": "0329",
"display": "Psychiatrie",
"system": "urn:oid:2.16.840.1.113883.2.4.6.7"
}
],
"text": "Psychiatrie"
}
]
}
}
],
"type": "transaction"
}
Now if I lookup the coding list I do see that value defined, but the validation says that "The Coding provided (urn:oid:2.16.840.1.113883.2.4.6.7#0329) is not in the value set"
- How do I know the correct value set? Where is it defined (Almost certain it is here: https://decor.nictiz.nl/ketenzorg/kz-html-20180820T104547/voc-2.16.840.1.113883.2.4.3.11.60.40.2.17.1.7-2017-12-31T000000.html)
- Why do I get this error, when imo the code is correct?
Thanks in advance :)
Vassil Peytchev (Jan 04 2021 at 19:05):
From the overview, the role seems to be bound to https://simplifier.net/packages/hl7.fhir.r3.core/3.0.2/files/59481 as a preferred value set.
Bastian (Jan 04 2021 at 20:00):
As I understand it, that is the 'international' value set. As you can see at: https://simplifier.net/NictizSTU3-Zib2017/nl-core-practitionerrole/~overview => Specialty => Coding => SpecialtyAGB => System, the fixed value should be: "urn:oid:2.16.840.1.113883.2.4.6.7".
Maybe I'm doing something wrong?
Can it also be that the profile validation is not correct? And that my implementation is correct? (And how can I debug that?)
Yunwei Wang (Jan 05 2021 at 14:25):
It is possible that the validator does not know how to expand the value set.
Bastian (Jan 06 2021 at 08:29):
Is there a way to find out if this is the case, or do I have to talk to the Dutch developers who implement the validation sets?
Yunwei Wang (Jan 06 2021 at 17:19):
You can ask the server implementer. Since you are using hapi server, may be try #hapi stream.
Last updated: Apr 12 2022 at 19:14 UTC