{
  "resourceType": "StructureDefinition",
  "id": "shr-core-OnBehalfOf-extension",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <p><b>SHR OnBehalfOf Extension</b></p>\n  <p>The party represented by the actual participant.</p>\n</div>"
  },
  "url": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-OnBehalfOf-extension",
  "identifier": [
    {
      "system": "http://standardhealthrecord.org",
      "value": "shr.core.OnBehalfOf"
    }
  ],
  "version": "0.0.1",
  "name": "SHR OnBehalfOf Extension",
  "title": "SHR OnBehalfOf Extension",
  "status": "draft",
  "date": "2017-12-20",
  "publisher": "The MITRE Corporation: Standard Health Record Collaborative",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://standardhealthrecord.org"
        }
      ]
    }
  ],
  "description": "The party represented by the actual participant.",
  "fhirVersion": "3.0.1",
  "kind": "complex-type",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "*"
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension:onbehalfof",
        "path": "Extension",
        "short": "SHR OnBehalfOf Extension",
        "definition": "The party represented by the actual participant.",
        "min": 0,
        "max": "*",
        "constraint": [
          {
            "key": "choice-1",
            "severity": "error",
            "human": "shr-core-OnBehalfOf-extension SHALL have either extension('uri') or extension('party')",
            "expression": "( extension('uri').url | extension('party').url ).distinct().count() == 1"
          }
        ]
      },
      {
        "id": "Extension:onbehalfof.extension:uri",
        "path": "Extension.extension",
        "sliceName": "uri",
        "definition": "The party represented by the actual participant.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/primitive-uri-extension"
          }
        ]
      },
      {
        "id": "Extension:onbehalfof.extension:party",
        "path": "Extension.extension",
        "sliceName": "party",
        "definition": "A person, organization, or object that be involved in a healthcare activity. A party has a separate and distinct existence, and objective or conceptual reality. Includes information, physical objects, and roles.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Party-extension"
          }
        ]
      },
      {
        "id": "Extension:onbehalfof.url",
        "path": "Extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-OnBehalfOf-extension"
      },
      {
        "id": "Extension:onbehalfof.value[x]",
        "path": "Extension.value[x]",
        "min": 0,
        "max": "0"
      }
    ]
  }
}