{ "description": "This operation is used for stopping (sv Avsluta) or cancelling (sv Makulera) one or several prescriptions using their logical ids or their legacy NEF-ids.", "_filename": "NLLEnd.OperationDefinition.json", "package_name": "rs/bonsai.poc.second.test", "date": "2024-04-16", "system": false, "publisher": "The Swedish eHealth Agency", "instance": false, "name": "NLLEnd", "type": "true", "experimental": null, "resourceType": "OperationDefinition", "title": "end", "package_version": "1.1.0", "status": "active", "id": "41be5e30-74f0-4593-bda0-4748142761b7", "resource": [ "MedicationRequest" ], "affectsState": true, "kind": "operation", "comment": "Can be invoked with a HTTP POST.\r\nThis operation is used for stopping (sv Avsluta) or cancelling (sv Makulera) one or several prescriptions using their logical ids.\r\nIn the case of an unsuccessfull transaction, an OperationOutcom is returned.", "url": "http://electronichealth.se/fhir/OperationDefinition/NLLEnd", "code": "end", "version": "1.0.0", "parameter": [ { "max": "*", "min": 1, "use": "in", "name": "entry", "part": [ { "max": "1", "min": 0, "use": "in", "name": "resource", "type": "Reference", "documentation": "NB! Either a reference OR a NEF-id (PrescriptionSetId, RowId and ProductRowId) must be provided.\r\nReference to a MedicationRequest that shall be stopped (sv Avsluta) or cancelled (sv Makulera) on either of the following formats MedicationRequest/[id] OR MedicationRequest/[id]/_history/[vid]. In the case that the reference contains a specific version (/_history/[vid]) the version-information will be ignored.", "targetProfile": [ "http://electronichealth.se/fhir/StructureDefinition/NLLReference" ] }, { "max": "1", "min": 0, "use": "in", "name": "PrescriptionSetId", "type": "string", "documentation": "NB! Either a reference OR a NEF-id (PrescriptionSetId, RowId and ProductRowId) must be provided. \r\nThe PrescriptionSetId used in the NEF-id. Can be in combination with RowId and ProductRowId. The provided combination of NEF-id-parts must resolve to a uniqe prescription. (sv Originalordinations-id)" }, { "max": "1", "min": 0, "use": "in", "name": "RowId", "type": "positiveInt", "documentation": "The RowId used in the NEF-id. Used in combination with PrescriptionSetId and ProductRowId. (sv Radnummer)" }, { "max": "1", "min": 0, "use": "in", "name": "ProductRowId", "type": "positiveInt", "documentation": "The ProductRowId used in the NEF-id. Used in combination with PrescriptionSetId and RowId. (sv Produktradnummer)" }, { "max": "1", "min": 1, "use": "in", "name": "reason", "type": "CodeableConcept", "documentation": "Reason the activity is occurring. Will be used in the linked Provenance. (sv Händelseorsak)", "targetProfile": [ "https://electronichealth.se/fhir/StructureDefinition/NLLProvenanceReason" ] }, { "max": "1", "min": 1, "use": "in", "name": "activity", "type": "CodeableConcept", "documentation": "Activity that occurred. Will be used in the linked Provenance. (sv Händelsetyp)", "targetProfile": [ "https://electronichealth.se/fhir/StructureDefinition/NLLProvenvanceActivity" ] }, { "max": "1", "min": 0, "use": "in", "name": "nllUsageEndDate", "part": [ { "max": "1", "min": 1, "use": "in", "name": "operationType", "type": "code", "binding": { "strength": "required", "valueSet": "http://electronichealth.se/fhir/ValueSet/end-operation-types" }, "documentation": "replace | delete\r\nThe operation that should be applied on the UsageEndDate. It can be replaced with a new date, or it can be deleted." }, { "max": "1", "min": 0, "use": "in", "name": "date", "type": "date", "documentation": "The date value that UsageEndDate shall get. Used in combination with the OperationType \"replace\"." } ], "documentation": "End date for dosage usage (sv: Sista doseringsdag)" }, { "max": "1", "min": 0, "use": "in", "name": "nllTreatmentEndDate", "part": [ { "max": "1", "min": 1, "use": "in", "name": "operationType", "type": "code", "binding": { "strength": "required", "valueSet": "http://electronichealth.se/fhir/ValueSet/end-operation-types" }, "documentation": "replace | delete\r\nThe operation that should be applied on the TreatmentEndDate. It can be replaced with a new date, or it can be deleted." }, { "max": "1", "min": 0, "use": "in", "name": "date", "type": "date", "documentation": "The date value that TreatmentEndDate shall get. Used in combination with the OperationType \"replace\"." } ], "documentation": "Last date for ending this treatment (sv: Senaste datum för avslut)" } ], "documentation": "Data about the MedicationRequest(s) that shall be stopped (sv Avsluta) or cancelled (sv Makulera)." }, { "max": "1", "min": 0, "use": "out", "name": "result", "type": "boolean", "documentation": "In the case of a successfull call, the result is set to \"true\"" } ] }