{
  "resourceType": "StructureDefinition",
  "id": "shr-core-ContactDetail",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <p><b>SHR ContactDetail Profile</b></p>\n  <p>Describes an individual and how to reach them.</p>\n  <p><b>SHR Mapping Summary</b></p>\n  <p><pre>shr.core.ContactDetail maps to ContactDetail:\n  HumanName.string maps to name\n  ContactPoint maps to telecom\n</pre></p>\n</div>"
  },
  "url": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-ContactDetail",
  "identifier": [
    {
      "system": "http://standardhealthrecord.org",
      "value": "shr.core.ContactDetail"
    }
  ],
  "version": "0.0.1",
  "name": "SHR ContactDetail Profile",
  "status": "draft",
  "date": "2017-12-20",
  "publisher": "The MITRE Corporation: Standard Health Record Collaborative",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://standardhealthrecord.org"
        }
      ]
    }
  ],
  "description": "Describes an individual and how to reach them.",
  "purpose": "Need to track contact information in the same way across multiple resources.",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "type": "ContactDetail",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ContactDetail",
  "derivation": "constraint",
  "snapshot": {
    "element": [
      {
        "id": "ContactDetail:shr-core-ContactDetail",
        "path": "ContactDetail",
        "short": "SHR ContactDetail Profile",
        "definition": "Describes an individual and how to reach them.",
        "min": 0,
        "max": "*",
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() | (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ContactDetail:shr-core-ContactDetail.id",
        "path": "ContactDetail.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ContactDetail:shr-core-ContactDetail.extension",
        "path": "ContactDetail.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "ContactDetail:shr-core-ContactDetail.name",
        "path": "ContactDetail.name",
        "short": "Name of an individual to contact",
        "definition": "The name of an individual to contact.",
        "comment": "If there is no named individual, the telecom information is for the organization as a whole.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true
      },
      {
        "id": "ContactDetail:shr-core-ContactDetail.telecom",
        "path": "ContactDetail.telecom",
        "short": "Contact details for individual or organization",
        "definition": "The contact details for the individual (if a name was provided) or the organization.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "ContactPoint",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-ContactPoint"
          }
        ],
        "isSummary": true
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "ContactDetail:shr-core-ContactDetail",
        "path": "ContactDetail",
        "short": "SHR ContactDetail Profile",
        "definition": "Describes an individual and how to reach them."
      },
      {
        "id": "ContactDetail:shr-core-ContactDetail.telecom",
        "path": "ContactDetail.telecom",
        "type": [
          {
            "code": "ContactPoint",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-ContactPoint"
          }
        ]
      }
    ]
  }
}