POST api/Intefaces/GetMohObligations

Request Information

URI Parameters

None.

Body Parameters

MohRequestData
NameDescriptionTypeAdditional information
InsurCode

integer

None.

InsurerId

string

None.

MagneticPath

string

None.

InsurerName

string

None.

PatientId

string

None.

PatientPassport

string

None.

CustNum

integer

None.

VisitCode

integer

None.

DiaryNum

integer

None.

Opers

Collection of Operation

None.

Request Formats

application/json, text/json

Sample:
{
  "InsurCode": 1,
  "InsurerId": "sample string 2",
  "MagneticPath": "sample string 3",
  "InsurerName": "sample string 4",
  "PatientId": "sample string 5",
  "PatientPassport": "sample string 6",
  "CustNum": 7,
  "VisitCode": 8,
  "DiaryNum": 1,
  "Opers": [
    {
      "DebitCode": 1,
      "OperCode": 2,
      "OperName": "sample string 3",
      "ServiceCodeMoh": "sample string 4",
      "ServiceCodeKupa": "sample string 5",
      "IsFirstDebit": true
    },
    {
      "DebitCode": 1,
      "OperCode": 2,
      "OperName": "sample string 3",
      "ServiceCodeMoh": "sample string 4",
      "ServiceCodeKupa": "sample string 5",
      "IsFirstDebit": true
    }
  ]
}

application/xml, text/xml

Sample:
<MohRequestData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLMedical.MedInterfaces">
  <CustNum>7</CustNum>
  <DiaryNum>1</DiaryNum>
  <InsurCode>1</InsurCode>
  <InsurerId>sample string 2</InsurerId>
  <InsurerName>sample string 4</InsurerName>
  <MagneticPath>sample string 3</MagneticPath>
  <Opers>
    <Operation>
      <DebitCode>1</DebitCode>
      <IsFirstDebit>true</IsFirstDebit>
      <OperCode>2</OperCode>
      <OperName>sample string 3</OperName>
      <ServiceCodeKupa>sample string 5</ServiceCodeKupa>
      <ServiceCodeMoh>sample string 4</ServiceCodeMoh>
    </Operation>
    <Operation>
      <DebitCode>1</DebitCode>
      <IsFirstDebit>true</IsFirstDebit>
      <OperCode>2</OperCode>
      <OperName>sample string 3</OperName>
      <ServiceCodeKupa>sample string 5</ServiceCodeKupa>
      <ServiceCodeMoh>sample string 4</ServiceCodeMoh>
    </Operation>
  </Opers>
  <PatientId>sample string 5</PatientId>
  <PatientPassport>sample string 6</PatientPassport>
  <VisitCode>8</VisitCode>
</MohRequestData>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'MohRequestData'.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

UpdateResult
NameDescriptionTypeAdditional information
Status

MohObligationStatus

None.

VisitObligNumber

string

None.

DebitUpdateInfo

Collection of DebitUpdateInfo

None.

DebitErrorInfo

Collection of DebitErrorInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 0,
  "VisitObligNumber": "sample string 1",
  "DebitUpdateInfo": [
    {
      "LineCodeUpd": 1,
      "ObligNumUpd": "sample string 2"
    },
    {
      "LineCodeUpd": 1,
      "ObligNumUpd": "sample string 2"
    }
  ],
  "DebitErrorInfo": [
    {
      "LineCodeErr": 1
    },
    {
      "LineCodeErr": 1
    }
  ]
}

application/xml, text/xml

Sample:
<UpdateResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLMedical.MedInterfaces">
  <DebitErrorInfo>
    <MohObligations.DebitErrorInfo>
      <LineCodeErr>1</LineCodeErr>
    </MohObligations.DebitErrorInfo>
    <MohObligations.DebitErrorInfo>
      <LineCodeErr>1</LineCodeErr>
    </MohObligations.DebitErrorInfo>
  </DebitErrorInfo>
  <DebitUpdateInfo>
    <MohObligations.DebitUpdateInfo>
      <LineCodeUpd>1</LineCodeUpd>
      <ObligNumUpd>sample string 2</ObligNumUpd>
    </MohObligations.DebitUpdateInfo>
    <MohObligations.DebitUpdateInfo>
      <LineCodeUpd>1</LineCodeUpd>
      <ObligNumUpd>sample string 2</ObligNumUpd>
    </MohObligations.DebitUpdateInfo>
  </DebitUpdateInfo>
  <Status>inProccess</Status>
  <VisitObligNumber>sample string 1</VisitObligNumber>
</UpdateResult>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.