arkhn / fhir-store

Serve FHIR standard in json, yml, etc.
Apache License 2.0
13 stars 2 forks source link

Add a Flask API to serve the data format #4

Open LaRiffle opened 5 years ago

LaRiffle commented 5 years ago

Having an API to serve this files that represents the FHIR format would be very valuable. One direct application would be for our interface fhir-ball to fetch the Resource structure on which the user will do the mapping.

Beyond that, it allows external user to access the standard in their preferred format (json, yml, etc) in a very simple way, and without having to worry about about the latest release.

A good implementation would be to do this with Flask.

jblemoine commented 5 years ago

Can you specify, what the API input and the output would be ? (And illustrate it with a short query template pls)

LaRiffle commented 5 years ago

Store I think it would be like this:

The input is:

The output is:

Returns

resourceType: "Patient" identifier: active: ...

LaRiffle commented 5 years ago

Also, the API could be useful to serve mapping file as well:

LaRiffle commented 5 years ago

Mapping

The input is:

The output is:

Returns

info: source_table: 'ICSF.PATIENT' fhir: resourceType: 'Patient' identifier: _join: _type: 'OneToOne' _args: ['ICSF.PATIENT.NOPAT=ICSF.PATCOMP.NOPAT'] ...

Should be case insensitive I think