Stream: hapi
Topic: Validation of DiagnosticReport.effective[x]
Alessio Graziani (Jul 08 2020 at 13:16):
Hi all,
this is part of a new profile of DiagnosticReport, where effective[x] is mandatory:
"id": "DiagnosticReport.effective[x]",
"path": "DiagnosticReport.effective[x]",
"short": "Clinically relevant time/time-period for report",
"definition": "The time or time-period the observed values are related to. When the subject of the report is a patient, this is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself.",
"comment": "If the diagnostic procedure was performed on the patient, this is the time it was performed. If there are specimens, the diagnostically relevant time can be derived from the specimen collection times, but the specimen information is not always available, and the exact relationship between the specimens and the diagnostically relevant time is not always automatic.",
"requirements": "Need to know where in the patient history to file/present this report.",
"alias": [
"Observation time",
"Effective Time",
"Occurrence"
],
"min": 1,
"max": "1",
"base": {
"path": "DiagnosticReport.effective[x]",
"min": 0,
"max": "1"
},
"type": [
{
"code": "dateTime"
},
{
"code": "Period"
}
This is the JSON that I'm using for validation:
{
"resourceType": "DiagnosticReport",
"meta": {
"profile": [
"http://interopehrate.org/fhir/StructureDefinition/DiagnosticReport-ImagingReportSingleImage-IEHR"
]
},
"language": "it-IT",
"status": "final",
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0074",
"code": "RAD"
}
]
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "36554-4",
"display": "XR Chest Single view"
}
]
},
"subject": {
"reference": "Patient/22"
},
"effectiveDateTime": "2019-04-18T11:45:00+01:00",
"performer": [
{
"reference": "Organization/54"
}
]
}
and this is the error I get: "Element 'Bundle.entry[0].resource.effective[x]': minimum required = 1, but only found 0"
Could anyone please help me, to understand why the validator does not take into account the value of attribute effectiveDateTime?
Cheers and thanks
Alessio Graziani
James Agnew (Jul 08 2020 at 17:56):
Can you try this on hapi.fhir.org?
A few fixes have gone into the validator lately- this may be a bug that was recently fixed
Alessio Graziani (Jul 09 2020 at 09:44):
James Agnew said:
Can you try this on hapi.fhir.org?
A few fixes have gone into the validator lately- this may be a bug that was recently fixed
Ok, I'll try. I forgot to write that I'm using version 4.1.0 of the ca.uhn.fhir.validation.FhirValidator and R4 of the model.
Alessio Graziani (Jul 09 2020 at 10:48):
Even switching to version 5.0.2 I get the same error.
Alessio Graziani (Jul 14 2020 at 10:50):
James Agnew said:
Can you try this on hapi.fhir.org?
A few fixes have gone into the validator lately- this may be a bug that was recently fixed
@James Agnew
How can I try the validation on a server?
James Agnew (Jul 14 2020 at 11:54):
If you post your resource to the server you can invoke the $validate operation on it. This is the best way as it allows us to reproduce your results. E.g.
http://hapi.fhir.org/baseDstu3/Patient/2725779/$validate
Alessio Graziani (Jul 14 2020 at 12:34):
James Agnew said:
If you post your resource to the server you can invoke the $validate operation on it. This is the best way as it allows us to reproduce your results. E.g.
thanks a lot James! I'm going to do it ASAP
Last updated: Apr 12 2022 at 19:14 UTC