POST api/ProviderService/UploadPatientDocument

Upload Patient Document

Request Information

URI Parameters

None.

Body Parameters

document ViewModel

DocumentViewModel
NameDescriptionTypeAdditional information
FileData

File Data

Collection of byte

None.

DocDirPath

Doc Dir Path

string

None.

DocumentString

Doc String

string

None.

DocumentFileName

Doc FileName

string

None.

PatientID

Patient ID

globally unique identifier

None.

DocLabelID

Doc Label ID

integer

None.

PracticeID

Practice ID

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "FileData": "QEA=",
  "DocDirPath": "sample string 1",
  "DocumentString": "sample string 2",
  "DocumentFileName": "sample string 3",
  "PatientID": "bdff7a21-9016-481e-b517-ee4f23719030",
  "DocLabelID": 5,
  "PracticeID": "68ec2579-0810-486d-bf36-d6a8ba8b18c6"
}

application/xml, text/xml

Sample:
<DocumentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AbsoluteHealth.API.Models">
  <DocDirPath>sample string 1</DocDirPath>
  <DocLabelID>5</DocLabelID>
  <DocumentFileName>sample string 3</DocumentFileName>
  <DocumentString>sample string 2</DocumentString>
  <FileData>QEA=</FileData>
  <PatientID>bdff7a21-9016-481e-b517-ee4f23719030</PatientID>
  <PracticeID>68ec2579-0810-486d-bf36-d6a8ba8b18c6</PracticeID>
</DocumentViewModel>

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 'DocumentViewModel'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>