{
  "resourceType": "StructureDefinition",
  "id": "offeredin-ext",
  "url": "http://fhir.xt.dev/StructureDefinition/OfferedInHealthcareService",
  "version": "1.0.0",
  "name": "OfferedInHealthcareService",
  "status": "draft",
  "date": "2026-03-27T20:38:00+00:00",
  "publisher": "x-tention Informationstechnologie GmbH",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "fhir.profiling@x-tention.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "This backports the offeredIn reference from the R5 HealthcareService to the R4 HealthcareService.",
  "copyright": "x-tention Informationstechnologie GmbH",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "HealthcareService"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://fhir.xt.dev/StructureDefinition/OfferedInHealthcareService"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "short": "offeredIn",
        "definition": "When the HealthcareService is representing a specific, schedulable service, the availableIn property can refer to a generic service.",
        "comment": "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": "Reference"
          }
        ]
      }
    ]
  }
}