bash get-codings.sh fhir/*.json >codings.ndjson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import click | |
import os | |
from pathling._version import ( | |
__java_version__, | |
__scala_version__, | |
__delta_version__, | |
__hadoop_version__, | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"resourceType": "Condition", | |
"id": "1", | |
"clinicalStatus": { | |
"coding": [ | |
{ | |
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical", | |
"code": "active" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
def get_oauth2_token(client_id, client_secret, token_url): | |
""" | |
Obtain an OAuth2 token using client credentials grant. | |
:param client_id: OAuth2 Client ID | |
:param client_secret: OAuth2 Client Secret | |
:param token_url: OAuth2 Token Endpoint URL |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import multiprocessing as mp | |
import sys | |
from math import floor | |
from time import time | |
import requests | |
def update_resource(file): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import multiprocessing as mp | |
import sys | |
from time import time | |
import requests | |
def upload_bundle(file): | |
with open(file) as bundle: | |
data = bundle.read() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import sys | |
input_bundle = json.load(sys.stdin) | |
output_bundle = { | |
"resourceType": "Bundle", | |
"type": "transaction", | |
"entry": [ | |
{ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jq -r ".expansion.contains[] | { system: .system, code: .code, display: .display } | map(values) | @csv" ~/Desktop/source.ValueSet.json >~/Desktop/target.csv |
NewerOlder