Stream: implementers
Topic: FHIR documents
Ahmad Ramin (Aug 26 2020 at 10:17):
Dear all, im new to FHIR and wonder how a FHIR document is created? is it something created by code or can be done manually?
Patrick Werner (Aug 26 2020 at 11:04):
https://www.hl7.org/fhir/documents.html
You can create it manually or in code, whatever you are preferring.
Ahmad Ramin (Aug 27 2020 at 11:17):
thanks @Patrick Werner . is bundle and document the same? if I create a document using code, what can be the format of the document? is PDF supported?
Mareike Przysucha (Aug 27 2020 at 11:40):
The "document" you can create in FHIR is a Bundle with several resources, containing at least a composition which structures the content and references the necessary resources. How you transform and/or display it in your application (e.g. transformation to PDF or using a stylesheet) is left to you, though the specification gives some advise and also provides a stylesheet, which can be used.
If you want to transport e.g. a PDF file, you should have a look at DocumentReference (https://www.hl7.org/fhir/documentreference.html).
Ahmad Ramin (Aug 27 2020 at 15:20):
thanks @Mareike Przysucha . The scenario im struggling with is : I have some clinical data in mongo database. I want to export these resources (data) as FHIR document. This should be done through a coding language such as nodejs. it is unclear for me where to start from. I will be greatful if anyone guide me through.
Vassil Peytchev (Aug 27 2020 at 15:31):
Here is the starting point for describing what a FHIR Document looks like: a FHIR Bundle resource of type document, where the first Bundle.entry contains a Composition resource.
http://build.fhir.org/documents.html
Beyond the basic structure of the FHIR Document, you also need to map the clinical data to the corresponding FHIR resources, and then include them in FHIR Document Bundle.
Ahmad Ramin (Aug 27 2020 at 16:06):
at the end the format of the document would be a json or xml right?
Vassil Peytchev (Aug 27 2020 at 17:06):
Correct.
Richard Townley-O'Neill (Aug 27 2020 at 23:59):
@Ahmad Ramin
Are you aware that a FHIR document, following HL7 tradition, is not just a file of related content? From http://build.fhir.org/documents.html :
A document is an immutable set of resources with a fixed presentation that is authored and/or attested by humans, organizations and devices.
Some statements of requirements talk of documents when they mean files.
R venu (Sep 01 2020 at 13:28):
Hi
R venu (Sep 01 2020 at 13:29):
how to integrate your resource Api's in hapifhir.ui
David Pyke (Sep 01 2020 at 13:30):
better to ask in #hapi
Ahmad Ramin (Sep 07 2020 at 12:43):
Hey guys, so I have some patient data. I wanted to create a FHIR resource out of it. most fields are in base FHIR patient resource, but I have some custom other fields for patient. now wondering how to deal with that? is it some thing to do with extensions? if anyone has an example would be great. I am using JSON
Mareike Przysucha (Sep 07 2020 at 12:47):
Hi @Ahmad Ramin, your question is not related to the topic "FHIR documents". I advise you to open a new topic in the implementers' stream. This will enable others with similar questions to find the answers more easily.
Morten Ernebjerg (Sep 07 2020 at 12:50):
In addition to what Mareike said, it would also be great if you could provide some details on what kind of custom fields you have for your patients - the best way to deal with them will depend on what kind of data they hold.
Mareike Przysucha (Sep 07 2020 at 12:51):
I wanted to write that in the new topic ;-)
Ahmad Ramin (Sep 07 2020 at 12:58):
sure, thanks
Mareike Przysucha (Sep 07 2020 at 13:02):
For all who are interested: The new topic is called "Custom patient resource".
Last updated: Apr 12 2022 at 19:14 UTC