Skip to content

Instantly share code, notes, and snippets.

View daya's full-sized avatar

Daya Sharma daya

View GitHub Profile
^ad([sxv]?[0-9]*|system)[_.-]([^.[:space:]]+\.){1,}|[_.-]ad([sxv]?[0-9]*|system)[_.-]
^(.+[_.-])?adse?rv(er?|ice)?s?[0-9]*[_.-]
^(.+[_.-])?telemetry[_.-]
^adim(age|g)s?[0-9]*[_.-]
^adtrack(er|ing)?[0-9]*[_.-]
^advert(s|is(ing|ements?))?[0-9]*[_.-]
^aff(iliat(es?|ion))?[_.-]
^analytics?[_.-]
^banners?[_.-]
^beacons?[0-9]*[_.-]
@daya
daya / machine.js
Last active January 14, 2021 16:27
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
{
"resourceType": "Observation",
"id": "f005",
"text": {
"status": "generated",
"div": "\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003e\u003cp\u003e\u003cb\u003eGenerated Narrative with Details\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eid\u003c/b\u003e: f005\u003c/p\u003e\u003cp\u003e\u003cb\u003eidentifier\u003c/b\u003e: 6327 (OFFICIAL)\u003c/p\u003e\u003cp\u003e\u003cb\u003estatus\u003c/b\u003e: final\u003c/p\u003e\u003cp\u003e\u003cb\u003ecode\u003c/b\u003e: Hemoglobin [Mass/volume] in Blood \u003cspan\u003e(Details : {LOINC code \u0027718-7\u0027 \u003d \u0027Hemoglobin [Mass/volume] in Blood\u0027, given as \u0027Hemoglobin [Mass/volume] in Blood\u0027})\u003c/span\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003esubject\u003c/b\u003e: \u003ca\u003eP. van de Heuvel\u003c/a\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eeffective\u003c/b\u003e: 05/04/2013 10:30:10 AM --\u0026gt; 05/04/2013 10:30:10 AM\u003c/p\u003e\u003cp\u003e\u003cb\u003eissued\u003c/b\u003e: 05/04/2013 3:
@daya
daya / encounter-subject-reference.json
Created December 4, 2019 05:15
how to use subject:reference which HAPI will automatically convert to relative reference URI
{
"resourceType": "Encounter",
"id": "emerg",
"text": {
"status": "generated",
"div": "\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003eEmergency headache @example\u003c/div\u003e"
},
"status": "in-progress",
"statusHistory": [
{
@daya
daya / encounter-subject-identifier.json
Last active December 3, 2019 17:31
How to refer to subject Patient using Identifier in Encounter
{
"resourceType": "Encounter",
"id": "emerg",
"text": {
"status": "generated",
"div": "\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003eEmergency visit that escalated into inpatient patient @example\u003c/div\u003e"
},
"status": "in-progress",
"statusHistory": [
{
@daya
daya / current_result.md
Last active December 1, 2019 22:51
current result set based on rank and partition
display uom val created_on
BMI kg/m2 17.3 2019-11-20 11:40:31
Height in 67.09 2019-11-11 16:50:23
Diastolic mmHg 81 2019-11-20 16:42:38
Systolic mmHg 139 2019-11-21 13:41:13
@daya
daya / result.md
Last active December 1, 2019 22:41

desired Data in Result Set

Patient_ID Blood Pressure BMI Height Oxygen Saturation Pulse
1 137 / 85 mmHg 16.4 kg/m2 66.89 in 93 %
@daya
daya / table.md
Last active December 1, 2019 22:39
github tabl

Data in Table

Patient_ID Code Value UOM TimeStamp
1 8462-4 70 mmHg 2019-11-18 17:55:45
1 8480-6 107 mmHg 2019-11-18 17:56:41
1 39156-5 16.3 kg/m2 2019-11-18 11:51:49
1 8302-2 66.89 in 2019-11-18 09:11:19
1 59408-5 95 % 2019-11-18 10:15:19
1 8462-4 85 mmHg 2019-11-19 18:55:45
@daya
daya / adt1-patient.json
Created November 26, 2019 05:25
adt1-patient.json
{
"resourceType" : "Patient",
"identifier" : [
{
"use" : "usual",
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
"code" : "MR"
@daya
daya / basic ADT1 message
Created November 26, 2019 05:24
ADT1.txt
MSH|^~\&|ADT1|memorial-med-center|SHMADT|SHM|200812091126|SECURITY|ADT^A01^ADT_A01|MSG00001|P|2.5|
EVN|A01|201706111126||
PID|1|4578|83495120^5^M11||White^Walter||19610111|M||2106-3|1200 N ELM STREET^^GREENSBORO^NC^27401-1020|GL|(919)379-1212|(919)271-3434~(919)277-3114|English|S||PATID12345001^2^M10|123456789|9-87654^NCNK1|1|OHALLAHAN^BRITTANY^M|SIS^SISTER||||N^NEXT-OF-KIN
PV1|1|O|2000^2169^01||||2342^Lee^Bruce|4578^Yobi^Kate|9992^Little^Stuart|OP|||||||||2|||||||||||||||||||||||||20170611113545|
AL1|3|DRUG|00004700^INFLUENZA VIRUS VACCINE||
AL1|1||^Penicillin||Respiratory distress
DG1|001|I9|1550|MAL NEO LIVER, PRIMARY|19880501103005|F||
PR1|2234|M11|111^CODE151|COMMON PROCEDURES|198809081123
ROL|45^RECORDER^ROLE MASTER LIST|AD|CP|KATE^SMITH^ELLEN|199505011201
GT1|1122|1519|BILL^GATES^A