Parse FHIR query string
Project description
A library to parse FHIR query strings.
Validates type and returns correct object
Parses modifiers and prefixes
Generally only have included Resources with maturity greater than 3. Some exceptions.
Usage
from fhir_parse_qs import Search search = Search('Patient', 'name=bob') # Search(<endpoint>, <query_string>) # what endpoint search.endpoint --> 'Patient' # each parameter/value pair gets parsed into a namedtuple search.parsed[0] --> FHIRSearch(...) # all the namedtuples search.parsed --> [FHIRSearch(...)] # get FHIRSearch with parameter as key search['name'] --> FHIRSearch(...) search.parsed[0].modifier --> None search.parsed[0].prefix --> None search.parsed[0].value --> 'bob' search.parsed[0].paramater --> 'name' # can iterate over the paramater/value pairs for x in search: x --> FHIRSearch(...)
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
fhir_parse_qs-0.1.1.tar.gz
(2.4 kB
view details)
Built Distribution
File details
Details for the file fhir_parse_qs-0.1.1.tar.gz
.
File metadata
- Download URL: fhir_parse_qs-0.1.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb1cc233e976477c8d07a3cdd768f3dd818892f30b44c987b839c68f19255c5d |
|
MD5 | 0e505f290b8f8fcab4dde79be906e260 |
|
BLAKE2b-256 | 6c9f437f2b2a9da951229560e7b8e792a52dec12d9d857070e9d137b4da3caea |
Provenance
File details
Details for the file fhir_parse_qs-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: fhir_parse_qs-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf61f27c741f9c0bfbab5fb34c185b550d2db3c7f5bc1c07449d6669e7a3a9c3 |
|
MD5 | 604370e13ba068d9947510e91af3130c |
|
BLAKE2b-256 | 9f8265722d892b0ceb3e441b1f7aa0a000de4cfd981c2a066b4509e917c8e9a6 |