PackagesCanonicalsLogsProblems
    Packages
    medatixx.healthhub@1.5.0
    https://fhir.medatixx.de/HealthHub/OperationDefinition/ProposeCondition
{
  "description": "Writes an ICD-10-GM diagnosis back into the practice management system (PVS) as a proposal. Covers the full lifecycle: create (type-level $propose), update (instance-level $propose, including retracting/correcting a diagnosis) and delete (HTTP DELETE on the instance). The PVS decides synchronously whether it can file the diagnosis automatically or must route it to the practice worklist; which case applies depends on patient/case resolvability, the user context and per-establishment settings. Create returns 201 Created with the new diagnosis id (parameter 'conditionId') on automatic filing, or 202 Accepted with an OperationOutcome when routed to the worklist. Coding-rule hint texts are never returned to the partner - only a fixed placeholder signals that a hint exists (the authoritative hint is shown in the PVS). The partner may pass an optional 'requestId' that doubles as an idempotency key (dedup of retries on automatic filing) and a correlation handle (echoed on the 201 response). Note: only create and update are modelled by this OperationDefinition ($propose). Delete is a plain REST `DELETE [base]/Condition/{id}` and therefore cannot be expressed here; its status-code semantics (204 automatic, 202 worklist confirmation, 403 disabled, 409 billed case) are described in the Condition module guide.",
  "_filename": "ProposeCondition.OperationDefinition.json",
  "package_name": "medatixx.healthhub",
  "date": null,
  "system": false,
  "publisher": "medatixx GmbH & Co. KG",
  "instance": true,
  "name": "ProposeCondition",
  "copyright": "medatixx GmbH & Co. KG",
  "type": "true",
  "experimental": null,
  "outputProfile": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_ProposeCondition_Out",
  "resourceType": "OperationDefinition",
  "title": null,
  "package_version": "1.5.0",
  "status": "active",
  "id": "059d3965-3b1e-4d64-a189-c5b2a576dc4f",
  "resource": [ "Condition" ],
  "affectsState": true,
  "kind": "operation",
  "url": "https://fhir.medatixx.de/HealthHub/OperationDefinition/ProposeCondition",
  "code": "propose",
  "version": "1.5.0",
  "inputProfile": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_ProposeCondition_In",
  "parameter": [ {
    "max": "1",
    "min": 1,
    "use": "in",
    "name": "resource",
    "type": "Condition",
    "documentation": "The proposed diagnosis as an Mxx_HealthHub_Condition instance."
  }, {
    "max": "1",
    "min": 1,
    "use": "in",
    "name": "proposingSystem",
    "type": "Reference",
    "documentation": "Reference to the submitting partner system (Mxx_HealthHub_PartnerSystem). Passed explicitly because the OAuth subject is only the org-wide partner identifier, not the per-registration id."
  }, {
    "max": "1",
    "min": 1,
    "use": "in",
    "name": "performer",
    "type": "Reference",
    "documentation": "Reference to the performing physician (Mxx_HealthHub_Practitioner)."
  }, {
    "max": "1",
    "min": 0,
    "use": "in",
    "name": "account",
    "type": "Reference",
    "documentation": "Optional reference to a case (Schein, Mxx_HealthHub_Account) the partner read beforehand via Account/$searchScheine. When present the PVS links exactly this case and skips its candidate search."
  }, {
    "max": "1",
    "min": 0,
    "use": "in",
    "name": "versicherungsart",
    "type": "Coding",
    "documentation": "Optional insurance type used as a filter for the automatic case matching when no 'account' is supplied. Bound (required) to Mxx_HealthHub_VS_ScheinVersicherungsart (GKV / PKV / BG / SEL). Create only; rejected with 400 on an update (locked field)."
  }, {
    "max": "1",
    "min": 0,
    "use": "in",
    "name": "versorgungsform",
    "type": "Coding",
    "documentation": "Optional selective-care form (HzV, Mxx_HealthHub_VS_Versorgungsform) that refines the case matching when no 'account' is supplied; the authoritative HZV signal is the Schein's Gebuehrenordnung = HZV. Create only; rejected with 400 on an update (locked field)."
  }, {
    "max": "1",
    "min": 1,
    "use": "in",
    "name": "diagnosisType",
    "type": "Coding",
    "documentation": "The diagnosis category (D / DD / DAN, Mxx_HealthHub_VS_Diagnosetyp). Always present; only a proposal that the physician confirms or changes. Authoritative and the single source of the category on write: the embedded Condition's isPermanentDiagnosis extension is not evaluated on write, so a diagnosisType = D update is not silently reverted to DD."
  }, {
    "max": "1",
    "min": 0,
    "use": "in",
    "name": "worklistHint",
    "type": "string",
    "documentation": "Optional transient free-text hint for the physician, shown only in the worklist during confirmation. Not part of the diagnosis text and - unlike Condition.code.text (physician free text) and Condition.note (the Diagnoseerlaeuterung carried on the embedded Condition) - not persisted with the diagnosis. The supplementary diagnosis explanation is not an operation parameter; it is written as Condition.note on the embedded Condition."
  }, {
    "max": "1",
    "min": 0,
    "use": "in",
    "name": "requestId",
    "type": "string",
    "documentation": "Optional partner-generated identifier for this logical proposal. Two purposes: (1) idempotency - if the partner retries after an unclear response (e.g. timeout, 502), the PVS uses it to avoid filing a duplicate diagnosis on automatic acceptance (a retry with the same requestId returns the original result instead of creating a second chart entry); (2) correlation - it is echoed back on the 201 response so the partner can tie the result to its request."
  }, {
    "max": "1",
    "min": 0,
    "use": "out",
    "name": "conditionId",
    "type": "id",
    "documentation": "The ID of the diagnosis created in the PVS. Returned with HTTP 201 when the proposal is filed automatically. Not present when the proposal is routed to the worklist (HTTP 202); the final id becomes visible via SearchConditions."
  }, {
    "max": "1",
    "min": 0,
    "use": "out",
    "name": "outcome",
    "type": "OperationOutcome",
    "documentation": "Optional OperationOutcome accompanying the result. Present when the proposal is routed to the practice worklist (HTTP 202) and to signal that a coding-rule hint exists (a fixed placeholder only; the authoritative hint text is shown in the PVS, never returned to the partner)."
  }, {
    "max": "1",
    "min": 0,
    "use": "out",
    "name": "requestId",
    "type": "string",
    "documentation": "The partner-supplied requestId echoed back, present only when the partner sent one. Lets the partner correlate this 201 result with its original request."
  } ]
}