{ "description": "Restores one or two (if parallell) prescriptions to their previous versions.", "_filename": "NLLRestore.OperationDefinition.json", "package_name": "bonsai.poc.second.test", "date": "2024-03-22", "system": false, "publisher": "The Swedish eHealth Agency", "instance": false, "name": "NLLRestore", "type": "true", "experimental": null, "resourceType": "OperationDefinition", "title": null, "package_version": "1.1.4", "status": "active", "id": "0f171326-a057-4fc4-bfc0-515cb72cf5b5", "resource": [ "MedicationRequest" ], "affectsState": true, "kind": "operation", "comment": "Can be invoked with a HTTP POST.\r\nThis operation is used for restoring one or two (if parallell) MedicationRequests to their previous versions.", "url": "http://electronichealth.se/fhir/OperationDefinition/NLLRestore", "code": "restore", "version": "1.0.0", "parameter": [ { "max": "2", "min": 1, "use": "in", "name": "resource", "type": "Reference", "documentation": "Reference to the MedicationRequest(s) that should be restored to previous versions. Shall contain version specific reference to the resource version that will be restored on the following format: MedicationRequest/[id]/_history/[vid].", "targetProfile": [ "http://electronichealth.se/fhir/StructureDefinition/NLLReference" ] }, { "max": "2", "min": 1, "use": "out", "name": "result", "type": "MedicationRequest", "documentation": "The restored MedicationRequests." } ] }