<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ca-bc-lra-profile-Group" />
  <url value="http://phsa.ca/fhir/StructureDefinition/ca-bc-lra-profile-Group" />
  <version value="0.1.0" />
  <name value="LRAPASGroup" />
  <title value="Group (PAS-LRA)" />
  <status value="draft" />
  <date value="2024-07-16" />
  <publisher value="Provincial Health Services Authority (BC)" />
  <contact>
    <name value="Provincial Health Services Authority (BC)" />
    <telecom>
      <system value="url" />
      <value value="http://phsa.ca/fhir/" />
    </telecom>
    <telecom>
      <system value="email" />
      <value value="some.email@phsa.ca" />
    </telecom>
  </contact>
  <description value="Enable providers to manage their patient panels in their EMR, enable their EMR to exchange information with PAS" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Group" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Group" />
  <derivation value="constraint" />
  <differential>
    <element id="Group.type">
      <path value="Group.type" />
      <patternCode value="person" />
      <mustSupport value="true" />
    </element>
    <element id="Group.managingEntity">
      <path value="Group.managingEntity" />
      <short value="The physician that owns the panel" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://phsa.ca/fhir/StructureDefinition/ca-bc-lra-profile-pas-Practitioner" />
        <aggregation value="referenced" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Group.member">
      <path value="Group.member" />
      <short value="The members of the panel to be acted upon. Note: current implementation only supports processing of one patient (member)" />
      <min value="1" />
    </element>
    <element id="Group.member.entity">
      <path value="Group.member.entity" />
      <short value="The patient as a member of the panel" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://phsa.ca/fhir/StructureDefinition/ca-bc-lra-profile-pas-Patient" />
        <aggregation value="referenced" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>