A package to help FHIR searching with needed search parameters are not available
Reason this release was yanked:
Non-working package
Project description
FHIR Search Helper
A Python package to support FHIR Searching in contexts where needed search parameters are not supported
A Note on CapabilityStatements
In their current form, CapabilityStatement
s do not have a way to express when a search parameter for a resource is conditionally accepted. For example, in the Epic R4 CapabilityStatement
, for the Condition
resource, there exists a listed search parameter of code
. In the description, there is a note that this search parameter is only accepted when the category
is equal to infection
. The only way that this conditional information would be known is by manual reading of the description. To alleviate this issue, and to avoid extreme custom handling in this package, currently you must edit the CapabilityStatement
of any server with which you would like to use this package and add custom extensions to the search parameter. Keeping with the above example of the search parameter code
for the Condition
resource, here is what the CapabilityStatement.rest[0].resource.where(type = 'Condition').searchParam.where(name = 'code')
element looks like:
{
"name": "code",
"type": "token",
"documentation": "Search for Conditions with a specified code. This is only used when searching for infections.",
"extension": [
{
"url": "true-when",
"valueString": "category==infection"
}
]
}
Here we have added an extension with a url of true-when
that is a machine readable statement denoting when a search parameter is accepted by the server. It currently only supports == to show equality and in to show membership of a list (e.g. "category in [infection, health-problem]"). This also works for when a search parameter is limited in the values it will successfully search for. For example, here is what the CapabilityStatement.rest[0].resource.where(type = 'Condition').searchParam.where(name = 'category')
element looks like:
{
"name": "category",
"type": "token",
"documentation": "Search for Condition resources by category.",
"extension": [
{
"url": "true-when",
"valueString": "category in [dental-finding, encounter-diagnosis, genomics, health-concern, infection, medical-history, problem-list-item, reason-for-visit]"
}
]
}
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
File details
Details for the file fhirsearchhelper-0.0.3.tar.gz
.
File metadata
- Download URL: fhirsearchhelper-0.0.3.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 628703ba119d5e81f615b485af84e539ce78a53b2b28e75c41d73b508403d18f |
|
MD5 | 1241d8bd74116f1ca8b891b33e8ca6f1 |
|
BLAKE2b-256 | 72099024a2a1b13dda6fb125478a0726b417f438e94caa62f2defc5d9bb61b87 |
File details
Details for the file fhirsearchhelper-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: fhirsearchhelper-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36bf4eda53957d925fa5573bf80dd6a4876204f21379c5a0a980121170f721a4 |
|
MD5 | 561c3ce0672f55248f93df925baab3d2 |
|
BLAKE2b-256 | b85ca05ecfdad61886a8e6fbc75d44507e25e4f1321e1d642a786ce5d7310959 |