Create DocumentReference

Send a POST api.lifen.fr/fhir/v2/DocumentReference with a JSON body containing the reference to the previously created Binary as well as the document metadata.

Metadata are like how type of medical document is created like the example below. Many types of documents exist on Loinc standard.

Lifen support a short list of them among :

  • Surgery Surgical operation note = "34874-8"
  • Hospital discharge studies summary Narrative = "11493-4"
  • Physician Discharge summary = "11490-0"
  • Laboratory report = "11502-2"
  • Prescription list = "57828-6"
  • Diagnostic imaging study = "18748-4"
  • Interdisciplinary note = "34794-8"
  • Appointment summary document = "56446-8"
  • Pathology study = "11526-1"
  • Consult note = "11488-4"
  • Medication prescribed = "29551-9"
  • Admission evaluation note = "67851-6"
  • Referral note = "57133-1"
  • Co-payment amount Narrative = "57826-0"
  • Certificate = "CERT_DECL"
  • Other = "OTHER"

Example :

{
  "resourceType": "DocumentReference",
  "status": "current",
  "docStatus": "final",
  "type": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "11488-4",
        "display": "Consultation note"
      }
    ]
  },
  "indexed": "2018-02-09T16:00:44+01:00",
  "description": "binary",
  "content": [
    {
      "attachment": {
        "contentType": "application/pdf",
        "url": "Binary/5231751",
        "title": "binary.pdf"
      }
    }
  ]
}