POST api/v1/{practiceXRef}/patient/inactivate
Delete an existing patient in a practice
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
practiceXRef |
NodeId of the practice that owns the patient data |
string |
Required |
Body Parameters
The patient object
Com.Healthbridge.Hhas.Patient.Interface.Commands.RemovePatientName | Description | Type | Additional information |
---|---|---|---|
PatientId | globally unique identifier |
None. |
|
PatientXRef | string |
None. |
|
PracticeId | globally unique identifier |
None. |
|
Reason | string |
None. |
|
CorrelationIds | Collection of string |
None. |
|
OriginatedSystem | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "PatientId": "b8292f82-2d13-44b8-b61d-bc6318398042", "PatientXRef": "sample string 2", "PracticeId": "ef2edf68-aa2a-44ef-95e5-ac9b7db2dfdd", "Reason": "sample string 4", "CorrelationIds": [ "sample string 1", "sample string 2" ], "OriginatedSystem": "sample string 5" }
application/xml, text/xml
Sample:
<RemovePatient xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Com.Healthbridge.Hhas.Patient.Interface.Commands"> <CorrelationIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://mpsapi.healthbridge.com/platform/core/v1/command/"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </CorrelationIds> <OriginatedSystem xmlns="http://mpsapi.healthbridge.com/platform/core/v1/command/">sample string 5</OriginatedSystem> <PatientId>b8292f82-2d13-44b8-b61d-bc6318398042</PatientId> <PatientXRef>sample string 2</PatientXRef> <PracticeId>ef2edf68-aa2a-44ef-95e5-ac9b7db2dfdd</PracticeId> <Reason>sample string 4</Reason> </RemovePatient>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
NodeId of the patient
Com.Healthbridge.Core.CommonDomain.Interface.ValueObjects.RestApiResultOfSystem.GuidName | Description | Type | Additional information |
---|---|---|---|
Sucess | boolean |
None. |
|
ResponseCode | integer |
None. |
|
ResponseMessage | string |
None. |
|
Data | globally unique identifier |
None. |
|
Links | Collection of Com.Healthbridge.Core.CommonDomain.Interface.ValueObjects.RestApiLink |
None. |
Response Formats
application/json, text/json
Sample:
{ "Sucess": true, "ResponseCode": 2, "ResponseMessage": "sample string 3", "Data": "30d1f839-8f84-4526-9572-79b372d0def8", "Links": [ { "Rel": "sample string 1", "HRef": "sample string 2" }, { "Rel": "sample string 1", "HRef": "sample string 2" } ] }
application/xml, text/xml
Sample:
<RestApiResultOfguid xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Com.Healthbridge.Core.CommonDomain.Interface.ValueObjects"> <Data>30d1f839-8f84-4526-9572-79b372d0def8</Data> <Links> <RestApiLink> <HRef>sample string 2</HRef> <Rel>sample string 1</Rel> </RestApiLink> <RestApiLink> <HRef>sample string 2</HRef> <Rel>sample string 1</Rel> </RestApiLink> </Links> <ResponseCode>2</ResponseCode> <ResponseMessage>sample string 3</ResponseMessage> <Sucess>true</Sucess> </RestApiResultOfguid>