GET api/v1/{EMRSystem}/Population/Documents

Returns the Documents of all statuses for all patients for a given date range and filtered, optionally, by Locations (facilities) or DocumentTypes.

Status: Released

URI Parameters

NameDescriptionTypeAdditional information
EMRSystem

The emr system.

EMRSystem

None.

DocumentCategories

Gets or sets the document categories.

string

None.

DocumentTypes

Gets or sets the document types.

string

None.

LocationList

Gets or sets the location list.

string

None.

IncludeBody

Gets or sets a value indicating whether [include body].

boolean

None.

UserId

Identifier of the user initiating the request.

string

Required

FromDateTime

Gets or sets from date time.

datetime

Required if EMRSystem = Cerner, or Epic, or Meditech

ToDateTime

Gets or sets to date time.

datetime

None.

Header Parameters

NameDescriptionTypeAdditional information
LoginId

Gets or sets the login identifier. This Login Id will be encrypted and passed in Sansoro specific Http Request Headers.

string

Required if EMRSystem = Allscripts, or Athena, or Cerner, or Meditech, or Sandbox

Password

Gets or sets the password. This Password will be encrypted and passed in Sansoro specific Http Request Headers.

string

Data type: Password

Required if EMRSystem = Allscripts, or Athena, or Cerner, or Meditech, or Sandbox

EmrInstance

Gets or sets the emr instance. This emr instance info will be encrypted and passed in Sansoro specific Http Request Headers.

string

None.

ApplicationName

Gets or sets the requesting application name. This requesting application name will be encrypted and passed in Sansoro specific Http Request Headers.

string

Required if using application keys

ApplicationKey

Gets or sets the requesting application key. This requesting application key will be encrypted and passed in Sansoro specific Http Request Headers.

string

Data type: Password

Required if using application keys

AuthorizationToken

Gets or sets the custom authorization token. This requesting authorization token will be encrypted and passed in Sansoro specific Http Request Headers.

string

None.

RequestVerboseLogging

Enables verbose logging for a single request. When "true", verbose logging will occur. When "false", the configuration setting will be respected. This value will be passed in Sansoro specific Http Request Headers.

boolean

None.

Response Information

Collection of UdmPopulationDocumentResponse
NameDescriptionTypeAdditional information
DocumentId

Gets or sets the document identifier.

string

None.

DocumentDateTime

Gets or sets the document date time.

datetime

None.

DocumentResultDateTime

Gets or sets the document result date time.

datetime

None.

DocumentTitle

Gets or sets the document title.

string

None.

DocumentType

Gets or sets the document type.

string

None.

DocumentStatus

Gets or sets the document status.

string

None.

OrderId

Gets or sets the order identifier.

string

None.

ActiveInd

Gets or sets a value indicating whether [active ind].

boolean

None.

AuthorId

Gets or sets the identifier of the author.

string

None.

AuthorName

Gets or sets the name of the author.

string

None.

DocumentFormat

Gets or sets the document format.

string

None.

Documents

Gets or sets the children document.

Collection of ChildDocument

None.

CreatedUpdatedDateTime

Gets or sets the created updated date time.

datetime

None.

Patient

Gets or sets the patient.

BasePatient

None.

Encounter

Gets or sets the encounter.

Encounter

None.

Response Codes

Http Status Code 200 - Indicates that the request was processed successfully.

Http Status Code 400 - Indicates that the request did not contain all the required fields or had an invalid value.

Http Status Code 401 - Indicates that authentication to the underlying EMR server using the provided LoginId and Password failed.

Http Status Code 403 - Indicates that there is an issue with the request UserId.

Http Status Code 408 - Indicates that the request to the underlying EMR server timed out.

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

application/json

[
  {
    "DocumentId": "sample string 1",
    "DocumentDateTime": "2025-12-12T20:55:02.5383844+00:00",
    "DocumentResultDateTime": "2025-12-12T20:55:02.5384442+00:00",
    "DocumentTitle": "sample string 2",
    "DocumentType": "sample string 3",
    "DocumentStatus": "sample string 4",
    "OrderId": "sample string 5",
    "ActiveInd": true,
    "AuthorId": "sample string 6",
    "AuthorName": "sample string 7",
    "DocumentFormat": "sample string 8",
    "Documents": [
      {
        "DocumentId": "sample string 1",
        "DocumentDateTime": "2025-12-12T20:55:02.539109+00:00",
        "DocumentTitle": "sample string 2",
        "DocumentType": "sample string 3",
        "DocumentStatus": "sample string 4",
        "DocumentPointer": "sample string 5",
        "ActiveInd": true,
        "Storage": "sample string 6",
        "Format": "sample string 7",
        "Body": "sample string 8",
        "BodyLength": "sample string 9",
        "IsEncoded": true
      },
      {
        "DocumentId": "sample string 1",
        "DocumentDateTime": "2025-12-12T20:55:02.539109+00:00",
        "DocumentTitle": "sample string 2",
        "DocumentType": "sample string 3",
        "DocumentStatus": "sample string 4",
        "DocumentPointer": "sample string 5",
        "ActiveInd": true,
        "Storage": "sample string 6",
        "Format": "sample string 7",
        "Body": "sample string 8",
        "BodyLength": "sample string 9",
        "IsEncoded": true
      }
    ],
    "CreatedUpdatedDateTime": "2025-12-12T20:55:02.5402726+00:00",
    "Patient": {
      "PatientId": "sample string 1",
      "DisplayName": "sample string 2",
      "LastName": "sample string 3",
      "FirstName": "sample string 4",
      "MiddleName": "sample string 5",
      "MRN": "sample string 6",
      "BirthDateTime": "2025-12-12T20:55:02.5403381+00:00",
      "Gender": {
        "Id": "sample string 1",
        "Name": "sample string 2"
      },
      "DeceasedDateTime": "2025-12-12T20:55:02.5403488+00:00"
    },
    "Encounter": {
      "EncounterId": "sample string 1",
      "EncounterType": {
        "Id": "sample string 1",
        "Name": "sample string 2"
      },
      "PatientClass": {
        "Id": "sample string 1",
        "Name": "sample string 2"
      },
      "EncounterDateTime": "2025-12-12T20:55:02.5403982+00:00",
      "DischargeDateTime": "2025-12-12T20:55:02.5404003+00:00",
      "FinancialNumber": "sample string 2",
      "Location": {
        "BedId": "sample string 1",
        "Bed": "sample string 2",
        "RoomId": "sample string 3",
        "Room": "sample string 4",
        "UnitId": "sample string 5",
        "Unit": "sample string 6",
        "HospitalId": "sample string 7",
        "Hospital": "sample string 8"
      }
    }
  },
  {
    "DocumentId": "sample string 1",
    "DocumentDateTime": "2025-12-12T20:55:02.5383844+00:00",
    "DocumentResultDateTime": "2025-12-12T20:55:02.5384442+00:00",
    "DocumentTitle": "sample string 2",
    "DocumentType": "sample string 3",
    "DocumentStatus": "sample string 4",
    "OrderId": "sample string 5",
    "ActiveInd": true,
    "AuthorId": "sample string 6",
    "AuthorName": "sample string 7",
    "DocumentFormat": "sample string 8",
    "Documents": [
      {
        "DocumentId": "sample string 1",
        "DocumentDateTime": "2025-12-12T20:55:02.539109+00:00",
        "DocumentTitle": "sample string 2",
        "DocumentType": "sample string 3",
        "DocumentStatus": "sample string 4",
        "DocumentPointer": "sample string 5",
        "ActiveInd": true,
        "Storage": "sample string 6",
        "Format": "sample string 7",
        "Body": "sample string 8",
        "BodyLength": "sample string 9",
        "IsEncoded": true
      },
      {
        "DocumentId": "sample string 1",
        "DocumentDateTime": "2025-12-12T20:55:02.539109+00:00",
        "DocumentTitle": "sample string 2",
        "DocumentType": "sample string 3",
        "DocumentStatus": "sample string 4",
        "DocumentPointer": "sample string 5",
        "ActiveInd": true,
        "Storage": "sample string 6",
        "Format": "sample string 7",
        "Body": "sample string 8",
        "BodyLength": "sample string 9",
        "IsEncoded": true
      }
    ],
    "CreatedUpdatedDateTime": "2025-12-12T20:55:02.5402726+00:00",
    "Patient": {
      "PatientId": "sample string 1",
      "DisplayName": "sample string 2",
      "LastName": "sample string 3",
      "FirstName": "sample string 4",
      "MiddleName": "sample string 5",
      "MRN": "sample string 6",
      "BirthDateTime": "2025-12-12T20:55:02.5403381+00:00",
      "Gender": {
        "Id": "sample string 1",
        "Name": "sample string 2"
      },
      "DeceasedDateTime": "2025-12-12T20:55:02.5403488+00:00"
    },
    "Encounter": {
      "EncounterId": "sample string 1",
      "EncounterType": {
        "Id": "sample string 1",
        "Name": "sample string 2"
      },
      "PatientClass": {
        "Id": "sample string 1",
        "Name": "sample string 2"
      },
      "EncounterDateTime": "2025-12-12T20:55:02.5403982+00:00",
      "DischargeDateTime": "2025-12-12T20:55:02.5404003+00:00",
      "FinancialNumber": "sample string 2",
      "Location": {
        "BedId": "sample string 1",
        "Bed": "sample string 2",
        "RoomId": "sample string 3",
        "Room": "sample string 4",
        "UnitId": "sample string 5",
        "Unit": "sample string 6",
        "HospitalId": "sample string 7",
        "Hospital": "sample string 8"
      }
    }
  }
]

'

GET api/v1/{EMRSystem}/Population/Documents

Returns the Documents of all statuses for all patients for a given date range and filtered, optionally, by Locations (facilities) or DocumentTypes.

Status: Released

URI Parameters


Required
Required if EMRSystem = Cerner, or Epic, or Meditech

Header Parameters

Required if EMRSystem = Allscripts, or Athena, or Cerner, or Meditech, or Sandbox
Data type: Password , Required if EMRSystem = Allscripts, or Athena, or Cerner, or Meditech, or Sandbox
Required if using application keys
Data type: Password , Required if using application keys

Request: {{ method }} {{ url }}

  • Http Request Headers
  • {{header.name}} : {{header.value}} ******
  • Http Request Body
  • {{httpRequestBody}}
  • Http Response Headers
  • {{header.name}} : {{header.value}} ******
  • Http Response Data
  • {{httpResponseData}}