PackagesCanonicalsLogsProblems
    Packages
    medatixx.healthhub@1.5.0
    https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_ObservationFreeText
{
  "description": "Observation profile for free-text record entries proposed via POST /Observation/$propose. Derives directly from the FHIR R4 base Observation (not from Mxx_HealthHub_Observation, which targets the read path for laboratory and vital-signs values and carries incompatible max:0 constraints on performer and derivedFrom). Supports text content via valueString, optional attachments via contained DocumentReference resources referenced from derivedFrom, and practitioner/organisation attribution via performer slices. A mandatory mxxPartnerReference extension (Mxx_HealthHub_PartnerReference) identifies the submitting partner system. The optional mxxRecordCategory extension steers the target category in the practice record; the optional mxxEntryCallUri extension carries a deep-link back to the originating partner application.",
  "_filename": "Mxx_HealthHub_ObservationFreeText.StructureDefinition.json",
  "package_name": "medatixx.healthhub",
  "date": null,
  "derivation": "constraint",
  "publisher": "medatixx GmbH & Co. KG",
  "fhirVersion": "4.0.1",
  "name": "Mxx_HealthHub_ObservationFreeText",
  "abstract": false,
  "copyright": "medatixx GmbH & Co. KG",
  "type": "Observation",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "1.5.0",
  "status": "active",
  "id": "66ced6b2-d15e-45d7-b6e7-996d01b6da3b",
  "kind": "resource",
  "url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_ObservationFreeText",
  "version": "1.5.0",
  "differential": {
    "element": [ {
      "id": "Observation",
      "path": "Observation",
      "short": "Free-text record entry",
      "constraint": [ {
        "key": "mxx-obsft-att-contained",
        "human": "Every attachment referenced from derivedFrom must be a contained resource (local '#' reference); external references are not allowed.",
        "severity": "error",
        "expression": "derivedFrom.all(reference.exists() and reference.startsWith('#'))"
      }, {
        "key": "mxx-obsft-att-contenttype",
        "human": "Each contained attachment's content type must be a code from Mxx_HealthHub_VS_HealthRecordContentTypes.",
        "severity": "error",
        "expression": "contained.ofType(DocumentReference).content.attachment.contentType.all(memberOf('https://fhir.medatixx.de/HealthHub/ValueSet/Mxx_HealthHub_VS_HealthRecordContentTypes'))"
      }, {
        "key": "mxx-obsft-att-inline",
        "human": "Contained attachments must carry their content inline in attachment.data; attachment.url is not allowed and DocumentReference.status must be 'current'.",
        "severity": "error",
        "expression": "contained.ofType(DocumentReference).all(status = 'current' and content.attachment.url.empty())"
      } ],
      "definition": "A free-text record entry proposed by a partner system. The entry is either processed automatically or must be confirmed by a user; which case applies is a configuration detail and not part of this contract."
    }, {
      "id": "Observation.extension",
      "path": "Observation.extension",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      }
    }, {
      "id": "Observation.extension:mxxRecordCategory",
      "max": "1",
      "min": 0,
      "path": "Observation.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_RecordCategory" ]
      } ],
      "short": "Practice-specific record category",
      "sliceName": "mxxRecordCategory",
      "definition": "Steers the filing category in the practice software record. Carries the instance-local record category ID (string) obtained from $getRecordCategories; the ID is only meaningful within a single PVS instance."
    }, {
      "id": "Observation.extension:mxxEntryCallUri",
      "max": "1",
      "min": 0,
      "path": "Observation.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_EntryCallUri" ]
      } ],
      "short": "Deep-link back to the partner system",
      "sliceName": "mxxEntryCallUri",
      "definition": "Optional deep-link back to the originating view in the partner application. Sub-extensions: Uri (1..1), Label (0..1), OpenInBrowser (0..1)."
    }, {
      "id": "Observation.extension:mxxPartnerReference",
      "max": "1",
      "min": 1,
      "path": "Observation.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_PartnerReference" ]
      } ],
      "short": "Submitting partner system",
      "sliceName": "mxxPartnerReference",
      "definition": "The partner system submitting the entry to the practice software for recording. Mandatory. Uses the Mxx_HealthHub_PartnerReference extension (valueReference to Mxx_HealthHub_PartnerSystem), consistent with Mxx_HealthHub_Appointment. Observation.performer cannot carry this reference because base FHIR does not allow a Device target on Observation.performer."
    }, {
      "id": "Observation.modifierExtension",
      "max": "0",
      "path": "Observation.modifierExtension",
      "short": "Not used",
      "definition": "Not used in this profile (max 0). This profile defines no modifier extensions; per FHIR a modifier extension must not be ignored, so none are permitted here."
    }, {
      "id": "Observation.identifier",
      "max": "0",
      "path": "Observation.identifier"
    }, {
      "id": "Observation.basedOn",
      "max": "0",
      "path": "Observation.basedOn"
    }, {
      "id": "Observation.partOf",
      "max": "0",
      "path": "Observation.partOf"
    }, {
      "id": "Observation.status",
      "path": "Observation.status",
      "short": "preliminary (fixed)",
      "fixedCode": "preliminary",
      "definition": "The status is always 'preliminary'. The entry is submitted as a proposal; the practice software sets the status after processing."
    }, {
      "id": "Observation.category",
      "max": "0",
      "path": "Observation.category",
      "short": "Not used",
      "definition": "Not used in this profile (max 0). The FHIR observation-category classification does not steer the PVS filing; filing is driven solely by the mxxRecordCategory extension (record category ID) or the partner-system default. Consistent with DocumentReference.category in the HealthRecordEntry profile."
    }, {
      "id": "Observation.code",
      "min": 1,
      "path": "Observation.code",
      "short": "Fixed marker: free-text record entry",
      "definition": "Fixed classifier for this profile. code.coding is not used (max 0); code.text is fixed to 'Free-text record entry'. code carries no per-entry classification - the filing category is the mxxRecordCategory extension and the entry name derives from that record category. Present only because base FHIR requires Observation.code (1..1); the partner always sends the same constant."
    }, {
      "id": "Observation.code.coding",
      "max": "0",
      "path": "Observation.code.coding",
      "short": "Not used",
      "definition": "Not used in this profile (max 0). code carries no coded classification; the record category is the single source of truth (mxxRecordCategory extension)."
    }, {
      "id": "Observation.code.text",
      "min": 1,
      "path": "Observation.code.text",
      "short": "Fixed sentinel text",
      "definition": "Fixed to 'Free-text record entry'. Constant marker so code imposes no per-entry decision on the partner.",
      "fixedString": "Free-text record entry"
    }, {
      "id": "Observation.subject",
      "min": 1,
      "path": "Observation.subject",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Patient" ]
      } ],
      "short": "Patient",
      "definition": "Reference to the patient to whom the entry is to be assigned. Must be a patient known in the practice system."
    }, {
      "id": "Observation.focus",
      "max": "0",
      "path": "Observation.focus"
    }, {
      "id": "Observation.encounter",
      "max": "0",
      "path": "Observation.encounter"
    }, {
      "id": "Observation.effective[x]",
      "max": "0",
      "path": "Observation.effective[x]",
      "short": "Not used",
      "definition": "Not used in this profile (max 0). The practice record keeps a single entry date, which is taken from Observation.issued. A separate clinical timestamp has no target field in the practice record."
    }, {
      "id": "Observation.issued",
      "min": 1,
      "path": "Observation.issued",
      "short": "Creation timestamp (mandatory)",
      "definition": "The point in time the entry was created / made available (instant). Mandatory; corresponds to the entry date in the practice record."
    }, {
      "id": "Observation.performer",
      "max": "3",
      "min": 3,
      "path": "Observation.performer",
      "short": "Practitioner, organisation and user (all mandatory)",
      "slicing": {
        "rules": "closed",
        "discriminator": [ {
          "path": "type",
          "type": "value"
        } ]
      }
    }, {
      "id": "Observation.performer:practitioner",
      "max": "1",
      "min": 1,
      "path": "Observation.performer",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Practitioner" ]
      } ],
      "short": "Practitioner",
      "sliceName": "practitioner",
      "definition": "The practitioner to whom the entry is to be attributed in the practice software. Mandatory. Analogous to author:practitioner in Mxx_HealthHub_HealthRecordEntry."
    }, {
      "id": "Observation.performer:practitioner.reference",
      "min": 1,
      "path": "Observation.performer.reference"
    }, {
      "id": "Observation.performer:practitioner.type",
      "min": 1,
      "path": "Observation.performer.type",
      "fixedUri": "Mxx_HealthHub_Practitioner"
    }, {
      "id": "Observation.performer:practitioner.identifier",
      "max": "0",
      "path": "Observation.performer.identifier"
    }, {
      "id": "Observation.performer:practitioner.display",
      "max": "0",
      "path": "Observation.performer.display"
    }, {
      "id": "Observation.performer:organization",
      "max": "1",
      "min": 1,
      "path": "Observation.performer",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Organization" ]
      } ],
      "short": "Organisation",
      "sliceName": "organization",
      "definition": "The organisation / practice site to which the entry is to be attributed in the practice software. Mandatory. Analogous to custodian in Mxx_HealthHub_HealthRecordEntry."
    }, {
      "id": "Observation.performer:organization.reference",
      "min": 1,
      "path": "Observation.performer.reference"
    }, {
      "id": "Observation.performer:organization.type",
      "min": 1,
      "path": "Observation.performer.type",
      "fixedUri": "Mxx_HealthHub_Organization"
    }, {
      "id": "Observation.performer:organization.identifier",
      "max": "0",
      "path": "Observation.performer.identifier"
    }, {
      "id": "Observation.performer:organization.display",
      "max": "0",
      "path": "Observation.performer.display"
    }, {
      "id": "Observation.performer:user",
      "max": "1",
      "min": 1,
      "path": "Observation.performer",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_User" ]
      } ],
      "short": "User",
      "sliceName": "user",
      "definition": "The practice-software user to whom the entry is to be attributed. Mandatory. Analogous to author:user in Mxx_HealthHub_HealthRecordEntry."
    }, {
      "id": "Observation.performer:user.reference",
      "min": 1,
      "path": "Observation.performer.reference"
    }, {
      "id": "Observation.performer:user.type",
      "min": 1,
      "path": "Observation.performer.type",
      "fixedUri": "Mxx_HealthHub_User"
    }, {
      "id": "Observation.performer:user.identifier",
      "max": "0",
      "path": "Observation.performer.identifier"
    }, {
      "id": "Observation.performer:user.display",
      "max": "0",
      "path": "Observation.performer.display"
    }, {
      "id": "Observation.value[x]",
      "min": 1,
      "path": "Observation.value[x]",
      "type": [ {
        "code": "string"
      } ],
      "short": "Free-text content (mandatory)",
      "comment": "The HTTP request body stays UTF-8 encoded; only the character repertoire that can be stored is limited. Free text is stored in the PVS record using the Windows-1252 character set: ASCII and the characters contained in Windows-1252 (e.g. ä, ö, ü, ß, é, à, the euro sign €) are preserved; characters outside this set (e.g. emoji or other Unicode symbols) are not supported and are stored as '?'. Partner systems - especially web applications with free character input - should restrict or sanitise input accordingly. See Grundlagen > Anforderungen an Partnersysteme (P-11-001).",
      "definition": "The primary free-text body of the record entry. Mandatory. valueString is the single authoritative content field, giving one clearly defined mapping path. code.text is a fixed marker (not a per-entry label), note is not used (max 0), and text inside a contained attachment belongs to that attachment, not the entry body."
    }, {
      "id": "Observation.dataAbsentReason",
      "max": "0",
      "path": "Observation.dataAbsentReason",
      "short": "Not used",
      "definition": "Not used in this profile (max 0). A free-text entry always carries its content in valueString."
    }, {
      "id": "Observation.interpretation",
      "max": "0",
      "path": "Observation.interpretation",
      "short": "Not used",
      "definition": "Not used in this profile (max 0). Interpretation flags apply to quantitative results, not to free-text entries."
    }, {
      "id": "Observation.note",
      "max": "0",
      "path": "Observation.note",
      "short": "Not used",
      "definition": "Not used in this profile (max 0). Supplementary annotations have no target field in the practice record; the entry body is carried in valueString."
    }, {
      "id": "Observation.bodySite",
      "max": "0",
      "path": "Observation.bodySite"
    }, {
      "id": "Observation.method",
      "max": "0",
      "path": "Observation.method",
      "short": "Not used",
      "definition": "Not used in this profile (max 0). The measurement method applies to quantitative results, not to free-text entries."
    }, {
      "id": "Observation.specimen",
      "max": "0",
      "path": "Observation.specimen"
    }, {
      "id": "Observation.device",
      "max": "0",
      "path": "Observation.device"
    }, {
      "id": "Observation.referenceRange",
      "max": "0",
      "path": "Observation.referenceRange",
      "short": "Not used",
      "definition": "Not used in this profile (max 0). Reference ranges apply to quantitative results, not to free-text entries."
    }, {
      "id": "Observation.hasMember",
      "max": "0",
      "path": "Observation.hasMember"
    }, {
      "id": "Observation.derivedFrom",
      "path": "Observation.derivedFrom",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/DocumentReference" ]
      } ],
      "short": "Attachments (contained DocumentReference)",
      "definition": "References to file attachments. Each attachment is a contained DocumentReference resource within the same Observation object (e.g. '#attachment-1'). The DocumentReference carries the binary content as Base64 in content[0].attachment.data; the content type must be a code from Mxx_HealthHub_VS_HealthRecordContentTypes. The total size of all attachments must not exceed 20 MB."
    }, {
      "id": "Observation.component",
      "max": "0",
      "path": "Observation.component"
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation"
}