{
  "resourceType": "StructureDefinition",
  "id": "organizationspecificvalueset-profile",
  "url": "http://fhir.xt.dev/StructureDefinition/OrganizationSpecificValueSet",
  "version": "2.1.0",
  "name": "OrganizationSpecificValueSet",
  "status": "active",
  "date": "2026-07-13T15:11:37.5181259+00:00",
  "publisher": "x-tention Informationstechnologie GmbH",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "fhir.profiling@x-tention.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "A type of ValueSet that is created based on a simple data table and therefore carries less metadata than generally recommended.",
  "copyright": "x-tention Informationstechnologie GmbH",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "ValueSet",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ValueSet",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ValueSet.meta",
        "path": "ValueSet.meta"
      },
      {
        "id": "ValueSet.meta.security",
        "path": "ValueSet.meta.security",
        "definition": "Security labels applied to this resource. At least one security label should be included to identify the owner organization (usually a Level 1 org) with system \"urn:ietf:rfc:3986\" and the primary-org-id (prefixed with \"urn:oid:\") as code, consistent with the useContext organizationSlice."
      },
      {
        "id": "ValueSet.url",
        "path": "ValueSet.url",
        "short": "Canonical OID for this value set, represented as a URI",
        "comment": "Must be a urn:oid: \r\nMultiple instances may share the same URL if they have a distinct version.",
        "min": 1
      },
      {
        "id": "ValueSet.identifier",
        "path": "ValueSet.identifier",
        "short": "OID",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ValueSet.identifier.system",
        "path": "ValueSet.identifier.system",
        "min": 1,
        "fixedUri": "urn:ietf:rfc:3986"
      },
      {
        "id": "ValueSet.identifier.value",
        "path": "ValueSet.identifier.value",
        "min": 1
      },
      {
        "id": "ValueSet.identifier.period",
        "path": "ValueSet.identifier.period",
        "max": "0"
      },
      {
        "id": "ValueSet.version",
        "path": "ValueSet.version",
        "definition": "Timestamp in the format yyyymmdd, e.g. 20240207",
        "min": 1
      },
      {
        "id": "ValueSet.date",
        "path": "ValueSet.date",
        "min": 1
      },
      {
        "id": "ValueSet.publisher",
        "path": "ValueSet.publisher",
        "short": "Name of the publisher organization",
        "definition": "The name of the referenced organization, which is assumed to be the publisher of this ValueSet",
        "min": 1
      },
      {
        "id": "ValueSet.useContext",
        "path": "ValueSet.useContext",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code.system"
            },
            {
              "type": "value",
              "path": "code.code"
            }
          ],
          "description": "The code is used to distinguish between different useContexts.",
          "ordered": false,
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "ValueSet.useContext:organizationSlice",
        "path": "ValueSet.useContext",
        "sliceName": "organizationSlice",
        "short": "The organization context of the content",
        "definition": "The content was developed to support the referenced organization.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ValueSet.useContext:organizationSlice.code",
        "path": "ValueSet.useContext.code",
        "comment": "The fixed code identifies the useContext as referencing an organization."
      },
      {
        "id": "ValueSet.useContext:organizationSlice.code.system",
        "path": "ValueSet.useContext.code.system",
        "min": 1,
        "fixedUri": "http://fhir.xt.dev/CodeSystem/TerminologyUseContexts"
      },
      {
        "id": "ValueSet.useContext:organizationSlice.code.code",
        "path": "ValueSet.useContext.code.code",
        "min": 1,
        "fixedCode": "organization"
      },
      {
        "id": "ValueSet.useContext:organizationSlice.value[x]",
        "path": "ValueSet.useContext.value[x]",
        "short": "Organization Context",
        "definition": "Literal reference to the organizational context of the ValueSet",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "ValueSet.useContext:organizationSlice.value[x].reference",
        "path": "ValueSet.useContext.value[x].reference",
        "short": "Literal organization reference",
        "definition": "A reference to a location at which the organization is found. The reference must be a relative reference (relative to the service base URL). The reference may not be version specific.",
        "min": 1
      },
      {
        "id": "ValueSet.useContext:organizationSlice.value[x].display",
        "path": "ValueSet.useContext.value[x].display",
        "short": "Organization Name",
        "definition": "Organization.name of the referenced organization.",
        "min": 1
      },
      {
        "id": "ValueSet.useContext:focusSlice",
        "path": "ValueSet.useContext",
        "sliceName": "focusSlice",
        "max": "1"
      },
      {
        "id": "ValueSet.useContext:focusSlice.code.system",
        "path": "ValueSet.useContext.code.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/usage-context-type"
      },
      {
        "id": "ValueSet.useContext:focusSlice.code.code",
        "path": "ValueSet.useContext.code.code",
        "min": 1,
        "fixedCode": "focus"
      },
      {
        "id": "ValueSet.useContext:focusSlice.value[x]",
        "path": "ValueSet.useContext.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "ValueSet.useContext:focusSlice.value[x].coding",
        "path": "ValueSet.useContext.value[x].coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ValueSet.useContext:focusSlice.value[x].coding.system",
        "path": "ValueSet.useContext.value[x].coding.system",
        "min": 1
      },
      {
        "id": "ValueSet.useContext:focusSlice.value[x].coding.version",
        "path": "ValueSet.useContext.value[x].coding.version",
        "max": "0"
      },
      {
        "id": "ValueSet.useContext:focusSlice.value[x].coding.code",
        "path": "ValueSet.useContext.value[x].coding.code",
        "min": 1
      },
      {
        "id": "ValueSet.useContext:focusSlice.value[x].coding.userSelected",
        "path": "ValueSet.useContext.value[x].coding.userSelected",
        "max": "0"
      },
      {
        "id": "ValueSet.useContext:focusSlice.value[x].text",
        "path": "ValueSet.useContext.value[x].text",
        "max": "0"
      },
      {
        "id": "ValueSet.compose",
        "path": "ValueSet.compose",
        "max": "0"
      },
      {
        "id": "ValueSet.expansion",
        "path": "ValueSet.expansion",
        "min": 1
      },
      {
        "id": "ValueSet.expansion.identifier",
        "path": "ValueSet.expansion.identifier",
        "max": "0"
      },
      {
        "id": "ValueSet.expansion.total",
        "path": "ValueSet.expansion.total",
        "min": 1
      },
      {
        "id": "ValueSet.expansion.offset",
        "path": "ValueSet.expansion.offset",
        "max": "0"
      },
      {
        "id": "ValueSet.expansion.parameter",
        "path": "ValueSet.expansion.parameter",
        "max": "0"
      },
      {
        "id": "ValueSet.expansion.contains",
        "path": "ValueSet.expansion.contains",
        "min": 1
      },
      {
        "id": "ValueSet.expansion.contains.abstract",
        "path": "ValueSet.expansion.contains.abstract",
        "max": "0"
      },
      {
        "id": "ValueSet.expansion.contains.version",
        "path": "ValueSet.expansion.contains.version",
        "max": "0"
      },
      {
        "id": "ValueSet.expansion.contains.code",
        "path": "ValueSet.expansion.contains.code",
        "min": 1
      },
      {
        "id": "ValueSet.expansion.contains.display",
        "path": "ValueSet.expansion.contains.display",
        "min": 1
      },
      {
        "id": "ValueSet.expansion.contains.designation",
        "path": "ValueSet.expansion.contains.designation",
        "comment": "The designations must include a ISO639-1 (2-character) language code",
        "min": 1
      },
      {
        "id": "ValueSet.expansion.contains.contains",
        "path": "ValueSet.expansion.contains.contains",
        "max": "0"
      }
    ]
  }
}