{
"description": "Restores one or two (if parallell) prescriptions to their previous versions.",
"_filename": "NLLRestore.OperationDefinition.json",
"package_name": "bonsai.poc.second.test.rc1",
"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.3.0",
"status": "active",
"id": "69ce111d-3b3b-426a-9f10-62dd1c97c892",
"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."
} ]
}