Using the docker image for hapiproject/hapi:latest and running the image using docker run -e HAPI_FHIR_CR_ENABLED=true -p 8080:8080 to enabled the Clinical Reasoning module, when I try to Apply against an example Plan Definition
"resourceType": "PlanDefinition", "id": "diabetes-management", "url": "http://localhost:8080/fhir/PlanDefinition/diabetes-management", "status": "active", "title": "Diabetes Management Plan", "description": "A care plan for managing diabetes.", "action": [ { "title": "Monitor Blood Sugar", "description": "Monitor patient's blood sugar levels daily.", "timingTiming": { "repeat": { "frequency": 1, "period": 1, "periodUnit": "d" } }, "definitionCanonical": "http://localhost:8080/fhir/ActivityDefinition/blood-sugar-monitoring" }, { "title": "Follow Up Visit", "description": "Schedule a follow-up visit in 1 month.", "timingTiming": { "repeat": { "frequency": 1, "period": 1, "periodUnit": "mo" } }, "definitionCanonical": "http://localhost:8080/fhir/ActivityDefinition/follow-up-visit" } ]
I get the following error as it is unable to access the Activity Definitions even though they are accessible through a GET command
{
"resourceType": "OperationOutcome",
"id": "apply-outcome-diabetes-management",
"issue": [
{
"severity": "error",
"code": "exception",
"diagnostics": "ERROR: ActivityDefinition http://localhost:8080/fhir/ActivityDefinition/blood-sugar-monitoring could not be applied and threw exception org.hl7.fhir.exceptions.FHIRException: No resource of type ActivityDefinition found for url: http://localhost:8080/fhir/ActivityDefinition/blood-sugar-monitoring|null"
},
{
"severity": "error",
"code": "exception",
"diagnostics": "ERROR: ActivityDefinition http://localhost:8080/fhir/ActivityDefinition/follow-up-visit could not be applied and threw exception org.hl7.fhir.exceptions.FHIRException: No resource of type ActivityDefinition found for url: http://localhost:8080/fhir/ActivityDefinition/follow-up-visit|null"
}
Has anybody had anything similar or could help me move on from this error