<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="NHSEngland-RequestGroup-Genomics" />
  <url value="https://fhir.nhs.uk/StructureDefinition/NHSEngland-RequestGroup-Genomics" />
  <version value="0.3.0" />
  <name value="NHSEngland_RequestGroup_Genomics" />
  <title value="NHSEngland RequestGroup Genomics" />
  <status value="active" />
  <date value="2026-04-16" />
  <publisher value="NHS England" />
  <contact>
    <name value="NHS England" />
    <telecom>
      <system value="email" />
      <value value="interoperabilityteam@nhs.net" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="This profile defines the Genomics constraints and extensions on the International FHIR resource [RequestGroup](http://hl7.org/fhir/StructureDefinition/RequestGroup)." />
  <purpose value="Used for orchestration of familial test requests, where consultand tests need to be processed for interpretation of the proband. For Tumour First + Germline Late requests, the ServiceRequest.basedOn element SHALL be used instead.&#xD;&#xA;&#xD;&#xA;Created and managed by the central service upon receipt of a ServiceRequest with a requisition identifier (proband requests are expected to include the extension:genomicPatientRole=Proband to identify them as the Proband request, at which point the RequestGroup will be created). Any requests submitted to the central service with the same requisition identifier will be added to the RequestGroup as additional action.resource references (it is expected that these will be consultand requests, though alternate scenarios, such as change of proband, are being investigated).&#xD;&#xA;&#xD;&#xA;Aspects of the RequestGroup will be automatically set based on the constituent requests, e.g. propagating status based on statuses of the ServiceRequests." />
  <copyright value="Copyright © 2026+ NHS England Licensed under the Apache License, Version 2.0 (the \\\&quot;License\\\&quot;); you may not use this file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \\\&quot;AS IS\\\&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at  https://www.hl7.org/fhir/license.html." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="RequestGroup" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/RequestGroup" />
  <derivation value="constraint" />
  <differential>
    <element id="RequestGroup.identifier">
      <path value="RequestGroup.identifier" />
      <definition value="Automatically assigned by the central service, matching the ServiceRequest.requisition." />
    </element>
    <element id="RequestGroup.basedOn">
      <path value="RequestGroup.basedOn" />
      <max value="0" />
    </element>
    <element id="RequestGroup.groupIdentifier">
      <path value="RequestGroup.groupIdentifier" />
      <max value="0" />
    </element>
    <element id="RequestGroup.status">
      <path value="RequestGroup.status" />
      <definition value="Automatically assigned by the central service, status will be propagated based on the included ServiceRequests. At the point a ServiceRequest is added, either in `draft` or `active` state, the RequestGroup will be marked as `active`. If all ServiceRequests under the RequestGroup are marked as `completed` or `revoked`, this will be propagated up to the request group level.&#xD;&#xA;Propagation of other statuses is currently under review." />
    </element>
    <element id="RequestGroup.subject">
      <path value="RequestGroup.subject" />
      <definition value="Automatically assigned by the central service. SHALL match the subject referenced from the Proband request." />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/StructureDefinition/NHSEngland-Patient-Genomics" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
      </type>
    </element>
    <element id="RequestGroup.encounter">
      <path value="RequestGroup.encounter" />
      <max value="0" />
    </element>
    <element id="RequestGroup.author">
      <path value="RequestGroup.author" />
      <max value="0" />
    </element>
    <element id="RequestGroup.note">
      <path value="RequestGroup.note" />
      <max value="0" />
    </element>
    <element id="RequestGroup.action">
      <path value="RequestGroup.action" />
      <definition value="Automatically updated by the central service upon receipt of a request with a requisition identifier. Additional requests will be added to an existing request group if they share a requisition identifier with an existing service request." />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>