Skip to main content

core.buildmedicationrequestresponseloststatusreason

Home > @medplum/core > buildMedicationRequestResponseLostStatusReason

buildMedicationRequestResponseLostStatusReason() function

Builds the statusReason CodeableConcept used when soft-deleting a draft MedicationRequest whose vendor-side outcome is unknown (see MEDICATION_REQUEST_STATUS_REASON_RESPONSE_NOT_RECEIVED).

Paired with status: 'unknown' (a valid FHIR R4 MedicationRequest status), this is the standard shape every order-medication caller should write when orderMedication(...) throws after the draft MR has been created.

Signature:

export declare function buildMedicationRequestResponseLostStatusReason(): CodeableConcept;

Returns:

CodeableConcept

A CodeableConcept carrying our canonical system + code and a human-readable text summary.