1. Home
  2. Connect
  3. Docman Connect Inbound Document Model

Docman Connect Inbound Document Model

Introduction

This article describes the Docman API Inbound Document Model and should be used with the “Post Document” method in either the Docman 10 or Docman Connect services in Docman API. The table below explains each field, data type, if the field is mandatory in either Docman 10 or Docman Connect it also has a small description .

The model should be built and formatted in a JSON string and included in the body of the “Post Document” method. The model is built up with numerous different objects. If the Data type in the inbound document model  is ” X Object” then “X Object” will be described further down the article.

Inbound Document Model

FieldTypeMandatoryDescription
CaptureSourceEnum

Yes

The API capture source for Docman Connect must always be ‘2’

SenderSender Object

Yes

Object which holds details of the Sender
See Sender Object
RecipientOdsCodeStringYes Connect Endpoint ODS Code

 Max length 10

PatientPatient Object

Yes

Object which holds details of the patient
See Patient Object
DocumentDocument Object

Yes

Object which holds the document details and content
See Document Object
ActionRequiredBoolean

No

Flag which denotes if the sender deems an action is required or not
Value: True/False
MedicationChangedBoolean

No

Flag which denotes if the medication has changed or not
Value: True/False
UrgentBoolean

No

Flag which denotes if the document is urgent or not
Value: True/False
ClinicalCodesList – ClinicalCode Object

No

List of ClinicalCode objects which are to be sent into the clinical system
See Clinical Code Object
NotesString

No

Notes from Sender

Max Length: 255

RevisionBooleanNoFlag which denotes if the document is a revision or not.
Value: True/False
MRNNumberStringNoMedical Record Number (Secondary Patient Identifier/Hospital Number).
Max length: 255
InpatientBooleanNo Flag which denotes if the document is an inpatient document or not. This is for sending reporting purposes only and this data is not passed to the destination organisation.
Value: True/False
OutpatientBooleanNo Flag which denotes if the document is an outpatient or not. This is for sending reporting purposes only and this data is not passed to the destination organisation.
Value: True/False
OverrideSpineCheckBooleanNoValue True overrides the Spine Check. False or excluding the line uses the Spine Check
Value: True/False

Document Object

FieldTypeMandatoryDescription
DescriptionString  Yes Document Description

Max length: 255

EventDateDate/Time

Yes

Date and Time of the related event.

Date must NOT be in the future

Format: DateTime ISO 8601 UTC
Example: 2017-11-16T08:53:41.8653032+00:00
FolderString

No

Folder description which will be mapped to DM10 folder Id using a case insensitive lookup if a mapping exists

Max length: 50

FilingSectionFolderStringNo Filing folder description which will be mapped to DM10 filing folder Id using a case insensitive lookup if a mapping exists

Max length: 50

FileContentByte array

Yes

Read the document as Byte array, then convert to Base64 String
FileExtensionString

Yes

File extension of the Physical File – the full stop should be omitted but will be removed if present.

Max length: 10

Allowed formats: html, htm, pdf, rtf, doc, docx, tif, tiff, txt, jpeg, jpg, xps, png
FileHashString

No

SHA1 file hash derived from the file content bytes
Max length: 40

Optional and will be allocated if omitted

ExternalSystemIdString

No

System ID from sending system

Patient Object

FieldTypeMandatoryDescription
IdentifierStringYes Patients national identifier – used as part of patient lookup

Formats: NHS or CHI Number

Validation: MOD11

Max length: 10

FamilyNameString

Yes

Surname of patient – used as part of patient lookup

Max length: 255

GivenNamesString

Yes

Patient’s forenames – used as part of patient lookup

 Max length: 255

GenderEnum – ePatientGender


Yes

Patient’s gender– used as part of patient lookup
Validation: Against the range of enum values if supplied – defaults to unknown

Valid Values:

0 – Unspecified

10 – Male

20 – Female
BirthDateDate

Yes

DOB of the patient – used as part of patient lookup
Validation: No future dates
Format: DateTime ISO 8601 UTC
Example: 2017-11-16T08:53:41.8653032+00:00

Sender Object

FieldTypeMandatoryDescription
OdsCodeString

Yes

ODS code of sending organisation

 Max length: 10

OrganisationString

Yes

Description of Organisation

Max length: 255

DepartmentString

Yes

Sending department name

Max length: 255

PersonString

Yes

Person clinically responsible for the document
Max length: 255
GroupString

No

Name of Sender Group to associate the document with in the Connect Console.
Group must already exist, or it will not be linked to a group.
Max length: 100

Clinical Code Object

FieldTypeMandatoryDescription
SchemeEnum – eCodeScheme

Yes

Type of coding system. Read 2 or Snomed

Validated against the range of enum values
Accepted Values:
Read = 0
Snomed = 2

CodeString

Yes

Clinical code – either Read code or Snomed Concept Id
DescriptionString

Yes

Either Read Term or Snomed Description
DescriptionIdString

Yes

Either Read TermId or Snomed Description Id
ValueString Conditional
(REQUIRED if ValueUnit set)
Associated clinical value
ValueUnitString Conditional
(REQUIRED if Value set)
Associated clinical value unit of measure
Updated on May 4, 2022

Was this article helpful?

Related Articles