Skip to content
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

Closed
claverols opened this issue May 10, 2021 · 5 comments
Assignees
Labels

Comments

@claverols
Copy link

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):

  • OS: MacOS Big Sur
  • Version 11.2.1

Additional context
Add any other context about the problem here.

@pbhallam pbhallam self-assigned this May 25, 2021
@pbhallam
Copy link
Collaborator

@claverols I will look into this.

@jgrant22
Copy link
Contributor

jgrant22 commented Jun 3, 2021

I don't think I have power to self assign but I will be looking into this card

@pbhallam pbhallam assigned jgrant22 and unassigned pbhallam Jun 3, 2021
@claverols
Copy link
Author

@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):
java -jar validator_cli.jar -version 4.0 ./../folder/yourconvertedintoFHIR.json -output ./../folder/outputfromvalidation.json

Search the output from running the FHIR validation for the reported error. Please let me know if you need more details.

@LisaWellman
Copy link
Collaborator

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.

@cragun47
Copy link
Contributor

cragun47 commented Jun 28, 2021

In Release 1.0.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants