{
  "resourceType": "StructureDefinition",
  "id": "HealthApp",
  "url": "https://fhir.bfarm.de/StructureDefinition/HealthApp",
  "version": "3.1.0-TEST",
  "name": "HealthApp",
  "title": "HealthApp",
  "status": "active",
  "description": "Definition of a digital health application (DiGA) or digital nursing application (DiPA).",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "DeviceDefinition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DeviceDefinition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DeviceDefinition",
        "path": "DeviceDefinition",
        "short": "A digital application",
        "definition": "Represents information about a digital health application (DiGA) or digital nursing application (DiPA).",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension",
        "path": "DeviceDefinition.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:handbook",
        "path": "DeviceDefinition.extension",
        "sliceName": "handbook",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.bfarm.de/StructureDefinition/HealthAppHandbook"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:hiisTrustAttributes",
        "path": "DeviceDefinition.extension",
        "sliceName": "hiisTrustAttributes",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.bfarm.de/StructureDefinition/HealthAppHiisTrustAttributes"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:media",
        "path": "DeviceDefinition.extension",
        "sliceName": "media",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.bfarm.de/StructureDefinition/HealthAppMedia"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:mivSet",
        "path": "DeviceDefinition.extension",
        "sliceName": "mivSet",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.bfarm.de/StructureDefinition/HealthAppMivSet"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:nutzungshinweis",
        "path": "DeviceDefinition.extension",
        "sliceName": "nutzungshinweis",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.bfarm.de/StructureDefinition/HealthAppNutzungshinweis"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:summaries",
        "path": "DeviceDefinition.extension",
        "sliceName": "summaries",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.bfarm.de/StructureDefinition/HealthAppSummaries"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.identifier",
        "path": "DeviceDefinition.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "short": "IDs of the digital application",
        "definition": "Contains values for unique identification of the digital application.",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.identifier:digaId",
        "path": "DeviceDefinition.identifier",
        "sliceName": "digaId",
        "short": "DiGA-ID in the directory",
        "definition": "The unique directory number of the digital health application (DiGA-ID) in the directory according to § 139e SGB V.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.identifier:digaId.system",
        "path": "DeviceDefinition.identifier.system",
        "min": 1,
        "fixedUri": "https://fhir.bfarm.de/Identifier/DigaId",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.identifier:digaId.value",
        "path": "DeviceDefinition.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.identifier:dipaId",
        "path": "DeviceDefinition.identifier",
        "sliceName": "dipaId",
        "short": "DiPA-ID in the directory",
        "definition": "The unique directory number of the digital nursing application (DiPA-ID) in the directory according to § 78a SGB XI.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.identifier:dipaId.system",
        "path": "DeviceDefinition.identifier.system",
        "min": 1,
        "fixedUri": "https://fhir.bfarm.de/Identifier/DipaId",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.identifier:dipaId.value",
        "path": "DeviceDefinition.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.manufacturer[x]",
        "path": "DeviceDefinition.manufacturer[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.manufacturer[x]:manufacturerReference",
        "path": "DeviceDefinition.manufacturer[x]",
        "sliceName": "manufacturerReference",
        "short": "HealthAppManufacturer",
        "definition": "The reference to the manufacturer (HealthAppManufacturer) of the digital application.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.bfarm.de/StructureDefinition/HealthAppManufacturer"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.manufacturer[x]:manufacturerReference.reference",
        "path": "DeviceDefinition.manufacturer[x].reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.manufacturer[x]:manufacturerReference.display",
        "path": "DeviceDefinition.manufacturer[x].display",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.deviceName",
        "path": "DeviceDefinition.deviceName",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "open"
        },
        "short": "Application name",
        "definition": "The name of the digital application.",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.deviceName:userFriendlyName",
        "path": "DeviceDefinition.deviceName",
        "sliceName": "userFriendlyName",
        "short": "Name",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.deviceName:userFriendlyName.name",
        "path": "DeviceDefinition.deviceName.name",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.deviceName:userFriendlyName.type",
        "path": "DeviceDefinition.deviceName.type",
        "fixedCode": "user-friendly-name"
      },
      {
        "id": "DeviceDefinition.onlineInformation",
        "path": "DeviceDefinition.onlineInformation",
        "short": "Information website",
        "definition": "The URL to the information website of the digital application.",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.note",
        "path": "DeviceDefinition.note",
        "short": "Internal search index (not for client use)",
        "definition": "For technical reasons (search indexing), the server may map MIV Set data to this element, in particular to note.text. The content is solely part of that technical mapping to support the miv-set search and must not be read or used by clients for any business content, MIV Set interpretation, or other integration purpose."
      },
      {
        "id": "DeviceDefinition.note.text",
        "path": "DeviceDefinition.note.text",
        "short": "Technical MIV Set mapping (not for client use)",
        "definition": "Only used internally for search indexing; must not be interpreted or relied upon by clients (see miv-set search, HIIS use cases documentation)."
      }
    ]
  }
}