{ "description": "The information in whenHandedOver is not always available. In this case you want to be able to select based on the next best thing which is whenPrepared. The existing parameters whenHandedOver and whenPrepared would not let you query that way.", "_filename": "SearchParameter-MedicationDispense-whendispensed.json", "package_name": "nictiz.fhir.nl.stu3.zib2017", "date": null, "expression": "MedicationDispense.select(iif (whenHandedOver.empty(), whenPrepared, whenHandedOver))", "publisher": "Nictiz", "purpose": "To select the medication dispense instances based on the date/time medication was handed over or, if this is unavailable, when it was prepared", "name": "MedicationDispense-whendispensed", "xpath": "if (f:MedicationDispense/f:whenHandedOver[@value]) then f:MedicationDispense/f:whenHandedOver/@value else f:MedicationDispense/f:whenPrepared/@value", "xpathUsage": "normal", "type": "date", "experimental": "true", "resourceType": "SearchParameter", "title": null, "package_version": "1.3.1", "status": "active", "id": "9b338a71-57c4-457e-85ff-fcda0455c15e", "kind": null, "url": "http://nictiz.nl/fhir/SearchParameter/MedicationDispense-whendispensed", "code": "whendispensed", "comparator": [ "le", "ge" ], "base": [ "MedicationDispense" ], "version": "1.0.1", "contact": [ { "name": "Nictiz", "telecom": [ { "use": "work", "value": "info@nictiz.nl", "system": "email" } ] } ] }