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
$apply operation error when specifying practitioner with reference like "Practitioner/2".
Environment
IBM FHIR Server 4.6.1
To Reproduce
Steps to reproduce the behavior:
PlanDefinition/1234/$apply?subject=Patient/1&practitioner=Practitioner/2
Received 500 HTTP error
Expected behavior
Expected 200 HTTP status
Additional context
FHIRResource E An error occurred during the '$apply' operation
com.ibm.fhir.exception.FHIROperationException: An error occurred during the '$apply' operation
at com.ibm.fhir.operation.apply.ApplyOperation.doInvoke(ApplyOperation.java:132)
at com.ibm.fhir.server.operation.spi.AbstractOperation.invoke(AbstractOperation.java:56)
at com.ibm.fhir.server.util.FHIRRestHelper.doInvoke(FHIRRestHelper.java:1132)
...
Caused by: java.lang.IllegalStateException: Resource type found in reference value: 'Practitioner/2' for element: 'careTeam' must be one of: [CareTeam]
at com.ibm.fhir.model.util.ValidationSupport.checkReferenceType(ValidationSupport.java:709)
at com.ibm.fhir.model.util.ValidationSupport.checkReferenceType(ValidationSupport.java:661)
at com.ibm.fhir.model.resource.CarePlan.(CarePlan.java:176)
...
The text was updated successfully, but these errors were encountered:
* operation error when specifying practitioner #2240
Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
* Update the test to include a practitioner
Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
Describe the bug
$apply operation error when specifying practitioner with reference like "Practitioner/2".
Environment
IBM FHIR Server 4.6.1
To Reproduce
Steps to reproduce the behavior:
PlanDefinition/1234/$apply?subject=Patient/1&practitioner=Practitioner/2
Received 500 HTTP error
Expected behavior
Expected 200 HTTP status
Additional context
FHIRResource E An error occurred during the '$apply' operation
com.ibm.fhir.exception.FHIROperationException: An error occurred during the '$apply' operation
at com.ibm.fhir.operation.apply.ApplyOperation.doInvoke(ApplyOperation.java:132)
at com.ibm.fhir.server.operation.spi.AbstractOperation.invoke(AbstractOperation.java:56)
at com.ibm.fhir.server.util.FHIRRestHelper.doInvoke(FHIRRestHelper.java:1132)
...
Caused by: java.lang.IllegalStateException: Resource type found in reference value: 'Practitioner/2' for element: 'careTeam' must be one of: [CareTeam]
at com.ibm.fhir.model.util.ValidationSupport.checkReferenceType(ValidationSupport.java:709)
at com.ibm.fhir.model.util.ValidationSupport.checkReferenceType(ValidationSupport.java:661)
at com.ibm.fhir.model.resource.CarePlan.(CarePlan.java:176)
...
The text was updated successfully, but these errors were encountered: