Skip to content

Instantly share code, notes, and snippets.

View citizenrich's full-sized avatar

Richard Stanley citizenrich

View GitHub Profile
<?xml version='1.0' encoding='utf-8'?>
<?grc format='1' created='3.7.13'?>
<flow_graph>
<timestamp>Wed Dec 18 21:36:01 2019</timestamp>
<block>
<key>options</key>
<param>
<key>author</key>
<value></value>
</param>
@citizenrich
citizenrich / README.md
Created July 1, 2020 18:31
How to setup HAPI FHIR and Postgres in Docker

Start with a fresh folder and copy a hapi.properties into it. It will be mounted into the container.

Carefully make sure your hapi.properties looks like this:

# add postgres
datasource.driver=org.postgresql.Driver
datasource.url=jdbc:postgresql://db:5432/hapi
hibernate.dialect=org.hibernate.dialect.PostgreSQL95Dialect
datasource.username=admin
datasource.password=admin
import hid
vid = 0x20CE # minicircuits
pid = 0x0022 # minicircuits
with hid.Device(vid, pid) as h:
print(f'Device manufacturer: {h.manufacturer}')
print(f'Product: {h.product}')
print(dir(h))
@citizenrich
citizenrich / patientstuff.json
Created February 22, 2021 17:26
Troubleshooting observation in CQL
{
"fullUrl": "urn:uuid:b04ccc37-bc08-d37e-5b67-746a8d65aa14",
"resource": {
"resourceType": "Observation",
"id": "b04ccc37-bc08-d37e-5b67-746a8d65aa14",
"meta": {
"profile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab" ]
},
"status": "final",
"category": [ {
@citizenrich
citizenrich / dhis2play.json
Created April 14, 2021 19:21
DHIS2 output OUs in FHIR R4
This file has been truncated, but you can view the full file.
{
"entry": [
{
"request": {
"method": "PUT",
"url": "Location?identifier=JAC8CGkYuXb"
},
"resource": {
"id": "JAC8CGkYuXb",
"meta": {
@citizenrich
citizenrich / measure.fsh
Created July 1, 2021 19:52
measure.fsh
Alias: $measure-population = http://terminology.hl7.org/CodeSystem/measure-population
Instance: HIVSimpleAgeGroup
InstanceOf: Measure
Usage: #example
* url = "Measure/HIVSimpleAgeGroup"
* identifier.system = "http://ohie.org/Measure/"
* identifier.value = "HIVSimpleAgeGroup"
* version = "0.0.0"
* name = "HIVSimpleAgeGroup"
@citizenrich
citizenrich / docker-compose.yaml
Last active October 13, 2021 17:45
HAPI with Posgres
version: '3'
services:
fhir:
container_name: fhir
image: hapiproject/hapi:latest
ports:
- "8080:8080"
environment:
{
"resourceType": "Bundle",
"id": "auto-generated",
"meta":
{
"profile": ["http://datim.org/fhir/StructureDefinition/TX_PVLS_QuestionnaireResponse_Bundle"]
},
"type": "message",
"timestamp": "2019-11-15T12:46:14.912Z",
"entry": [
{
"resourceType": "Measure",
"id": "Easy",
"identifier": [
{
"system": "https://intrahealth.github.io/simple-hiv-ig/Measure/",
"value": "Easy"
},
{
"system": "https://datim.org/factsinfo/mechanism",
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.