{
  "resourceType": "StructureDefinition",
  "url": "https://example.org/fhir/StructureDefinition/TiarasDecemberPatient",
  "name": "TiarasDecemberPatient",
  "title": "December Training",
  "status": "draft",
  "date": "2025-12-16",
  "description": "Test patient profile from Firely training",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:hospitalid",
        "path": "Patient.identifier",
        "sliceName": "hospitalid",
        "max": "1"
      },
      {
        "id": "Patient.identifier:hospitalid.system",
        "path": "Patient.identifier.system",
        "fixedUri": "http://national.registry.org/ids"
      },
      {
        "id": "Patient.identifier:SSN",
        "path": "Patient.identifier",
        "sliceName": "SSN",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.identifier:SSN.system",
        "path": "Patient.identifier.system",
        "fixedUri": "http://hl7.org/fhir/sid/us-ssn"
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "type": [
          {
            "code": "HumanName",
            "profile": [
              "https://example.org/fhir/StructureDefinition/TiaraDecemberHumanName"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "max": "3",
        "mustSupport": true
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "mustSupport": true
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "constraint": [
          {
            "key": "TempAddress",
            "severity": "error",
            "human": "Please include the period associated with your temporary address.",
            "expression": "(use = 'temp') implies period.exists()"
          }
        ]
      },
      {
        "id": "Patient.address.use",
        "path": "Patient.address.use",
        "condition": [
          "TempAddress"
        ]
      },
      {
        "id": "Patient.address.period",
        "path": "Patient.address.period",
        "condition": [
          "TempAddress"
        ]
      }
    ]
  }
}