New Zealand MWS IG
1.1.5 - Release

New Zealand MWS IG - Local Development build (v1.1.5) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## Delete Legacy Medical Warning

### Delete a Legacy Medical Warning for a Patient

The delete operation would be used when a user has selected a legacy uncoded warning, has added any additional data required and have created a FHIR AllergyIntolerance resource. The original legacy warning record can now be deleted.

#### Delete AllergyIntolerance processing steps:

1. A FHIR Client sends a DELETE request to the MWS AllergyIntolerance endpoint.
2. The request is validated - ALT: Validation failure. Operation Outcome resource returned
3. The Legacy Medical Warning is deleted from the 'Legacy MWS database'.
4. An HTTP 204 No Content is returned to the client

#### Delete Legacy Medical Warnings Rules and Errors

Business Rule | HTTP error | EM error | Codesystem displayname | Additional description
--- | --- | --- | --- | ---
The id must be a legacy MWS identifier. | 403 Forbidden | EM07304 | Delete not allowed | Only legacy MWS records can be deleted. Identifier provided is not a legacy id
The id must exist in legacy MWS | 403 Forbidden | EM07304 | Delete not allowed | Only legacy MWS records can be deleted. Identifier provided is not a legacy id