You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Parameters.parameter.part is a contentReference that should inherit the constraints from Parameters.parameter. The validators are not applying the invariant when an invalid Parameters resource is used. Using the following example Parameters resource
The lack of Parameters.parameter[0].part[0].value element should result in an OperationOutcome with an error issue but instead it returns an OperationOutcome with no issues. Using the legacy validators correctly returns an OperationOutcome:
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invariant",
"details": {
"coding": [
{
"system": "http://hl7.org/fhir/dotnet-api-operation-outcome",
"code": "1012"
},
{
"system": "http://hl7.org/fhir/StructureDefinition/Parameters",
"code": "inv-1",
"display": "A parameter must have one and only one of (value, resource, part)"
}
],
"text": "Instance failed constraint inv-1 \"A parameter must have one and only one of (value, resource, part)\""
},
"diagnostics": "(part.exists() and value.empty() and resource.empty()) or (part.empty() and (value.exists() xor resource.exists()))",
"location": [
"Parameters.parameter[0].part[0]"
],
"expression": [
"Parameters.parameter[0].part[0]"
]
}
]
}
Describe the bug
Parameters.parameter.part is a contentReference that should inherit the constraints from Parameters.parameter. The validators are not applying the invariant when an invalid Parameters resource is used. Using the following example Parameters resource
The lack of Parameters.parameter[0].part[0].value element should result in an OperationOutcome with an error issue but instead it returns an OperationOutcome with no issues. Using the legacy validators correctly returns an OperationOutcome:
To Reproduce
Steps to reproduce the behavior:
firely-validator-api-legacy
project generates an OperationOutcome with the correct issuefirely-validator-api-current
project generates an empty OperationOutcome with no issuesExpected behavior
The validator should create an OperationOutcome with an issue for the Parameters invariant
inv-1
https://hl7.org/fhir/R4/parameters.html#invsVersion used:
The text was updated successfully, but these errors were encountered: