These docs are for v2. Click to read the latest docs for v3.

Create DocumentReference v2

Send a POST to

  • production environment : https://api.lifen.fr/fhir/v2/DocumentReference
  • test environment : https://api.post-prod.lifen.fr/fhir/v2/DocumentReference

with a JSON body containing the reference to the previously created Binary as well as the document metadata.

Your DocumentReference should include a document type, see our list of type code bellow (most of them from the LOINC standard):

CodeDisplay
OTHEROther
11488-4Consultation note
34874-8Surgery Surgical operation note
11493-4Hospital discharge studies summary Narrative
11502-2Laboratory report
29551-9Medication prescribed
57828-6Prescription list
11490-0Physician Discharge summary
34794-8Interdisciplinary Note
11526-1Pathology study
18748-4Diagnostic imaging study
56446-8Appointment summary Document
67851-6Admission evaluation note
57133-1Referral note
57826-0Co-payment amount Narrative
CERT_DECLCertificate
15508-5Labor and delivery records

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"
      }
    }
  ]
}