{
  "resourceType": "CarePlan",
  "id": "gpvisit",
  "text": {
    "status": "additional",
    "div": "\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003e\n      \u003cp\u003e  Represents the flow of a patient within a practice. The plan is created when\n        they arrive and represents the \u0027care\u0027 of the patient over the course of that encounter.\n        They first see the nurse for basic observations (BP, pulse, temp) then the doctor for\n        the consultation and finally the nurse again for a tetanus immunization. As the plan is\n        updated (e.g. a new activity added), different versions of the plan exist, and workflow timings\n        for reporting can be gained by examining the plan history. This example is the version after\n        seeing the doctor, and waiting for the nurse.The plan can either be created \u0027ad hoc\u0027 and modified as\n        the parient progresses, or start with a standard template (which can, of course, be altered to suit the patient.\u003c/p\u003e\n    \u003c/div\u003e"
  },
  "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": "Overseas encounter"
      },
      "subject": {
        "reference": "Patient/100",
        "display": "Peter James Chalmers"
      }
    },
    {
      "resourceType": "CareTeam",
      "id": "careteam",
      "participant": [
        {
          "id": "part1",
          "role": {
            "coding": [
              {
                "system": "http://example.org/local",
                "code": "nur"
              }
            ],
            "text": "nurse"
          },
          "member": {
            "reference": "Practitioner/13",
            "display": "Nurse Nancy"
          }
        },
        {
          "id": "part2",
          "role": {
            "coding": [
              {
                "system": "http://example.org/local",
                "code": "doc"
              }
            ],
            "text": "doctor"
          },
          "member": {
            "reference": "Practitioner/14",
            "display": "Doctor Dave"
          }
        }
      ]
    },
    {
      "resourceType": "Goal",
      "id": "goal",
      "lifecycleStatus": "planned",
      "description": {
        "text": "Complete consultation"
      },
      "subject": {
        "reference": "Patient/100",
        "display": "Peter James Chalmers"
      }
    },
    {
      "resourceType": "Appointment",
      "id": "activity-1",
      "status": "fulfilled",
      "description": "Nurse consultation",
      "start": "2013-01-01T10:38:00+00:00",
      "end": "2013-01-01T10:50:00+00:00",
      "subject": {
        "reference": "Patient/100",
        "display": "Peter James Chalmers"
      },
      "participant": [
        {
          "actor": {
            "reference": "Patient/100",
            "display": "Peter James Chalmers"
          },
          "required": true,
          "status": "accepted"
        },
        {
          "type": [
            {
              "coding": [
                {
                  "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                  "code": "ATND"
                }
              ]
            }
          ],
          "actor": {
            "reference": "Practitioner/13",
            "display": "Nurse Nancy"
          },
          "required": true,
          "status": "accepted"
        }
      ]
    },
    {
      "resourceType": "Appointment",
      "id": "activity-2",
      "status": "proposed",
      "description": "Doctor Consultation",
      "subject": {
        "reference": "Patient/100",
        "display": "Peter James Chalmers"
      },
      "participant": [
        {
          "actor": {
            "reference": "Patient/100",
            "display": "Peter James Chalmers"
          },
          "required": true,
          "status": "accepted"
        },
        {
          "type": [
            {
              "coding": [
                {
                  "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                  "code": "ATND"
                }
              ]
            }
          ],
          "actor": {
            "reference": "Practitioner/14",
            "display": "Doctor Dave"
          },
          "required": true,
          "status": "accepted"
        }
      ]
    }
  ],
  "status": "active",
  "intent": "plan",
  "subject": {
    "reference": "Patient/100",
    "display": "Peter James Chalmers"
  },
  "period": {
    "start": "2013-01-01T10:30:00+00:00"
  },
  "careTeam": [
    {
      "reference": "#careteam"
    }
  ],
  "addresses": [
    {
      "reference": {
        "reference": "#p1",
        "display": "obesity"
      }
    }
  ],
  "goal": [
    {
      "reference": "#goal"
    }
  ],
  "activity": [
    {
      "performedActivity": [
        {
          "reference": {
            "reference": "Encounter/example"
          }
        }
      ],
      "plannedActivityReference": {
        "reference": "#activity-1"
      }
    },
    {
      "plannedActivityReference": {
        "reference": "#activity-2"
      }
    }
  ],
  "meta": {
    "tag": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
        "code": "HTEST",
        "display": "test health data"
      }
    ]
  }
}