<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="offeredin-ext" />
  <url value="http://fhir.xt.dev/StructureDefinition/OfferedInHealthcareService" />
  <version value="1.0.0" />
  <name value="OfferedInHealthcareService" />
  <status value="draft" />
  <date value="2026-03-27T21:38:00+01:00" />
  <publisher value="x-tention Informationstechnologie GmbH" />
  <contact>
    <telecom>
      <system value="email" />
      <value value="fhir.profiling@x-tention.com" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="This backports the offeredIn reference from the R5 HealthcareService to the R4 HealthcareService." />
  <copyright value="x-tention Informationstechnologie GmbH" />
  <fhirVersion value="4.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="HealthcareService" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://fhir.xt.dev/StructureDefinition/OfferedInHealthcareService" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <short value="offeredIn" />
      <definition value="When the HealthcareService is representing a specific, schedulable service, the availableIn property can refer to a generic service." />
      <comment value="For example, if there is a generic Radiology service that offers CT Scans, MRIs, etc. You could have HealthcareService resources for the CT Scans and MRIs, which have an offeredIn reference to the Radiology HealthcareService." />
      <type>
        <code value="Reference" />
      </type>
    </element>
  </differential>
</StructureDefinition>