FHIR Chat · HTML-FHIR · implementers

Stream: implementers

Topic: HTML-FHIR


view this post on Zulip harsh kumar (Dec 16 2016 at 06:36):

How to map HTML form to a FHIR XML format or vice versa

view this post on Zulip harsh kumar (Dec 16 2016 at 06:45):

anyone?

view this post on Zulip Lloyd McKenzie (Dec 16 2016 at 07:34):

Are you asking how to technically do the conversion or how do you figure out which elements map where?

view this post on Zulip harsh kumar (Dec 16 2016 at 07:35):

How to map which elements where?

view this post on Zulip Pascal Pfiffner (Dec 16 2016 at 12:05):

You'll need to be more specific. Please read this: http://wiki.hl7.org/index.php?title=FHIR_Rules_for_asking_questions

view this post on Zulip harsh kumar (Dec 16 2016 at 14:08):

Okay, here it is. I have a Patient record, that I want to store on my Hapi FHIR server (locally hosted), to do so I need to upload my record in proper format of resource type "Patient" i.e. a valid FHIR XML format. Now I want to create such an XML i.e. I need to create an interface that would map HTML form data into XML supported by FHIR. For I will have an HTML form to input the Patient Information, and then storing the information collected into patient resource on fhir server.

view this post on Zulip harsh kumar (Dec 16 2016 at 14:22):

Hope this helps

view this post on Zulip Josh Mandel (Dec 16 2016 at 14:25):

You'd need to write some application code (either in the browser or in a backend that you write) to create the Patient resource from your form data, and then post that to the FHIR server. If you choose to do this in the browser, you'll probably want to use JSON rather than XML.

view this post on Zulip harsh kumar (Dec 16 2016 at 14:27):

Umm Okay, First has this not been explored? And this is there any other way you could suggest to put user collected data into FHIR, ie an existing interface, if any?

view this post on Zulip Lloyd McKenzie (Dec 16 2016 at 16:18):

I'm sure others have taken HTML data and turned it into FHIR, though the typical path is using JavaScript to produce JSON rather than producing XML. (JSON and Javascript seem to align with HTML a bit better). There are numerous possible "hows" to turn stuff into XML though - it really depends on your language of preference, how you prefer to navigate the HTML data, etc. There's lots of alternatives for user-collected data too, including FHIR Questionnaires.

view this post on Zulip harsh kumar (Dec 17 2016 at 18:07):

Ohh, okay. thanks.


Last updated: Apr 12 2022 at 19:14 UTC