The openIMIS Backend FHIR API reference module.
Project description
openIMIS Backend FHIR API reference module
Note |
---|
This repository currently supports basic functionality of FHIR API. This Don't use it (or even connect it) to a production database. |
Description
This repository holds the files of the openIMIS Backend FHIR API reference module. It is dedicated to be deployed as a module of openimis-be_py.
The module can be used to mapping objects between OpenIMIS and FHIR representation.
Documentation:
The documentation od this module can be found one the OpenIMIS WIKI page.
Example of usage:
The FHIR API will be available after the module will be deployed on the openimis-be_py.
To fetch information about all OpenIMIS Insueree (FHIR Patient) available on server can be sent GET request on:
http://127.0.0.1:8000/api_fhir/Patient/
, where 127.0.0.1:8000
is the server address.
Examle of response (mapping description):
{
"resourceType": "Bundle",
"entry": [
{
"fullUrl": "http://127.0.0.1:8000/api_fhir/Patient/4",
"resource": {
"resourceType": "Patient",
"address": [
{
"text": "address",
"type": "physical",
"use": "home"
},
{
"text": "geolocation",
"type": "both",
"use": "home"
}
],
"birthDate": "2000-01-02",
"gender": "female",
"id": 4,
"identifier": [
{
"type": {
"coding": [
{
"code": "ACSN",
"system": "https://hl7.org/fhir/valueset-identifier-type.html"
}
]
},
"use": "usual",
"value": "4"
},
{
"type": {
"coding": [
{
"code": "SB",
"system": "https://hl7.org/fhir/valueset-identifier-type.html"
}
]
},
"use": "usual",
"value": "chfid"
},
{
"type": {
"coding": [
{
"code": "PPN",
"system": "https://hl7.org/fhir/valueset-identifier-type.html"
}
]
},
"use": "usual",
"value": "passport"
}
],
"maritalStatus": {
"coding": [
{
"code": "U",
"system": "https://www.hl7.org/fhir/STU3/valueset-marital-status.html"
}
]
},
"name": [
{
"family": "test patient",
"given": [
"test patient"
],
"use": "usual"
}
],
"telecom": [
{
"system": "phone",
"use": "home",
"value": "phoneNum"
},
{
"system": "email",
"use": "home",
"value": "email@email.com"
}
]
}
}
],
"link": [
{
"relation": "self",
"url": "http://127.0.0.1:8000/api_fhir/Patient/?_count=2"
},
{
"relation": "next",
"url": "http://127.0.0.1:8000/api_fhir/Patient/?_count=2&page-offset=2"
}
],
"total": 9,
"type": "searchset"
}
#Dependencies: All required dependencies can be found in the setup.py file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for openimis-be-api_fhir-1.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d95988fd00093df10e3e1bcdb670bb70b0002d24db4cd2bbb8c45d69a97a3da1 |
|
MD5 | efa8ff9e3af77882520b56b5158a286e |
|
BLAKE2b-256 | 380073beacd81ba3a41b1654d027b9ff15dcb20daa4d4ac6889e9128f480e600 |
Hashes for openimis_be_api_fhir-1.0.5-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51b7363f30ecfe1aaf2c01997a729c5297842c51b8503d5347ba0545e7bc1888 |
|
MD5 | 2ba6a0fb0d7b356f5e38b690ae072eb2 |
|
BLAKE2b-256 | 0d4ffbf18b3b1094cb0bfe33474071f59a2998da382fc9e559195e56f01aceb7 |