{
  "resourceType": "StructureDefinition",
  "id": "bc-CareAgreement",
  "url": "http://nictiz.nl/fhir/StructureDefinition/bc-CareAgreement",
  "version": "1.3.3",
  "name": "bc-CareAgreement",
  "title": "bc-CareAgreement",
  "status": "active",
  "publisher": "Nictiz",
  "contact": [
    {
      "name": "Nictiz",
      "telecom": [
        {
          "system": "email",
          "value": "geboortezorg@nictiz.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "A CarePlan profile describing the care arrangement between a pregnant woman and her caregiver(s) as defined by BabyConnect.",
  "copyright": "CC0",
  "fhirVersion": "3.0.2",
  "mapping": [
    {
      "identity": "gebz-peri-v3.2",
      "uri": "https://decor.nictiz.nl/art-decor/decor-datasets-\\-peri20-?id=2.16.840.1.113883.2.4.3.11.60.90.77.1.6&effectiveDate=2016-09-08T00%3A00%3A00&conceptId=2.16.840.1.113883.2.4.3.11.60.90.77.2.6.4&conceptEffectiveDate=2016-09-08T00%3A00%3A00",
      "name": "Geboortezorg 3.2"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "CarePlan",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CarePlan",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "CarePlan",
        "path": "CarePlan",
        "mapping": [
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3841",
            "comment": "ZorgAfspraak"
          },
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3871",
            "comment": "ZorgAfspraak"
          }
        ]
      },
      {
        "id": "CarePlan.category",
        "path": "CarePlan.category",
        "min": 1
      },
      {
        "id": "CarePlan.category.coding",
        "path": "CarePlan.category.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "CarePlan.category.coding:carePlanCode",
        "path": "CarePlan.category.coding",
        "sliceName": "carePlanCode",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "system": "http://snomed.info/sct",
          "code": "288834001"
        }
      },
      {
        "id": "CarePlan.period.start",
        "path": "CarePlan.period.start",
        "mapping": [
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3842",
            "comment": "BeginDatum"
          }
        ]
      },
      {
        "id": "CarePlan.period.end",
        "path": "CarePlan.period.end",
        "mapping": [
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3843",
            "comment": "EindDatum"
          }
        ]
      },
      {
        "id": "CarePlan.author",
        "path": "CarePlan.author",
        "definition": "Identifies the individual(s) or ogranization who is responsible for the content of the care plan. This can be either the contributor and/or the coordinator of the care plan. Use the isCoordinator and isContributor extensions to indicate the role of the author.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/bc-Woman"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-careteam"
          }
        ],
        "mapping": [
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3845",
            "comment": "Patient"
          },
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3865",
            "comment": "Patient"
          },
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3847",
            "comment": "Contactpersoon"
          },
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3866",
            "comment": "Contactpersoon"
          },
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3849",
            "comment": "Zorgverlener"
          },
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3867",
            "comment": "Zorgverlener"
          },
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3844",
            "comment": "AfspraakPartijen"
          }
        ]
      },
      {
        "id": "CarePlan.author.extension:practitionerRole",
        "path": "CarePlan.author.extension",
        "sliceName": "practitionerRole",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"
          }
        ],
        "isModifier": false,
        "mapping": [
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3849",
            "comment": "Zorgverlener"
          },
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3867",
            "comment": "Zorgverlener"
          }
        ]
      },
      {
        "id": "CarePlan.author.extension:practitionerRole.valueReference:valueReference",
        "path": "CarePlan.author.extension.valueReference",
        "sliceName": "valueReference",
        "mapping": [
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3864",
            "comment": "Zorgverlener"
          }
        ]
      },
      {
        "id": "CarePlan.author.extension:isCoordinator",
        "path": "CarePlan.author.extension",
        "sliceName": "isCoordinator",
        "definition": "Indicates if the .author is responsible for coordinating the execution of the activities of the care plan. Set this element to true if the health professional referenced in .author is the coordinator of the care plan.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/bc-careplan-isCoordinator"
          }
        ],
        "isModifier": false,
        "mapping": [
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3858",
            "comment": "Coordinator"
          }
        ]
      },
      {
        "id": "CarePlan.author.extension:isContributor",
        "path": "CarePlan.author.extension",
        "sliceName": "isContributor",
        "definition": "Indicates if the .author is one of the individual(s) who agreed with the care plan. Set this element to true if the contact person, health professional or patient referenced in .author is one of the agreement parties.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/bc-careplan-isContributor"
          }
        ],
        "isModifier": false,
        "mapping": [
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3844",
            "comment": "AfspraakPartijen"
          }
        ]
      },
      {
        "id": "CarePlan.addresses",
        "path": "CarePlan.addresses",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-Problem"
          }
        ],
        "mapping": [
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3862",
            "comment": "Probleem zorgafspraak"
          }
        ]
      },
      {
        "id": "CarePlan.activity.detail.code.text",
        "path": "CarePlan.activity.detail.code.text",
        "mapping": [
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3860",
            "comment": "Activiteit"
          }
        ]
      },
      {
        "id": "CarePlan.activity.detail.performer",
        "path": "CarePlan.activity.detail.performer",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "mapping": [
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3851",
            "comment": "Uitvoerder"
          }
        ]
      },
      {
        "id": "CarePlan.activity.detail.performer.extension:practitionerRole",
        "path": "CarePlan.activity.detail.performer.extension",
        "sliceName": "practitionerRole",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"
          }
        ],
        "isModifier": false,
        "mapping": [
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3856",
            "comment": "Zorgverlener"
          }
        ]
      },
      {
        "id": "CarePlan.activity.detail.performer:healthProfessional",
        "path": "CarePlan.activity.detail.performer",
        "sliceName": "healthProfessional",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          }
        ],
        "mapping": [
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3856",
            "comment": "Zorgverlener"
          }
        ]
      },
      {
        "id": "CarePlan.activity.detail.performer:patient",
        "path": "CarePlan.activity.detail.performer",
        "sliceName": "patient",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ],
        "mapping": [
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3852",
            "comment": "Patient"
          }
        ]
      },
      {
        "id": "CarePlan.activity.detail.performer:contactPerson",
        "path": "CarePlan.activity.detail.performer",
        "sliceName": "contactPerson",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          }
        ],
        "mapping": [
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3854",
            "comment": "Contactpersoon"
          }
        ]
      },
      {
        "id": "CarePlan.activity.detail.description",
        "path": "CarePlan.activity.detail.description",
        "mapping": [
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-3861",
            "comment": "Toelichting"
          }
        ]
      }
    ]
  }
}