Skip to content

Create FHIR r4 care plan

Request

Security
bearer or bearer
Path
siteIdstringrequired

Site identifier

Bodyapplication/jsonrequired
resourceTypeanyrequired

This is a CarePlan resource

Value:"CarePlan"
Example:"CarePlan"
idstring(id)^[A-Za-z0-9\-\.]{1,64}$

The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.

Example:"example-id"
metaobject(Meta)

The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.

implicitRulesstring(uri)^\S*$

A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.

Example:"https://example.org/resource"
_implicitRulesobject(Element)

Extensions for implicitRules

languagestring(code)^[^\s]+(\s[^\s]+)*$

The base language in which the resource is written.

Example:"sample-code"
_languageobject(Element)

Extensions for language

textobject(Narrative)

A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.

Example:
{ "status": "additional", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <p> A simple care plan to indicate a patient taking their weight once a day because of obesity.</p>\n </div>" }
containedArray of any(ResourceList)

These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.

Example:
[ { "resourceType": "Condition", "id": "p1", "clinicalStatus": { … }, "verificationStatus": { … }, "code": { … }, "subject": { … } } ]
extensionArray of objects(Extension)

May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

modifierExtensionArray of objects(Extension)

May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).

identifierArray of objects(Identifier)

Business identifiers assigned to this care plan by the performer or other systems which remain constant as the resource is updated and propagates from server to server.

Example:
[ { "value": "12345" } ]
instantiatesCanonicalArray of strings

The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.

Example:
[ "http://example.org/Profile" ]
instantiatesUriArray of strings

The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.

Example:
[ "https://example.org/resource" ]
_instantiatesUriArray of objects(Element)

Extensions for instantiatesUri

basedOnArray of objects(Reference)

A care plan that is fulfilled in whole or in part by this care plan.

Example:
[ { "display": "Management of Type 2 Diabetes" } ]
replacesArray of objects(Reference)

Completed or terminated care plan whose function is taken by this new care plan.

Example:
[ { "display": "Plan from urgent care clinic" } ]
partOfArray of objects(Reference)

A larger care plan of which this particular care plan is a component or step.

Example:
[ { "display": "Overall wellness plan" } ]
statusstring(code)^[^\s]+(\s[^\s]+)*$

Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.

Example:"sample-code"
_statusobject(Element)

Extensions for status

intentstring(code)^[^\s]+(\s[^\s]+)*$

Indicates the level of authority/intentionality associated with the care plan and where the care plan fits into the workflow chain.

Example:"sample-code"
_intentobject(Element)

Extensions for intent

categoryArray of objects(CodeableConcept)

Identifies what "kind" of plan this is to support differentiation between multiple co-existing plans; e.g. "Home health", "psychiatric", "asthma", "disease management", "wellness plan", etc.

Example:
[ { "text": "Weight management plan" } ]
titlestring(string)^[ \r\n\t\S]+$

Human-friendly name for the care plan.

Example:"example-string"
_titleobject(Element)

Extensions for title

descriptionstring(string)^[ \r\n\t\S]+$

A description of the scope and nature of the plan.

Example:"example-string"
_descriptionobject(Element)

Extensions for description

subjectobject(Reference)required

Identifies the patient or group whose intended care is described by the plan.

Example:
{ "reference": "Patient/example", "display": "Peter James Chalmers" }
encounterobject(Reference)

The Encounter during which this CarePlan was created or to which the creation of this record is tightly associated.

Example:
{ "reference": "Encounter/home" }
periodobject(Period)

Indicates when the plan did (or is intended to) come into effect and end.

Example:
{ "end": "2017-06-01" }
createdstring, (date-time)(dateTime)^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-...

Represents when this particular CarePlan record was created in the system, which is often a system-generated date.

Example:"2024-01-01T00:00:00Z"
_createdobject(Element)

Extensions for created

authorobject(Reference)

When populated, the author is responsible for the care plan. The care plan is attributed to the author.

Example:
{ "reference": "Practitioner/example", "display": "Dr Adam Careful" }
contributorArray of objects(Reference)

Identifies the individual(s) or organization who provided the contents of the care plan.

careTeamArray of objects(Reference)

Identifies all people and organizations who are expected to be involved in the care envisioned by this plan.

Example:
[ { "reference": "CareTeam/example" } ]
addressesArray of objects(Reference)

Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan.

Example:
[ { "reference": "#p1", "display": "obesity" } ]
supportingInfoArray of objects(Reference)

Identifies portions of the patient's record that specifically influenced the formation of the plan. These might include comorbidities, recent procedures, limitations, recent assessments, etc.

goalArray of objects(Reference)

Describes the intended objective(s) of carrying out the care plan.

Example:
[ { "reference": "Goal/example" } ]
activityArray of objects(CarePlan_Activity)

Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc.

Example:
[ { "outcomeCodeableConcept": [ … ], "outcomeReference": [ … ], "detail": { … } } ]
noteArray of objects(Annotation)

General notes about the care plan not covered elsewhere.

curl -i -X POST \
  'https://docs.axiomera.com/_mock/apis/fhir/openapi/site/{siteId}/fhir/care-plan' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "resourceType": "CarePlan",
    "id": "example",
    "text": {
      "status": "additional",
      "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p> A simple care plan to indicate a patient taking their weight once a day because of obesity.</p>\n    </div>"
    },
    "contained": [
      {
        "resourceType": "Condition",
        "id": "p1",
        "clinicalStatus": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
              "code": "active"
            }
          ]
        },
        "verificationStatus": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
              "code": "confirmed"
            }
          ]
        },
        "code": {
          "text": "Obesity"
        },
        "subject": {
          "reference": "Patient/example",
          "display": "Peter James Chalmers"
        }
      }
    ],
    "identifier": [
      {
        "value": "12345"
      }
    ],
    "instantiatesUri": [
      "http://example.org/protocol-for-obesity"
    ],
    "basedOn": [
      {
        "display": "Management of Type 2 Diabetes"
      }
    ],
    "replaces": [
      {
        "display": "Plan from urgent care clinic"
      }
    ],
    "partOf": [
      {
        "display": "Overall wellness plan"
      }
    ],
    "status": "active",
    "intent": "plan",
    "category": [
      {
        "text": "Weight management plan"
      }
    ],
    "description": "Manage obesity and weight loss",
    "subject": {
      "reference": "Patient/example",
      "display": "Peter James Chalmers"
    },
    "encounter": {
      "reference": "Encounter/home"
    },
    "period": {
      "end": "2017-06-01"
    },
    "created": "2016-01-01",
    "author": {
      "reference": "Practitioner/example",
      "display": "Dr Adam Careful"
    },
    "careTeam": [
      {
        "reference": "CareTeam/example"
      }
    ],
    "addresses": [
      {
        "reference": "#p1",
        "display": "obesity"
      }
    ],
    "goal": [
      {
        "reference": "Goal/example"
      }
    ],
    "activity": [
      {
        "outcomeCodeableConcept": [
          {
            "coding": [
              {
                "system": "http://snomed.info/sct",
                "code": "161832001",
                "display": "Progressive weight loss"
              }
            ]
          }
        ],
        "outcomeReference": [
          {
            "reference": "Observation/example",
            "display": "Weight Measured"
          }
        ],
        "detail": {
          "code": {
            "coding": [
              {
                "system": "http://loinc.org",
                "code": "3141-9",
                "display": "Weight Measured"
              },
              {
                "system": "http://snomed.info/sct",
                "code": "27113001",
                "display": "Body weight"
              }
            ]
          },
          "status": "completed",
          "statusReason": {
            "text": "Achieved weight loss to mitigate diabetes risk."
          },
          "doNotPerform": false,
          "scheduledTiming": {
            "repeat": {
              "frequency": 1,
              "period": 1,
              "periodUnit": "d"
            }
          },
          "location": {
            "display": "Patient'\''s home"
          },
          "performer": [
            {
              "reference": "Patient/example",
              "display": "Peter James Chalmers"
            }
          ]
        }
      }
    ]
  }'

Responses

Bodyapplication/json
resourceTypeanyrequired

This is a CarePlan resource

Value:"CarePlan"
Example:"CarePlan"
idstring(id)^[A-Za-z0-9\-\.]{1,64}$

The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.

Example:"example-id"
metaobject(Meta)

The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.

implicitRulesstring(uri)^\S*$

A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.

Example:"https://example.org/resource"
_implicitRulesobject(Element)

Extensions for implicitRules

languagestring(code)^[^\s]+(\s[^\s]+)*$

The base language in which the resource is written.

Example:"sample-code"
_languageobject(Element)

Extensions for language

textobject(Narrative)

A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.

Example:
{ "status": "additional", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <p> A simple care plan to indicate a patient taking their weight once a day because of obesity.</p>\n </div>" }
containedArray of any(ResourceList)

These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.

Example:
[ { "resourceType": "Condition", "id": "p1", "clinicalStatus": { … }, "verificationStatus": { … }, "code": { … }, "subject": { … } } ]
extensionArray of objects(Extension)

May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

modifierExtensionArray of objects(Extension)

May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).

identifierArray of objects(Identifier)

Business identifiers assigned to this care plan by the performer or other systems which remain constant as the resource is updated and propagates from server to server.

Example:
[ { "value": "12345" } ]
instantiatesCanonicalArray of strings

The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.

Example:
[ "http://example.org/Profile" ]
instantiatesUriArray of strings

The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.

Example:
[ "https://example.org/resource" ]
_instantiatesUriArray of objects(Element)

Extensions for instantiatesUri

basedOnArray of objects(Reference)

A care plan that is fulfilled in whole or in part by this care plan.

Example:
[ { "display": "Management of Type 2 Diabetes" } ]
replacesArray of objects(Reference)

Completed or terminated care plan whose function is taken by this new care plan.

Example:
[ { "display": "Plan from urgent care clinic" } ]
partOfArray of objects(Reference)

A larger care plan of which this particular care plan is a component or step.

Example:
[ { "display": "Overall wellness plan" } ]
statusstring(code)^[^\s]+(\s[^\s]+)*$

Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.

Example:"sample-code"
_statusobject(Element)

Extensions for status

intentstring(code)^[^\s]+(\s[^\s]+)*$

Indicates the level of authority/intentionality associated with the care plan and where the care plan fits into the workflow chain.

Example:"sample-code"
_intentobject(Element)

Extensions for intent

categoryArray of objects(CodeableConcept)

Identifies what "kind" of plan this is to support differentiation between multiple co-existing plans; e.g. "Home health", "psychiatric", "asthma", "disease management", "wellness plan", etc.

Example:
[ { "text": "Weight management plan" } ]
titlestring(string)^[ \r\n\t\S]+$

Human-friendly name for the care plan.

Example:"example-string"
_titleobject(Element)

Extensions for title

descriptionstring(string)^[ \r\n\t\S]+$

A description of the scope and nature of the plan.

Example:"example-string"
_descriptionobject(Element)

Extensions for description

subjectobject(Reference)required

Identifies the patient or group whose intended care is described by the plan.

Example:
{ "reference": "Patient/example", "display": "Peter James Chalmers" }
encounterobject(Reference)

The Encounter during which this CarePlan was created or to which the creation of this record is tightly associated.

Example:
{ "reference": "Encounter/home" }
periodobject(Period)

Indicates when the plan did (or is intended to) come into effect and end.

Example:
{ "end": "2017-06-01" }
createdstring, (date-time)(dateTime)^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-...

Represents when this particular CarePlan record was created in the system, which is often a system-generated date.

Example:"2024-01-01T00:00:00Z"
_createdobject(Element)

Extensions for created

authorobject(Reference)

When populated, the author is responsible for the care plan. The care plan is attributed to the author.

Example:
{ "reference": "Practitioner/example", "display": "Dr Adam Careful" }
contributorArray of objects(Reference)

Identifies the individual(s) or organization who provided the contents of the care plan.

careTeamArray of objects(Reference)

Identifies all people and organizations who are expected to be involved in the care envisioned by this plan.

Example:
[ { "reference": "CareTeam/example" } ]
addressesArray of objects(Reference)

Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan.

Example:
[ { "reference": "#p1", "display": "obesity" } ]
supportingInfoArray of objects(Reference)

Identifies portions of the patient's record that specifically influenced the formation of the plan. These might include comorbidities, recent procedures, limitations, recent assessments, etc.

goalArray of objects(Reference)

Describes the intended objective(s) of carrying out the care plan.

Example:
[ { "reference": "Goal/example" } ]
activityArray of objects(CarePlan_Activity)

Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc.

Example:
[ { "outcomeCodeableConcept": [ … ], "outcomeReference": [ … ], "detail": { … } } ]
noteArray of objects(Annotation)

General notes about the care plan not covered elsewhere.

Response
{ "resourceType": "CarePlan", "id": "example", "text": { "status": "additional", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <p> A simple care plan to indicate a patient taking their weight once a day because of obesity.</p>\n </div>" }, "contained": [ { … } ], "identifier": [ { … } ], "instantiatesUri": [ "http://example.org/protocol-for-obesity" ], "basedOn": [ { … } ], "replaces": [ { … } ], "partOf": [ { … } ], "status": "active", "intent": "plan", "category": [ { … } ], "description": "Manage obesity and weight loss", "subject": { "reference": "Patient/example", "display": "Peter James Chalmers" }, "encounter": { "reference": "Encounter/home" }, "period": { "end": "2017-06-01" }, "created": "2016-01-01", "author": { "reference": "Practitioner/example", "display": "Dr Adam Careful" }, "careTeam": [ { … } ], "addresses": [ { … } ], "goal": [ { … } ], "activity": [ { … } ] }