Stream: clinFHIR
Topic: validating code in DiagnosticReport
Bob Milius (Nov 09 2017 at 16:17):
I'm getting a validation error in ClinFHIR when using a valueset in code in DiagnosticReport. The DiagnostReport spec says code is "Name/Code for this diagnostic report. LOINC Diagnostic Report Codes (Preferred)" and the link points to a valueset (https://www.hl7.org/fhir/valueset-report-codes.html). Any suggestions?
David Hay (Nov 09 2017 at 18:28):
Hi Bob - I presume you get this when you click 'validate'? Which server are you using? can you copy/paste the error report? Thanks...
Bob Milius (Nov 09 2017 at 20:41):
@David Hay here's the resource instance from the clinfhir view:
{ "status": "final", "category": { "coding": { "code": "GE", "system": "http://hl7.org/fhir/ValueSet/diagnostic-service-sections", "display": "Genetics" } }, "code": { "coding": { "code": "13303-3", "system": "http://loinc.org", "display": "HLA-A+B+C (class I) [Type]" } }, "resourceType": "DiagnosticReport", "effectiveDateTime": "2017-11-08", "subject": { "reference": "urn:uuid:a4efdb30-c5c2-4e3a-aa98-4346e707a5e2" }, "id": "urn:uuid:89a93f0f-9502-4549-af1b-4bbc7a592b98" }```
Bob Milius (Nov 09 2017 at 20:43):
@David Hay and here's the error msg:
"resourceType": "OperationOutcome", "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[Parameters.parameter.resource.category.coding]</td><td><pre>The Coding references a value set, not a code system ("http://hl7.org/fhir/ValueSet/diagnostic-service-sections")</pre></td>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td style=\"font-weight: bold;\">ERROR</td>\n\t\t\t\t<td>[Parameters.parameter.resource.category.coding]</td>\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t<td><pre>Error org.hl7.fhir.dstu3.model.ValueSet cannot be cast to org.hl7.fhir.dstu3.model.CodeSystem validating Coding</pre></td>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td style=\"font-weight: bold;\">INFORMATION</td>\n\t\t\t\t<td>[Parameters.parameter.resource.code]</td>\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t<td><pre>None of the codes provided are in the value set http://hl7.org/fhir/ValueSet/report-codes (http://hl7.org/fhir/ValueSet/report-codes, and a code is recommended to come from this value set) (codes = http://loinc.org#13303-3)</pre></td>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t</tr>\n\t\t</table>\n\t</div>" }, "issue": [ { "severity": "error", "code": "processing", "diagnostics": "The Coding references a value set, not a code system (\"http://hl7.org/fhir/ValueSet/diagnostic-service-sections\")", "location": [ "Parameters.parameter.resource.category.coding" ] }, { "severity": "error", "code": "processing", "diagnostics": "Error org.hl7.fhir.dstu3.model.ValueSet cannot be cast to org.hl7.fhir.dstu3.model.CodeSystem validating Coding", "location": [ "Parameters.parameter.resource.category.coding" ] }, { "severity": "information", "code": "processing", "diagnostics": "None of the codes provided are in the value set http://hl7.org/fhir/ValueSet/report-codes (http://hl7.org/fhir/ValueSet/report-codes, and a code is recommended to come from this value set) (codes = http://loinc.org#13303-3)", "location": [ "Parameters.parameter.resource.code" ] } ] }```
Bob Milius (Nov 09 2017 at 20:53):
@David Hay oh, I'm using the Public HAPI STU3 server for everything
David Hay (Nov 09 2017 at 20:58):
Hi Bob - this looks like a HAPI issue (I assume you pasted this resource in?) . I'll ping @James Agnew
Bob Milius (Nov 09 2017 at 21:03):
Thanks, @David Hay Yeah, I'm pasting it in and importing it.
David Hay (Nov 10 2017 at 00:21):
Do you get the same error if you use the $validate operation against the HAPI server?
Joel Schneider (Nov 13 2017 at 09:32):
@ Bob Milius looks like the category.coding.system should be http://hl7.org/fhir/v2/0074
, not http://hl7.org/fhir/ValueSet/diagnostic-service-sections
.
shivnath shelake (Nov 13 2017 at 13:50):
Hi,
I created vonk FHIR server on my local machine...
I added my server in ClinFhir but I unable to add patient getting below error..
pasted image
Event in local machine vonk folder in web.config file i added below code but still getting same issue..
<system.webServer>
<handlers>
<add name="aspNetCore" path="" verb="" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\Vonk.Server.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Content-Type, Authorization, x-id, Content-Length, X-Requested-With" />
<add name="Access-Control-Allow-Methods" value="GET,POST,PUT,DELETE,OPTIONS" />
<add name="Access-Control-Allow-Credentials" value="true" />
</customHeaders>
</httpProtocol>
</system.webServer>
help is greatly appreciated...
Last updated: Apr 12 2022 at 19:14 UTC