{
  "resourceType": "StructureDefinition",
  "id": "3d17e7ad-6404-4d09-89a0-8f2303284c4d",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-10-29T10:28:25.077+00:00"
  },
  "text": {
    "status": "empty",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" />"
  },
  "url": "https://medico-emr.net/medico/r4/sd/CarePlan_Base_1",
  "name": "CarePlan_Base_1",
  "status": "draft",
  "date": "2019-10-29T10:28:22.0360954Z",
  "description": "Base definition for medico CarePlan",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": true,
  "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.source",
        "path": "CarePlan.meta.source",
        "max": "0"
      },
      {
        "id": "CarePlan.meta.profile",
        "path": "CarePlan.meta.profile",
        "definition": "Must point to a place inside https://medico-emr.net/medico/r4/sd/*",
        "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",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type.coding.code"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "max": "1"
      },
      {
        "id": "CarePlan.identifier:medicoResourceId",
        "path": "CarePlan.identifier",
        "sliceName": "medicoResourceId",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/Identifier_medicoResourceId_1"
            ]
          }
        ]
      },
      {
        "id": "CarePlan.instantiatesUri",
        "path": "CarePlan.instantiatesUri",
        "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": [
              "https://medico-emr.net/medico/r4/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",
        "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": [
              "https://medico-emr.net/medico/r4/sd/Reference_SubjectPatient_1"
            ],
            "targetProfile": [
              "https://medico-emr.net/medico/r4/sd/Patient_Patient_1"
            ]
          }
        ]
      },
      {
        "id": "CarePlan.encounter",
        "path": "CarePlan.encounter",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/Reference_ContextEncounter_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.created",
        "path": "CarePlan.created",
        "max": "0"
      },
      {
        "id": "CarePlan.author",
        "path": "CarePlan.author",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/Reference_medicoEmployeeReference_1"
            ],
            "targetProfile": [
              "https://medico-emr.net/medico/r4/sd/Practitioner_Employee_1"
            ]
          }
        ]
      },
      {
        "id": "CarePlan.contributor",
        "path": "CarePlan.contributor",
        "max": "0"
      },
      {
        "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",
        "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": [
              "https://medico-emr.net/medico/r4/sd/Reference_medicoEmployeeReference_1"
            ],
            "targetProfile": [
              "https://medico-emr.net/medico/r4/sd/Practitioner_Employee_1"
            ]
          }
        ]
      },
      {
        "id": "CarePlan.activity.reference",
        "path": "CarePlan.activity.reference",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.instantiatesUri",
        "path": "CarePlan.activity.detail.instantiatesUri",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.goal",
        "path": "CarePlan.activity.detail.goal",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.doNotPerform",
        "path": "CarePlan.activity.detail.doNotPerform",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.scheduled[x]",
        "path": "CarePlan.activity.detail.scheduled[x]",
        "max": "0"
      },
      {
        "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": [
              "https://medico-emr.net/medico/r4/sd/Practitioner_Employee_1"
            ]
          }
        ]
      },
      {
        "id": "CarePlan.activity.detail.performer.id",
        "path": "CarePlan.activity.detail.performer.id",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.performer.type",
        "path": "CarePlan.activity.detail.performer.type",
        "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 https://medico-emr.net/medico/%KUNDE%/sid1/Employee",
        "comment": "Dynamically resolved for validation\r\n--FixedValue=https://medico-emr.net/medico/%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"
      }
    ]
  }
}