Create Document Reference

POST {{baseUrl}}/api/v2/DocumentReference?patient=<integer>&encounter=<integer>

Overview:

Adds new document reference records to the system, facilitating the seamless integration of updated clinical documents and supporting efficient document management within healthcare applications.

Use Cases:

  • Submit Patient Notes: Send clinical notes for storage

  • Capture Lab Results: Record and store laboratory results

  • Update Medication Records: Add new medications to patient records

  • Document Treatment Plans: Store details of treatment plans

  • Record Vital Signs: Save patient vital sign data

Request Params

KeyDatatypeRequiredDescription
patientstring(Required) The patient identifier associated with the document reference.
encounterstring(Required) The encounter identifier associated with the document reference.

Request Body

{"context"=>{"departmentId"=>"<string>"}, "data"=>{"resourceType"=>"DocumentReference", "status"=>"current", "docStatus"=>"amended", "type"=>{"coding"=>[{"system"=>"<string>", "code"=>"<string>", "display"=>"<string>"}, {"system"=>"<string>", "code"=>"<string>", "display"=>"<string>"}]}, "category"=>[{"coding"=>[{"system"=>"<string>", "code"=>"<string>", "display"=>"<string>"}, {"system"=>"<string>", "code"=>"<string>", "display"=>"<string>"}], "text"=>"<string>"}, {"coding"=>[{"system"=>"<string>", "code"=>"<string>", "display"=>"<string>"}, {"system"=>"<string>", "code"=>"<string>", "display"=>"<string>"}], "text"=>"<string>"}], "author"=>[{"reference"=>"<string>"}, {"reference"=>"<string>"}], "subject"=>{"reference"=>"<string>"}, "context"=>{"encounter"=>[{"reference"=>"<string>"}, {"reference"=>"<string>"}], "period"=>{"start"=>"<dateTime>"}, "related"=>[{"reference"=>"<string>", "display"=>"<string>"}, {"reference"=>"<string>", "display"=>"<string>"}], "sourcePatientInfo"=>{"extension"=>[{"url"=>"<string>", "valueInteger"=>"<integer>", "valueString"=>"<string>"}, {"url"=>"<string>", "valueInteger"=>"<integer>", "valueString"=>"<string>"}]}}, "content"=>[{"attachment"=>{"contentType"=>"<string>", "data"=>"<string>", "title"=>"<string>"}}, {"attachment"=>{"contentType"=>"<string>", "data"=>"<string>", "title"=>"<string>"}}], "extension"=>[{"url"=>"<string>", "valueInteger"=>"<integer>", "valueString"=>"<string>"}, {"url"=>"<string>", "valueInteger"=>"<integer>", "valueString"=>"<string>"}], "contained"=>[{"resourceType"=>"<string>"}, {"resourceType"=>"<string>"}]}}

HEADERS

KeyDatatypeRequiredDescription
x-source-idstring(Required) The source id provided for connecting to the data source
Content-Typestring
Authorizationstring

RESPONSES

status: OK

[{&quot;context&quot;:{&quot;requestId&quot;:&quot;\u003cstring\u003e&quot;,&quot;source&quot;:&quot;\u003cstring\u003e&quot;,&quot;quorum&quot;:&quot;\u003cboolean\u003e&quot;,&quot;notify&quot;:&quot;\u003cboolean\u003e&quot;},&quot;data&quot;:{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;}},{&quot;context&quot;:{&quot;requestId&quot;:&quot;\u003cstring\u003e&quot;,&quot;source&quot;:&quot;\u003cstring\u003e&quot;,&quot;quorum&quot;:&quot;\u003cboolean\u003e&quot;,&quot;notify&quot;:&quot;\u003cboolean\u003e&quot;},&quot;data&quot;:{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;}}]