Skip to content

Instantly share code, notes, and snippets.

@p2
p2 / Vagrantfile
Created November 11, 2016 17:18
Let Vagrant set up an Ubuntu Xenial VM with Swift installed
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
# Create a shared folder for easy development
config.vm.synced_folder "../Ubuntu-Share", "/macOSshare"
config.vm.provision "shell", inline: <<-CMD
sudo apt-get update
sudo apt-get --assume-yes install clang libicu-dev libcurl3 libpython2.7
//
// CBLUITableSource.h
// CouchbaseLite
//
// Created by Jens Alfke on 8/2/11.
// Copyright 2011-2013 Couchbase, Inc. All rights reserved.
//
#import <UIKit/UIKit.h>

C3-PRO Übersicht - Questionnaires

QuestionnaireController

Dient als Ausgangspunkt für den App Programmierer.

Soll ein Fragebogen (questionnaire, survey) angezeigt werden, wird ein FHIR Questionnaire aus dem Internet oder aus lokalem File in ein FHIR Objekt geladen, via FHIR library. Dann wird ein QuestionnaireController mit Referenz auf dieses questionnaire instanziiert.

@p2
p2 / yesnodontknow.json
Last active August 29, 2015 14:24
🔥FHIR ValueSet: Yes/No/Don't know
{
"resourceType": "ValueSet",
"status": "draft",
"identifier": {
"system": "https://smarthealthit.org/ValueSet/questionnaire-yesnodontknow"
},
"name": "Yes/No/Don't Know",
"description": "Captures simple yes-no-don't know answers",
"compose": {
"import": [
@p2
p2 / Example-FHIR-codings-(basic).md
Created July 10, 2015 10:08
Example 🔥FHIR MedicationPrescription codings

Example FHIR codings (Basic Review)

Example MedicationStatement resources on how certain scenarios can be stated. Only the parts relevant to the dosage are shown, Patient and Medication references as well as dates should be present as well.


Medication is taken, as directed:

@p2
p2 / Example-FHIR-codings.md
Last active August 29, 2015 14:20
Example FHIR MedicationPrescription codings

Example FHIR codings

Example MedicationStatement resources on how certain scenarios can be stated. Only the parts relevant to the dosage are shown, Patient and Medication references as well as dates should be present as well.


Medication is taken daily, not further specified when:

@p2
p2 / 0-README.md
Last active August 27, 2017 19:32
🔥FHIR Condition with mutation Observation example

🔥FHIR DSTU-2 data representing sample patient 1's cancer diagnosis: IDC diagnosis with 3 tumor mutation tests, 2 of them positive.

FHIR Version

The current official FHIR version is DSTU-1. There is a new DSTU-2 ballot version for May 2015 that introduces some nice data model changes to be expected for DSTU-2. I propose using this ballot version for our pilot.

@p2
p2 / Implementation Details.md
Last active May 16, 2018 14:22
SMART on FHIR Tech Overview

Implementation Details

We'll be addressing certain implementation details here.

Pregnancy & Breastfeeding

To be able to detect whether a woman is pregnant, we would expect a [Condition][res-condition] resource with start date, end date and the Snomed-CT code for patient currently pregnant (77386006) or one if its many child codes. There is also a code for possible pregnancy (102874004) that we can consider using, if it makes sense from HCA's side.

{
"security": {
"cors": 1,
"description": "This server implements OAuth2 for login",
"http://fhir-registry.smartplatforms.org/Profile/oauth-uris#authorize": [
{
"valueUri": "https://fhir-dev.healthintersections.com.au:0/oauth2/auth"
}
],
"http://fhir-registry.smartplatforms.org/Profile/oauth-uris#oidc-discovery": [
@p2
p2 / UrTUpdater-crash-2014-08-07.crash
Created August 8, 2014 02:59
UrTUpdater-crash-2014-08-07
Process: UrTUpdater [3031]
Path: /Applications/Xgames/*/UrTUpdater.app/Contents/MacOS/UrTUpdater
Identifier: @BUNDLEIDENTIFIER@
Version: ???
Code Type: X86 (Native)
Parent Process: ??? [1]
Responsible: UrTUpdater [3031]
User ID: 501
Date/Time: 2014-08-07 22:57:38.198 -0400