Stream: implementers
Topic: Code System Check Issue
John (Jul 25 2018 at 08:25):
Hi Experts,
I'm new to FHIR. Now I try to create a new Appointment Resource on Hapi test server https://www.hl7.org/fhir/. The payload is like:
{
"resourceType":"Appointment",
"status":"booked",
"description":"Outp. Visit",
"start":"2018-05-17T10:00:00Z",
"end":"2018-05-17T10:00:00Z",
"serviceCategory":{
"coding":[
{
"system":"http://hl7.org/fhir/service-category",
"code":"gp1",
"display":"Adoption"
}
]
},
"participant":[
{
"actor":{
"display":"Liu Mike"
},
"status":"accepted"
}
]
}
For ServiceCategory part, I use the code "gp1" which is not existed in the code system "http://hl7.org/fhir/service-category", I suppose the result of this creation will fail, not actually it created successfully.
I don't know where the problem is. Could you help on that?
Grahame Grieve (Jul 25 2018 at 12:45):
which server exactly?
Lloyd McKenzie (Jul 25 2018 at 12:47):
Servers are free to decide how much, if any, validation they'll do on inbound data. While the server could check that code and determine that it's not currently allowed in its specified code system, there's a performance cost to doing so on all coding repetitions for all coded elements. Therefore it may not do so by default. If it's one of our public test servers, it should check though - as we're less concerned about performance and more concerned about guiding implementers toward correct implementation. If it's a local HAPI install, then you'll probably need to configure it to be more aggressive with validation if you want it to detect these sorts of issues.
Last updated: Apr 12 2022 at 19:14 UTC