{
  "resourceType": "StructureDefinition",
  "id": "PatientForImport",
  "meta": {
    "lastUpdated": "2017-05-18T12:18:51.697+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pa"
    }
  ],
  "url": "http://localhost/StructureDefinition/MyPatient",
  "version": "1.0",
  "name": "MyPatient",
  "title": "Excercise in profiling, patient resource",
  "status": "draft",
  "experimental": true,
  "date": "2017-05-18T07:55:28.2619+00:00",
  "publisher": "PTV",
  "purpose": "Have a look at Forge",
  "fhirVersion": "3.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "http://hl7.org/fhir/StructureDefinition/birthPlace",
        "path": "Patient.extension",
        "sliceName": "birthPlace",
        "short": "Mandatory birth place",
        "definition": "Mandatory birth place as a string value",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/birthPlace"
          }
        ]
      },
      {
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "civicRegistrationNumber",
        "path": "Patient.identifier",
        "sliceName": "Civic registration number",
        "min": 1,
        "max": "1",
        "fixedIdentifier": {
          "value": "urn:oid:1.2.752.129.2.1.3.1"
        }
      },
      {
        "path": "Patient.identifier.system",
        "min": 1
      },
      {
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "hospitalId",
        "path": "Patient.identifier",
        "sliceName": "Hospital ID",
        "short": "A hopsital specific identifier for this patient",
        "max": "1",
        "fixedIdentifier": {
          "value": "urn:oid:hopsitalId"
        }
      },
      {
        "path": "Patient.identifier.system",
        "min": 1
      },
      {
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "path": "Patient.name",
        "min": 1
      },
      {
        "path": "Patient.name.family",
        "min": 1
      },
      {
        "path": "Patient.name.given",
        "min": 1
      },
      {
        "path": "Patient.telecom",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "email",
        "path": "Patient.telecom",
        "sliceName": "Email address",
        "min": 1
      },
      {
        "path": "Patient.telecom.system",
        "min": 1,
        "fixedCode": "email"
      },
      {
        "path": "Patient.telecom.value",
        "min": 1
      },
      {
        "id": "phone",
        "path": "Patient.telecom",
        "sliceName": "Telehone number"
      },
      {
        "path": "Patient.telecom.system",
        "min": 1,
        "fixedCode": "phone"
      },
      {
        "path": "Patient.telecom.value",
        "min": 1
      },
      {
        "path": "Patient.gender",
        "min": 1
      },
      {
        "path": "Patient.birthDate",
        "min": 1
      },
      {
        "path": "Patient.generalPractitioner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "StructureDefinition/MyPractitioner"
          }
        ]
      }
    ]
  }
}