{
  "resourceType": "StructureDefinition",
  "id": "bc-ChildRecord",
  "url": "http://nictiz.nl/fhir/StructureDefinition/bc-ChildRecord",
  "version": "1.3.3",
  "name": "bc-ChildRecord",
  "title": "bc-ChildRecord",
  "status": "active",
  "publisher": "Nictiz",
  "contact": [
    {
      "name": "Nictiz",
      "telecom": [
        {
          "system": "email",
          "value": "geboortezorg@nictiz.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "An EpisodeOfCare profile describing the child care record 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": "EpisodeOfCare",
  "baseDefinition": "http://fhir.nl/fhir/StructureDefinition/nl-core-episodeofcare",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "EpisodeOfCare",
        "path": "EpisodeOfCare",
        "mapping": [
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-9704",
            "comment": "Follow up"
          }
        ]
      },
      {
        "id": "EpisodeOfCare.type",
        "path": "EpisodeOfCare.type",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "coding.code"
            }
          ],
          "rules": "open"
        },
        "mapping": [
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-9705",
            "comment": "Na ontslag"
          },
          {
            "identity": "gebz-peri-v3.2",
            "map": "peri32-dataelement-9735",
            "comment": "Na 2 jaar"
          }
        ]
      },
      {
        "id": "EpisodeOfCare.type:followUpAfterDischarge",
        "path": "EpisodeOfCare.type",
        "sliceName": "followUpAfterDischarge",
        "max": "1"
      },
      {
        "id": "EpisodeOfCare.type:followUpAfterDischarge.coding",
        "path": "EpisodeOfCare.type.coding",
        "patternCoding": {
          "system": "http://snomed.info/sct",
          "code": "406151001"
        }
      },
      {
        "id": "EpisodeOfCare.type:followUpAfter2years",
        "path": "EpisodeOfCare.type",
        "sliceName": "followUpAfter2years",
        "max": "1"
      },
      {
        "id": "EpisodeOfCare.type:followUpAfter2years.coding",
        "path": "EpisodeOfCare.type.coding",
        "patternCoding": {
          "system": "http://snomed.info/sct",
          "code": "199581000000104",
          "display": "Follow-up 2 years (finding)"
        }
      },
      {
        "id": "EpisodeOfCare.patient",
        "path": "EpisodeOfCare.patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/bc-Child"
          }
        ]
      }
    ]
  }
}