{
  "resourceType": "StructureDefinition",
  "id": "shr-entity-Group",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <p><b>SHR Group Profile</b></p>\n  <p>A set of entities (personnel, material, or places) to be considered together. May be a pool of like-type resources, a team, or combination of personnel, material and places.</p>\n  <p><b>SHR Mapping Summary</b></p>\n  <p><pre>shr.entity.Group maps to Group:\n  ActiveFlag maps to active\n  Type maps to type\n  Definitional maps to actual\n  constrain code to 0..0\n  Title maps to name\n  MembershipCriterion maps to characteristic.value[x]\n  MembershipCriterion.ObservationCode maps to characteristic.code\n  MembershipCriterion.ExcludeFlag maps to characteristic.exclude\n  MembershipCriterion.TimePeriod maps to characteristic.period\n  Member.Patient maps to member.entity\n  Member.Practitioner maps to member.entity\n  Member.Device maps to member.entity\n  Member.Medication maps to member.entity\n  Member.Substance maps to member.entity\n  Member.ParticipationPeriod maps to member.period\n  Member.ActiveFlag maps to member.inactive // TODO this is an inverse TF mapping\n  Count maps to quantity\n</pre></p>\n</div>"
  },
  "url": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Group",
  "identifier": [
    {
      "system": "http://standardhealthrecord.org",
      "value": "shr.entity.Group"
    }
  ],
  "version": "0.0.1",
  "name": "SHR Group Profile",
  "status": "draft",
  "date": "2017-12-20",
  "publisher": "The MITRE Corporation: Standard Health Record Collaborative",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://standardhealthrecord.org"
        }
      ]
    }
  ],
  "description": "A set of entities (personnel, material, or places) to be considered together. May be a pool of like-type resources, a team, or combination of personnel, material and places.",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Group",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Group",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Group:shr-entity-Group",
        "path": "Group",
        "short": "SHR Group Profile",
        "definition": "A set of entities (personnel, material, or places) to be considered together. May be a pool of like-type resources, a team, or combination of personnel, material and places."
      },
      {
        "id": "Group:shr-entity-Group.extension:relatedencounter",
        "path": "Group.extension",
        "sliceName": "relatedencounter",
        "definition": "If content was generated during a patient encounter, related encounter is the encounter where the information was gained.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-RelatedEncounter-extension"
          }
        ]
      },
      {
        "id": "Group:shr-entity-Group.extension:author",
        "path": "Group.extension",
        "sliceName": "author",
        "definition": "The person or organization who created the entry and is responsible for (and may certify) the content.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Author-extension"
          }
        ]
      },
      {
        "id": "Group:shr-entity-Group.extension:informant",
        "path": "Group.extension",
        "sliceName": "informant",
        "definition": "The person or entity that provided the information in the entry, as distinct from who created the entry, e.g. the subject (patient), medical professional, family member, device or software program.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Informant-extension"
          }
        ]
      },
      {
        "id": "Group:shr-entity-Group.code",
        "path": "Group.code",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Group:shr-entity-Group.characteristic",
        "path": "Group.characteristic"
      },
      {
        "id": "Group:shr-entity-Group.characteristic.value[x]",
        "path": "Group.characteristic.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "boolean"
          },
          {
            "code": "Quantity",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Quantity"
          },
          {
            "code": "Range",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Range"
          }
        ]
      },
      {
        "id": "Group:shr-entity-Group.member",
        "path": "Group.member"
      },
      {
        "id": "Group:shr-entity-Group.member.entity",
        "path": "Group.member.entity",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-device-Device"
          },
          {
            "code": "Reference",
            "targetProfile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Medication"
          },
          {
            "code": "Reference",
            "targetProfile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Substance"
          }
        ]
      }
    ]
  }
}