{
  "resourceType": "StructureDefinition",
  "id": "df0e9fc0-030b-4e63-a9ae-5ce2765d074a",
  "meta": {
    "lastUpdated": "2019-02-14T15:12:12.4929463+00:00"
  },
  "text": {
    "status": "empty",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" />"
  },
  "url": "http://medico-emr.net/stu3/sd/CarePlan-Base-1",
  "name": "CarePlan-Base-1",
  "status": "draft",
  "date": "2019-02-14T15:12:12.3498243+00:00",
  "description": "Base definition for medico CarePlan",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "CarePlan",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CarePlan",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "CarePlan.id",
        "path": "CarePlan.id",
        "min": 1
      },
      {
        "id": "CarePlan.meta",
        "path": "CarePlan.meta",
        "min": 1
      },
      {
        "id": "CarePlan.meta.id",
        "path": "CarePlan.meta.id",
        "max": "0"
      },
      {
        "id": "CarePlan.meta.versionId",
        "path": "CarePlan.meta.versionId",
        "max": "0"
      },
      {
        "id": "CarePlan.meta.lastUpdated",
        "path": "CarePlan.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "CarePlan.meta.profile",
        "path": "CarePlan.meta.profile",
        "min": 1,
        "max": "1"
      },
      {
        "id": "CarePlan.meta.security",
        "path": "CarePlan.meta.security",
        "max": "0"
      },
      {
        "id": "CarePlan.meta.tag",
        "path": "CarePlan.meta.tag",
        "max": "0"
      },
      {
        "id": "CarePlan.implicitRules",
        "path": "CarePlan.implicitRules",
        "max": "0"
      },
      {
        "id": "CarePlan.language",
        "path": "CarePlan.language",
        "max": "0"
      },
      {
        "id": "CarePlan.text",
        "path": "CarePlan.text",
        "max": "0"
      },
      {
        "id": "CarePlan.contained",
        "path": "CarePlan.contained",
        "max": "0"
      },
      {
        "id": "CarePlan.identifier",
        "path": "CarePlan.identifier",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": "http://medico-emr.net/stu3/sd/Identifier-medicoResourceId-1"
          }
        ]
      },
      {
        "id": "CarePlan.definition",
        "path": "CarePlan.definition",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/PlanDefinition"
          }
        ]
      },
      {
        "id": "CarePlan.definition.id",
        "path": "CarePlan.definition.id",
        "max": "0"
      },
      {
        "id": "CarePlan.definition.reference",
        "path": "CarePlan.definition.reference",
        "min": 1
      },
      {
        "id": "CarePlan.definition.identifier",
        "path": "CarePlan.definition.identifier",
        "min": 1,
        "type": [
          {
            "code": "Identifier",
            "profile": "http://medico-emr.net/stu3/sd/Identifier-medicoResourceId-1"
          }
        ]
      },
      {
        "id": "CarePlan.definition.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "CarePlan.definition.display",
        "max": "0"
      },
      {
        "id": "CarePlan.basedOn",
        "path": "CarePlan.basedOn",
        "max": "0"
      },
      {
        "id": "CarePlan.replaces",
        "path": "CarePlan.replaces",
        "max": "0"
      },
      {
        "id": "CarePlan.partOf.id",
        "path": "CarePlan.partOf.id",
        "max": "0"
      },
      {
        "id": "CarePlan.partOf.reference",
        "path": "CarePlan.partOf.reference",
        "min": 1
      },
      {
        "id": "CarePlan.partOf.identifier",
        "path": "CarePlan.partOf.identifier",
        "min": 1,
        "type": [
          {
            "code": "Identifier",
            "profile": "http://medico-emr.net/stu3/sd/Identifier-medicoResourceId-1"
          }
        ]
      },
      {
        "id": "CarePlan.status",
        "path": "CarePlan.status",
        "definition": "medico supports active, cancelled"
      },
      {
        "id": "CarePlan.intent",
        "path": "CarePlan.intent",
        "fixedCode": "plan"
      },
      {
        "id": "CarePlan.category.id",
        "path": "CarePlan.category.id",
        "max": "0"
      },
      {
        "id": "CarePlan.category.coding",
        "path": "CarePlan.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "CarePlan.category.coding.id",
        "path": "CarePlan.category.coding.id",
        "max": "0"
      },
      {
        "id": "CarePlan.category.coding.system",
        "path": "CarePlan.category.coding.system",
        "min": 1
      },
      {
        "id": "CarePlan.category.coding.version",
        "path": "CarePlan.category.coding.version",
        "max": "0"
      },
      {
        "id": "CarePlan.category.coding.code",
        "path": "CarePlan.category.coding.code",
        "min": 1
      },
      {
        "id": "CarePlan.category.coding.userSelected",
        "path": "CarePlan.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "CarePlan.category.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "CarePlan.category.text",
        "max": "0"
      },
      {
        "id": "CarePlan.title",
        "path": "CarePlan.title",
        "definition": "Plain text name for the care plan (Pflegemassnahme)"
      },
      {
        "id": "CarePlan.subject",
        "path": "CarePlan.subject",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://medico-emr.net/stu3/sd/Reference-SubjectPatient-1",
            "targetProfile": "http://medico-emr.net/stu3/sd/Reference-SubjectPatient-1"
          }
        ]
      },
      {
        "id": "CarePlan.context",
        "path": "CarePlan.context",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://medico-emr.net/stu3/sd/Reference-ContextEncounter-1",
            "targetProfile": "http://medico-emr.net/stu3/sd/Encounter-Case-1"
          }
        ]
      },
      {
        "id": "CarePlan.period",
        "path": "CarePlan.period",
        "min": 1
      },
      {
        "id": "CarePlan.period.id",
        "path": "CarePlan.period.id",
        "max": "0"
      },
      {
        "id": "CarePlan.period.start",
        "path": "CarePlan.period.start",
        "min": 1
      },
      {
        "id": "CarePlan.author",
        "path": "CarePlan.author",
        "type": [
          {
            "code": "Reference",
            "profile": "http://medico-emr.net/stu3/sd/Reference-medicoEmployeeReference-1",
            "targetProfile": "http://medico-emr.net/stu3/sd/Practitioner-Employee-1"
          }
        ]
      },
      {
        "id": "CarePlan.careTeam",
        "path": "CarePlan.careTeam",
        "max": "0"
      },
      {
        "id": "CarePlan.addresses",
        "path": "CarePlan.addresses",
        "max": "0"
      },
      {
        "id": "CarePlan.supportingInfo",
        "path": "CarePlan.supportingInfo",
        "max": "0"
      },
      {
        "id": "CarePlan.goal",
        "path": "CarePlan.goal",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.id",
        "path": "CarePlan.activity.id",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.outcomeCodeableConcept.id",
        "path": "CarePlan.activity.outcomeCodeableConcept.id",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.outcomeCodeableConcept.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "CarePlan.activity.outcomeCodeableConcept.text",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.outcomeReference",
        "path": "CarePlan.activity.outcomeReference",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.progress.author[x]",
        "path": "CarePlan.activity.progress.author[x]",
        "type": [
          {
            "code": "Reference",
            "profile": "http://medico-emr.net/stu3/sd/Reference-medicoEmployeeReference-1",
            "targetProfile": "http://medico-emr.net/stu3/sd/Practitioner-Employee-1"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "CarePlan.activity.reference",
        "path": "CarePlan.activity.reference",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.goal",
        "path": "CarePlan.activity.detail.goal",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.prohibited",
        "path": "CarePlan.activity.detail.prohibited",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.scheduled[x]:scheduledPeriod",
        "path": "CarePlan.activity.detail.scheduledPeriod",
        "sliceName": "scheduledPeriod",
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "CarePlan.activity.detail.scheduled[x]:scheduledPeriod.id",
        "path": "CarePlan.activity.detail.scheduledPeriod.id",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.scheduled[x]:scheduledPeriod.start",
        "path": "CarePlan.activity.detail.scheduledPeriod.start",
        "min": 1
      },
      {
        "id": "CarePlan.activity.detail.location",
        "path": "CarePlan.activity.detail.location",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.performer",
        "path": "CarePlan.activity.detail.performer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://medico-emr.net/stu3/sd/Practitioner-Employee-1"
          }
        ]
      },
      {
        "id": "CarePlan.activity.detail.performer.id",
        "path": "CarePlan.activity.detail.performer.id",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.performer.identifier.id",
        "path": "CarePlan.activity.detail.performer.identifier.id",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.performer.identifier.use",
        "path": "CarePlan.activity.detail.performer.identifier.use",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.performer.identifier.type",
        "path": "CarePlan.activity.detail.performer.identifier.type",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.performer.identifier.system",
        "path": "CarePlan.activity.detail.performer.identifier.system",
        "definition": "Must be a constant underneath http://medico-emr.net/%KUNDE%/sid1/Employee",
        "comment": "Dynamically resolved for validation\r\n--FixedValue=http://medico-emr.net/%KUNDE%/sid1/Employee",
        "min": 1
      },
      {
        "id": "CarePlan.activity.detail.performer.identifier.value",
        "path": "CarePlan.activity.detail.performer.identifier.value",
        "min": 1
      },
      {
        "id": "CarePlan.activity.detail.performer.identifier.period",
        "path": "CarePlan.activity.detail.performer.identifier.period",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.performer.identifier.assigner",
        "path": "CarePlan.activity.detail.performer.identifier.assigner",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.product[x]",
        "path": "CarePlan.activity.detail.product[x]",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.dailyAmount",
        "path": "CarePlan.activity.detail.dailyAmount",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.quantity.id",
        "path": "CarePlan.activity.detail.quantity.id",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.description",
        "path": "CarePlan.activity.detail.description",
        "max": "0"
      }
    ]
  }
}