Context
We are using HAPI FHIR (Java) to validate incoming resources. When sending a MedicationRequest resource without the statusChanged extension, we receive the following validation error:
Slicing cannot be evaluated: Problem with use of resolve() - profile [CanonicalType[http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.statusChanged]] on MedicationRequest.extension:statusChanged could not be resolved (@char 1)
This appears to be a recurrence of a previously resolved issue. The canonical URL pattern references a FHIR 5.0 structure definition that cannot be properly resolved.
Tested with:
package.tgz
package.r4.tgz
Both packages produce the same error.
Expected Behavior
The statusChanged extension profile should resolve correctly without throwing a slicing evaluation error, especially when the extension is not present in the resource.
Related Issues/PRs