-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DiagnosticReport.status: minimum required =1, but only found 0 when validating HL7 ORU-R01 message. #90
Comments
@claverols I will look into this. |
I don't think I have power to self assign but I will be looking into this card |
@jgrant22 The FHIR validator tool gets updated quite often; so 1st thing I would download the latest version available and will try to run the FHIR validation against the JSON you will get when converting from the HL7 message using the current HL7toFHIR converter. The location for the FhIR validator is: https://confluence.hl7.org/display/FHIR/Using+the+FHIR+Validator#UsingtheFHIRValidator-Downloadingthevalidator I run the validator with these parameters (-version 4.0 for FHIR version): Search the output from running the FHIR validation for the reported error. Please let me know if you need more details. |
DiagnosticReport.status is a required field (https://www.hl7.org/fhir/diagnosticreport.html) so I would expect it to fail validation if it is not set. The solution to set this field to unknown (https://www.hl7.org/fhir/valueset-diagnostic-report-status.html) if not in the HL7 message seems correct. |
In Release 1.0.8 |
Describe the bug
Error: "DiagnosticReport.status: minimum required = 1, but only found 0 (from http://hl7.org/fhir/StructureDefinition/DiagnosticReport)" shows when running the current FHIR validator on the converted file from attached HL7 message.
To Reproduce
Run attached HL7 message within latest FHIR validator available and check the output for errors.
Expected behavior
The HL7 message
oru-r01-sample01.txt
is missing that field, but should the converter be able to deal with it? (ie. map null to Unknown when the expected value is not found?) rather than throw an error?
pydantic.error_wrappers.ValidationError: 1 validation error for DiagnosticReport
root -> status
field required (type=value_error.missing)
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: