Medication Scheme Implementation Guide
1.0.0 - trial-use Estonia flag

Medication Scheme Implementation Guide, published by TEHIK. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/TEHIK-EE/ig-ee-medication-scheme/ and changes regularly. See the Directory of published versions

: Check if the medication can be prescribed - JSON Representation

Page standards status: Trial-use Maturity Level: 1

Raw json | Download

{
  "resourceType" : "OperationDefinition",
  "id" : "can-prescribe",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: OperationDefinition can-prescribe</b></p><a name=\"can-prescribe\"> </a><a name=\"hccan-prescribe\"> </a><p>URL: [base]/Medication/$can-prescribe</p><p>URL: [base]/Patient/$can-prescribe</p><h3>Parameters</h3><table class=\"grid\"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Scope</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>subject</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R5/patient.html\">Patient</a></td><td/><td><div><p>Patient</p>\n</div></td></tr><tr><td>IN</td><td>input</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R5/medication.html\">Medication</a></td><td/><td><div><p>Medication to be checked against current medications in scheme and prescribed drafts.</p>\n</div></td></tr><tr><td>IN</td><td>draft</td><td/><td>0..*</td><td><a href=\"http://hl7.org/fhir/R5/medication.html\">Medication</a></td><td/><td><div><p>List of new medication drafts that the input medication is checked against.</p>\n</div></td></tr><tr><td>OUT</td><td>return</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R5/operationoutcome.html\">OperationOutcome</a></td><td/><td><div><p>Whether conflicts were found and the nature of the conflicts.</p>\n</div></td></tr></table></div>"
  },
  "extension" : [
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger" : 1
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode" : "trial-use"
    }
  ],
  "url" : "https://fhir.ee/OperationDefinition/can-prescribe",
  "version" : "1.0.0",
  "name" : "Can Prescribe",
  "title" : "Check if the medication can be prescribed",
  "status" : "active",
  "kind" : "operation",
  "experimental" : false,
  "date" : "2025-09-15T00:00:00Z",
  "publisher" : "TEHIK",
  "contact" : [
    {
      "name" : "TEHIK",
      "telecom" : [
        {
          "system" : "url",
          "value" : "https://www.tehik.ee"
        },
        {
          "system" : "email",
          "value" : "fhir@tehik.ee"
        }
      ]
    },
    {
      "name" : "TEHIK Andmekorraldus",
      "telecom" : [
        {
          "system" : "email",
          "value" : "andmekorraldus@tehik.ee",
          "use" : "work"
        }
      ]
    }
  ],
  "description" : "The can prescribe operation checks if the Medication can be prescribed to the patient based on existing medications",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "urn:iso:std:iso:3166",
          "code" : "EE",
          "display" : "Estonia"
        }
      ]
    }
  ],
  "affectsState" : false,
  "code" : "can-prescribe",
  "resource" : [
    "Medication",
    "Patient"
  ],
  "system" : false,
  "type" : true,
  "instance" : false,
  "parameter" : [
    {
      "name" : "subject",
      "use" : "in",
      "min" : 1,
      "max" : "1",
      "documentation" : "Patient",
      "type" : "Patient"
    },
    {
      "name" : "input",
      "use" : "in",
      "min" : 1,
      "max" : "1",
      "documentation" : "Medication to be checked against current medications in scheme and prescribed drafts.",
      "type" : "Medication"
    },
    {
      "name" : "draft",
      "use" : "in",
      "min" : 0,
      "max" : "*",
      "documentation" : "List of new medication drafts that the input medication is checked against.",
      "type" : "Medication"
    },
    {
      "name" : "return",
      "use" : "out",
      "min" : 1,
      "max" : "1",
      "documentation" : "Whether conflicts were found and the nature of the conflicts.",
      "type" : "OperationOutcome"
    }
  ]
}