POST Patient Guarantors

Developer Tools

POST api/v1/{EMRSystem}/PatientGuarantors/

Creates a patient guarantor and returns the guarantor Id.

HTTP Method

POST

Applicable Emissary Products

Interactive Workflow

Allscripts

In Dev

Athena

In Dev

Cerner

In Dev

Meditech

Released

Sandbox

In Dev

Don't see the data field you are looking for?

Request Information

URI Parameters

NAME

DESCRIPTION

TYPE

ADDITIONAL INFO

EMRSystem

The emr system.

EMRsystem

Required

 
Body Parameters
The Patient Guarantor Create Request View Model.

NAME

DESCRIPTION

TYPE

ADDITIONAL INFO

UserId

Gets or sets the user identifier.

string

Required

PatientId

Gets or sets the patient identifier.

string

Required

PatientIdType

Gets or sets the patient identifier type.

string

None.

Guarantor

Gets or sets the patient.

PatientGuarantorCreateViewModel

Required

 

Response Information

 
Resource Description
Http response containing a guarantor Id.
None
 
Response Codes

Http Status Code 201 – Indicates that the request was processed successfully.

Http Status Code 400 – Indicates that the request did not contain all the required fields.

Http Status Code 500 – Indicates that an internal server error occurred during processing of the request.

Http Status Code 502 – Indicates that a request made to the underlying EMR server could not be completed.

 
Response Formats
Sample Message
Download Json Schema
{
  "UserId": "sample string 1",
  "PatientId": "sample string 2",
  "PatientIdType": "sample string 3",
  "Guarantor": {
    "LastName": "sample string 1",
    "FirstName": "sample string 2",
    "Addresses": [
      {
        "Address1": "sample string 1",
        "Address2": "sample string 2",
        "City": "sample string 3",
        "State": "sample string 4",
        "ZIP": "sample string 5",
        "TypeId": "sample string 6"
      },
      {
        "Address1": "sample string 1",
        "Address2": "sample string 2",
        "City": "sample string 3",
        "State": "sample string 4",
        "ZIP": "sample string 5",
        "TypeId": "sample string 6"
      }
    ],
    "Phones": [
      {
        "Number": "sample string 1",
        "TypeId": "sample string 2"
      },
      {
        "Number": "sample string 1",
        "TypeId": "sample string 2"
      }
    ],
    "SSN": "sample string 3",
    "RelationshipToPatientId": "sample string 4"
  },
  "Domain": "sample string 4",
  "LoginId": "sample string 5",
  "Password": "sample string 6",
  "EmrInstance": "sample string 7",
  "ApplicationName": "sample string 8",
  "ApplicationKey": "sample string 9"
}
Sample Message
<PatientGuarantorCreateRequestViewModel xmlns:i="https://www.w3.org/2001/XMLSchema-instance" xmlns="https://schemas.datacontract.org/2004/07/Sansoro.Shared.SansoroServiceBus.Models">
  <ApplicationKey>sample string 9</ApplicationKey>
  <ApplicationName>sample string 8</ApplicationName>
  <Domain>sample string 4</Domain>
  <EmrInstance>sample string 7</EmrInstance>
  <LoginId>sample string 5</LoginId>
  <Password>sample string 6</Password>
  <Guarantor xmlns:d2p1="https://schemas.datacontract.org/2004/07/Sansoro.Shared.SansoroServiceBus.Models.BaseViewModels">
    <d2p1:Addresses>
      <d2p1:AddressCreateViewModel>
        <d2p1:Address1>sample string 1</d2p1:Address1>
        <d2p1:Address2>sample string 2</d2p1:Address2>
        <d2p1:City>sample string 3</d2p1:City>
        <d2p1:State>sample string 4</d2p1:State>
        <d2p1:TypeId>sample string 6</d2p1:TypeId>
        <d2p1:ZIP>sample string 5</d2p1:ZIP>
      </d2p1:AddressCreateViewModel>
      <d2p1:AddressCreateViewModel>
        <d2p1:Address1>sample string 1</d2p1:Address1>
        <d2p1:Address2>sample string 2</d2p1:Address2>
        <d2p1:City>sample string 3</d2p1:City>
        <d2p1:State>sample string 4</d2p1:State>
        <d2p1:TypeId>sample string 6</d2p1:TypeId>
        <d2p1:ZIP>sample string 5</d2p1:ZIP>
      </d2p1:AddressCreateViewModel>
    </d2p1:Addresses>
    <d2p1:FirstName>sample string 2</d2p1:FirstName>
    <d2p1:LastName>sample string 1</d2p1:LastName>
    <d2p1:Phones>
      <d2p1:PhoneCreateViewModel>
        <d2p1:Number>sample string 1</d2p1:Number>
        <d2p1:TypeId>sample string 2</d2p1:TypeId>
      </d2p1:PhoneCreateViewModel>
      <d2p1:PhoneCreateViewModel>
        <d2p1:Number>sample string 1</d2p1:Number>
        <d2p1:TypeId>sample string 2</d2p1:TypeId>
      </d2p1:PhoneCreateViewModel>
    </d2p1:Phones>
    <d2p1:RelationshipToPatientId>sample string 4</d2p1:RelationshipToPatientId>
    <d2p1:SSN>sample string 3</d2p1:SSN>
  </Guarantor>
  <PatientId>sample string 2</PatientId>
  <PatientIdType>sample string 3</PatientIdType>
  <UserId>sample string 1</UserId>
</PatientGuarantorCreateRequestViewModel>

Submit a Comment

Your email address will not be published. Required fields are marked *

 

Don't see the data field you are looking for?