New Zealand MWS IG
1.0.6 - Release

New Zealand MWS IG - Local Development build (v1.0.6) 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 Legacy Medical Warning by IDIntegrating application userIntegrating application userIntegrating applicationIntegrating applicationMWS serviceMWS serviceLegacy MWS databaseLegacy MWS databaseEnter LegacyMWS-idDELETE[base]/AllergyIntolerance/[LegacyMWS-id]Validate[]RequestHTTP 204 No ContentDisplay success messageto user

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