Skip to content

Instantly share code, notes, and snippets.

View citizenrich's full-sized avatar

Richard Stanley citizenrich

View GitHub Profile
map "https://path-global-health.github.io/MERindicators/StructureMap/HIVObservation-HIVCondition" = "HIVObservation-HIVCondition"
uses "http://hl7.org/fhir/R4/StructureDefinition/Observation" alias Observation as source
uses "http://hl7.org/fhir/R4/StructureDefinition/Condition" alias Condition as target
group Condition(source src : Observation, target tgt : Condition) extends DomainResource <<type+>> {
src.identifier -> tgt.identifier;
src.active -> tgt.active;
src.subject -> tgt.subject;
#!/usr/bin/env python3
"""update redmine wiki page with exoscale status
How to use this:
- `pip install exoscale python-redmine`
- set env vars for exoscale, use `exo config show --output-format json | jq -r` to find the existing exo file config
- put env vars for redmine user/pass in your shell
- determine the redmine site, project, and assign the wiki page to be updated
- test it out
- add it to cron or systemd
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"resourceType": "Measure",
"id": "Easy",
"identifier": [
{
"system": "https://intrahealth.github.io/simple-hiv-ig/Measure/",
"value": "Easy"
},
{
"system": "https://datim.org/factsinfo/mechanism",
{
"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": [
@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:
@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 / 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 / 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": [ {
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))