visit the hl7 website
Ontario Subscription HL7® FHIR® Implementation Guide -v1.0.0-ballot1
fhir-logo
  • Index
  • Home
    • Home
    • Introduction
    • Relationship to Other Specifications
    • Scope
    • Glossary
  • Business Context
    • Business Context
    • Business Model
    • Business Data
    • Use Cases
    • Business Rules
  • Technical Context
    • Technical Context
    • Implementer Responsibility
    • Conformance Rules
    • Connectivity Summary
  • FHIR Artifacts
    • FHIR Artifacts
    • Interactions
    • Operations
    • Profiles
    • Terminology
    • System URIs
    • Capability Statement
    • Custom Search Parameters
    • Response Handling
    • Downloads
  • Change Log
    • Change Log
    • Known Issues & Future Developments
    • Revision History
    1. Index
    2. FHIR Artifacts
    3. Interactions
    4. Delete Subscription

For a full list of available versions, see the Directory of published versions

4.1.3. Delete Subscription

The Delete Subscription operation is used to logically delete a subscription from the Ontario Health subscription service. After deletion, the subscription resource will no longer be accessible by the client for further modifications or updates.


4.1.3.1. Scope

4.1.3.2.

This interaction involves a request by a Point of Service system to delete Subscription on the Subscription server. The request is received by the Subscription service which deletes the requested Subscription resource and returns an HTTP response code and an OperationOutcome resource if applicable.


4.1.3.3. Interaction Sequence Diagram


4.1.3.4. Specification

Subscription Delete Request

The Delete Subscription will delete the specified FHIR Subscription resource from the repository.

DELETE [base]/Subscription/[id],

where [id] is the logical id of the existing Subscription resource.

Subscription Delete Response

The server returns a 200 OK HTTP status code.


4.1.3.5. Example Delete Subscription Interaction

HTTP Method:

DELETE

Headers:

Content-Type: application/fhir+json

Address:

[base]/Subscription/f63b8b72-23b4-4c3f-8a07-8fbe93d46f9d


4.1.3.6. Expected Behaviour

Case Scenario Description HTTP Status Code Response Payload
1 An existing Subscription is deleted from the repository HTTP 200 Deleted.
2 Requestor do not have authorizization to delete the Subscription (i.e., the user lacks sufficient permissions) HTTP 403 Forbidden.
3 The subscription ID does not exist on the server, meaning it was already deleted or never existed HTTP 404 Not Found.
4 Subscription API validates the request but cannot return a valid response due to internal issues. HTTP 500 Internal Server Error. Returns an OperationOutcome resource indicating an issue.
Version: 1.0.0 FHIR Version: R4.0.1

Powered by SIMPLIFIER.NET

HL7® and FHIR® are the registered trademarks of Health Level Seven International