0

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

1 Answer 1

0

I have resolved the issue, Plan definition files which referenced this were missing the URL entry, added this and ran again and have been able to execute the apply against the Plan Defs

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.