{
  "resourceType": "StructureDefinition",
  "id": "emergency-contact-details",
  "url": "http://example.org/fhir/StructureDefinition/emergency-contact-details",
  "version": "1.0.0",
  "name": "EmergencyContactDetails",
  "status": "draft",
  "publisher": "Example Publisher",
  "description": "A complex extension to capture emergency contact details.",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "snapshot": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Emergency contact details",
        "definition": "A complex extension to capture emergency contact details.",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "sliceName": "name",
        "short": "Name of the emergency contact",
        "definition": "The name of the emergency contact.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Extension.extension:name",
        "path": "Extension.extension",
        "sliceName": "name",
        "short": "Name of the emergency contact",
        "definition": "The name of the emergency contact.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "sliceName": "relationship",
        "short": "Relationship to the patient",
        "definition": "The relationship of the emergency contact to the patient.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Extension.extension:relationship",
        "path": "Extension.extension",
        "sliceName": "relationship",
        "short": "Relationship to the patient",
        "definition": "The relationship of the emergency contact to the patient.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "sliceName": "preferredContactMethod",
        "short": "Preferred contact method",
        "definition": "The preferred contact method for the emergency contact.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Extension.extension:preferredContactMethod",
        "path": "Extension.extension",
        "sliceName": "preferredContactMethod",
        "short": "Preferred contact method",
        "definition": "The preferred contact method for the emergency contact.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      }
    ]
  }
}