{
  "resourceType": "StructureDefinition",
  "url": "http://example.org/fhir/StructureDefinition/PatientProfile",
  "name": "PatientProfile",
  "status": "active",
  "publisher": "InterSystems Iberia",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "min": 1,
        "max": 1,
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "short": "Medical Record Number",
        "definition": "At least one identifier must be an MRN (Medical Record Number)."
      },
      {
        "id": "Patient.identifier.system",
        "path": "Patient.identifier.system",
        "short": "System for MRN",
        "definition": "The identifier system must be the MRN system."
      },
      {
        "id": "Patient.identifier.value",
        "path": "Patient.identifier.value",
        "min": 1,
        "short": "MRN value is required",
        "definition": "The MRN value is required for the identifier."
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "ContactPoint"
          }
        ],
        "short": "Mobile phone number",
        "definition": "At least one mobile phone number is required for the patient."
      },
      {
        "id": "Patient.telecom.system",
        "path": "Patient.telecom.system",
        "patternCode": "phone",
        "short": "The contact point must be a phone number"
      },
      {
        "id": "Patient.telecom.use",
        "path": "Patient.telecom.use",
        "patternCode": "mobile",
        "short": "The phone number must be a mobile number"
      },
      {
        "id": "Patient.deceased",
        "path": "Patient.deceased",
        "min": 0,
        "max": "0",
        "short": "Deceased backbone is not supported",
        "definition": "This profile removes the deceased backbone element entirely."
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender"
        },
        "short": "Gender is required",
        "definition": "The patient's gender must be provided and adhere to the administrative-gender ValueSet."
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "date"
          }
        ],
        "short": "Birth date is required",
        "definition": "The patient's birth date must be provided."
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1,
        "max": 1,
        "type": [
          {
            "code": "HumanName"
          }
        ],
        "short": "Patient Name",
        "definition": "At least one Name must be provided."
      },
      {
        "id": "Patient.name.extension",
        "path": "Patient.name.extension",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "extension",
            "profile": [
              "http://example.org/fhir/StructureDefinition/maternalLastName"
            ]
          }
        ],
        "short": "Maternal last name as part of the first HumanName",
        "definition": "Optional extension to specify the maternal last name for the first HumanName element."
      }
    ]
  }
}