{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2021-11-23T18:35:09.579+00:00"
  },
  "url": "https://OneComprehensivePatientPlanForChronicDiseases.org/fhir/StructureDefinition/PatientPlan",
  "name": "PatientPlan",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "CarePlan",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CarePlan",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "CarePlan.identifier",
        "path": "CarePlan.identifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "CarePlan.identifier.use",
        "path": "CarePlan.identifier.use",
        "max": "0"
      },
      {
        "id": "CarePlan.identifier.type",
        "path": "CarePlan.identifier.type",
        "max": "0"
      },
      {
        "id": "CarePlan.identifier.system",
        "path": "CarePlan.identifier.system",
        "short": "National SSN system in Denmark",
        "min": 1
      },
      {
        "id": "CarePlan.identifier.value",
        "path": "CarePlan.identifier.value",
        "short": "SSN of the citizen",
        "min": 1
      },
      {
        "id": "CarePlan.identifier.period",
        "path": "CarePlan.identifier.period",
        "max": "0"
      },
      {
        "id": "CarePlan.identifier.assigner",
        "path": "CarePlan.identifier.assigner",
        "max": "0"
      },
      {
        "id": "CarePlan.instantiatesCanonical",
        "path": "CarePlan.instantiatesCanonical",
        "max": "0"
      },
      {
        "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",
        "path": "CarePlan.partOf",
        "max": "0"
      },
      {
        "id": "CarePlan.status",
        "path": "CarePlan.status",
        "fixedCode": "completed"
      },
      {
        "id": "CarePlan.intent",
        "path": "CarePlan.intent",
        "fixedCode": "plan"
      },
      {
        "id": "CarePlan.category",
        "path": "CarePlan.category",
        "max": "0"
      },
      {
        "id": "CarePlan.title",
        "path": "CarePlan.title",
        "max": "0"
      },
      {
        "id": "CarePlan.description",
        "path": "CarePlan.description",
        "max": "0"
      },
      {
        "id": "CarePlan.subject",
        "path": "CarePlan.subject",
        "definition": "Identifies the patient whose intended care is described by the plan.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://OneComprehensivePatientPlanForChronicDiseases.org/fhir/StructureDefinition/Citizen"
            ],
            "aggregation": [
              "bundled"
            ],
            "versioning": "specific"
          }
        ]
      },
      {
        "id": "CarePlan.subject.reference",
        "path": "CarePlan.subject.reference",
        "max": "0"
      },
      {
        "id": "CarePlan.subject.type",
        "path": "CarePlan.subject.type",
        "max": "0",
        "fixedUri": "Citizen"
      },
      {
        "id": "CarePlan.subject.identifier",
        "path": "CarePlan.subject.identifier",
        "max": "0"
      },
      {
        "id": "CarePlan.subject.identifier.system",
        "path": "CarePlan.subject.identifier.system",
        "max": "0"
      },
      {
        "id": "CarePlan.subject.identifier.value",
        "path": "CarePlan.subject.identifier.value",
        "max": "0"
      },
      {
        "id": "CarePlan.subject.identifier.period",
        "path": "CarePlan.subject.identifier.period",
        "max": "0"
      },
      {
        "id": "CarePlan.subject.identifier.assigner",
        "path": "CarePlan.subject.identifier.assigner",
        "max": "0"
      },
      {
        "id": "CarePlan.subject.display",
        "path": "CarePlan.subject.display",
        "max": "0"
      },
      {
        "id": "CarePlan.encounter",
        "path": "CarePlan.encounter",
        "max": "0"
      },
      {
        "id": "CarePlan.period",
        "path": "CarePlan.period",
        "max": "0"
      },
      {
        "id": "CarePlan.created",
        "path": "CarePlan.created",
        "max": "0"
      },
      {
        "id": "CarePlan.author",
        "path": "CarePlan.author",
        "max": "0"
      },
      {
        "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",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://OneComprehensivePatientPlanForChronicDiseases.org/fhir/StructureDefinition/ClinicalImpression",
              "https://OneComprehensivePatientPlanForChronicDiseases.org/fhir/StructureDefinition/Observation"
            ]
          }
        ]
      },
      {
        "id": "CarePlan.supportingInfo.reference",
        "path": "CarePlan.supportingInfo.reference",
        "max": "0"
      },
      {
        "id": "CarePlan.supportingInfo.type",
        "path": "CarePlan.supportingInfo.type",
        "max": "0"
      },
      {
        "id": "CarePlan.supportingInfo.identifier",
        "path": "CarePlan.supportingInfo.identifier",
        "max": "0"
      },
      {
        "id": "CarePlan.supportingInfo.display",
        "path": "CarePlan.supportingInfo.display",
        "max": "0"
      },
      {
        "id": "CarePlan.goal",
        "path": "CarePlan.goal",
        "max": "0"
      },
      {
        "id": "CarePlan.activity",
        "path": "CarePlan.activity",
        "max": "0"
      },
      {
        "id": "CarePlan.note",
        "path": "CarePlan.note",
        "max": "0"
      }
    ]
  }
}