PackagesCanonicalsLogsProblems
    Packages
    sfm.130323@3.0.1
    http://nhn.no/sfm/fhir/OperationDefinition/SFM-getMedication
{
  "description": "This operation provides lookup in Kjernejournal and/or Reseptformidleren to collect and aggregate information on prescriptions, medication treatement, PLL (Pasientens LegemiddeListe), dispense information and Critical information",
  "_filename": "SFM-getMedication-operationDefinition.json",
  "package_name": "sfm.130323",
  "date": "2021-05-01",
  "system": false,
  "publisher": "Norsk Helsenett (SFM Project)",
  "instance": false,
  "name": "getMedication",
  "type": "true",
  "experimental": null,
  "resourceType": "OperationDefinition",
  "title": "Operation for lookup medical and prescription information for a patient",
  "package_version": "3.0.1",
  "status": "active",
  "id": "48f2d80c-17c0-41d3-8d2d-584423a2d0f6",
  "resource": [ "Patient" ],
  "kind": "operation",
  "comment": "This operation is complex, and requier that the Practitioner performing the operation presents a valid HelseID token with identity information, and that the authorisation is available in Helsepersonellregisteret",
  "url": "http://nhn.no/sfm/fhir/OperationDefinition/SFM-getMedication",
  "code": "getMedication",
  "version": "1.0",
  "contact": [ {
    "telecom": [ {
      "value": "http://nhn.no/fhir",
      "system": "url"
    }, {
      "value": "SFM-Prosjekt@nhn.no",
      "system": "email"
    } ]
  } ],
  "parameter": [ {
    "max": "1",
    "min": 1,
    "use": "in",
    "name": "patient",
    "type": "Patient",
    "documentation": "Must be present and contain Name, Address and (identifier OR (birthDate + gender))",
    "targetProfile": "http://ehelse.no/fhir/StructureDefinition/sfm-Patient"
  }, {
    "max": "*",
    "min": 0,
    "use": "in",
    "name": "Referansenummer",
    "type": "string",
    "documentation": "Refereansenummer shall always be present for patient without national ID. Referansenummer may be present for retreival of låst resept, doctors-name prescriptions or other"
  }, {
    "max": "1",
    "min": 0,
    "use": "in",
    "name": "historyTimestamp",
    "type": "dateTime",
    "documentation": "For lookup in Kjernejournal: Indicates timestamp from witch changes shall be returned"
  }, {
    "max": "1",
    "min": 0,
    "use": "in",
    "name": "SamtykkeKjernejournal",
    "type": "code",
    "binding": {
      "strength": "required",
      "valueSet": "http://ehelse.no/fhir/ValueSet/sfm-kj-consentcodes"
    },
    "documentation": "Patient consent type for access to Medication data (HPAKUTT, HPMOTTATTSAMTYKKE, HPUNNTAK)"
  }, {
    "max": "1",
    "min": 0,
    "use": "in",
    "name": "SamtykkeSperretLegemidler",
    "type": "code",
    "binding": {
      "strength": "required",
      "valueSet": "http://ehelse.no/fhir/ValueSet/sfm-kj-consentcodes"
    },
    "documentation": "Patient consent type for access to disclosed Medication data (HPAKUTT, HPMOTTATTSAMTYKKE)"
  }, {
    "max": "1",
    "min": 0,
    "use": "in",
    "name": "SamtykkeLasteResepter",
    "type": "code",
    "binding": {
      "strength": "required",
      "valueSet": "http://ehelse.no/fhir/ValueSet/sfm-kj-consentcodes"
    },
    "documentation": "Patient consent type for access to LÅST RESEPT / locked prescriptions (HPAKUTT, HPMOTTATTSAMTYKKE)"
  }, {
    "max": "*",
    "min": 0,
    "use": "in",
    "name": "IncludeOriginal",
    "type": "code",
    "binding": {
      "strength": "required",
      "valueSet": "http://ehelse.no/fhir/ValueSet/sfm-include-binary"
    },
    "documentation": "Flag for inclusion of (elements from) original e-resep messages"
  }, {
    "max": "1",
    "min": 1,
    "use": "out",
    "name": "medication",
    "type": "Bundle",
    "documentation": "Main result. Medication bundle document"
  }, {
    "max": "1",
    "min": 0,
    "use": "out",
    "name": "KJHentetTidspunkt",
    "type": "dateTime",
    "documentation": "Time for result from KJ. Absensce shall be interpreted as no lookup performed"
  }, {
    "max": "1",
    "min": 0,
    "use": "out",
    "name": "RFHentetTidspunkt",
    "type": "dateTime",
    "documentation": "Time for result from RF. Absensce shall be interpreted as no lookup performed"
  }, {
    "max": "1",
    "min": 0,
    "use": "out",
    "name": "KJFeilkode",
    "type": "Coding",
    "binding": {
      "strength": "required",
      "valueSet": "http://ehelse.no/fhir/ValueSet/sfm-rfkj-lookupcodes"
    },
    "documentation": "Error response from KJ"
  }, {
    "max": "1",
    "min": 0,
    "use": "out",
    "name": "RFM96Feilkode",
    "type": "Coding",
    "binding": {
      "strength": "required",
      "valueSet": "http://ehelse.no/fhir/ValueSet/sfm-rfkj-lookupcodes"
    },
    "documentation": "Error response from RF on M9.6 lookup"
  }, {
    "max": "1",
    "min": 0,
    "use": "out",
    "name": "RFM912Feilkode",
    "type": "Coding",
    "binding": {
      "strength": "required",
      "valueSet": "http://ehelse.no/fhir/ValueSet/sfm-rfkj-lookupcodes"
    },
    "documentation": "Error response from RF on M9.12 lookup"
  }, {
    "max": "1",
    "min": 0,
    "use": "out",
    "name": "KJHarLegemidler",
    "type": "boolean",
    "documentation": "According to response from KJ"
  }, {
    "max": "1",
    "min": 0,
    "use": "out",
    "name": "KJHarLaste",
    "type": "boolean",
    "documentation": "According to response from KJ"
  }, {
    "max": "1",
    "min": 0,
    "use": "out",
    "name": "RFHarLaste",
    "type": "boolean",
    "documentation": "According to response from RF"
  }, {
    "max": "1",
    "min": 0,
    "use": "out",
    "name": "RFPasientreservasjon",
    "type": "boolean",
    "documentation": "According to response from RF"
  } ]
}