Skip to content

Commit

Permalink
added example using medicalrecords api
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Monni committed Sep 11, 2015
1 parent bd1eb5b commit 9725b5a
Show file tree
Hide file tree
Showing 48 changed files with 2,258 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/EhrLibRemoteArchetypeViewerExample/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.source=1.6
29 changes: 29 additions & 0 deletions examples/EhrLibRemoteArchetypeViewerExample/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="it.crs4.ehrlib.example"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="21" />

<uses-permission android:name="android.permission.INTERNET"/>

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="it.crs4.most.ehrlib.example.RemoteArchetypeViewerActivityExample"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
openEHR-EHR-OBSERVATION.blood_pressure.v1=blood_pressure
openEHR-EHR-OBSERVATION.ecg.v1=ecg
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"archetype_class":"openEHR-EHR-OBSERVATION.blood_pressure.v1",
"archetype_details":{
"data":{
"at0001":[
{
"events":[
{
"at0006":{
"data":{
"at0003":[
{
"items":{
"at0004":"DATA_NODE::DV_QUANTITY",
"at0005":"DATA_NODE::DV_QUANTITY",
"at1006":"DATA_NODE::DV_QUANTITY",
"at1007":"DATA_NODE::DV_QUANTITY",
"at0033":"DATA_NODE::DV_TEXT"
}
}
]
},
"state":{
"at0007":[
{
"items":{
"at0008":"DATA_NODE::DV_CODED_TEXT",
"at1052":"DATA_NODE::DV_TEXT"
},
"at1030":"ARCHETYPE_NODE",
"at1043":"DATA_NODE::DV_CODED_TEXT",
"at1005":"DATA_NODE::DV_QUANTITY"
}
]
}
},
"at1042":"DATA_NODE::MATH_FUNCTION"
}
]
}
]
},
"protocol":{
"at0011":[
{
"items":{
"at0013":"DATA_NODE::DV_CODED_TEXT",
"at1033":[
{
"items":{
"at0014":"DATA_NODE::DV_CODED_TEXT",
"at1034":"DATA_NODE::DV_TEXT"
}
}
],
"at1035":"DATA_NODE::DV_CODED_TEXT",
"at1038":"DATA_NODE::DV_TEXT",
"at1010":"DATA_NODE::DV_CODED_TEXT",
"at1025":"ARCHETYPE_NODE"
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"title":"at0000",
"datatypes":{
"data":{
"at0004":{
"path":"data[at0001]/events[at0006]/data[at0003]/items[at0004]",
"type":"DV_QUANTITY",
"attributes":{
"unit_of_measure":"mm[Hg]",
"precision":2,
"range":{
"min":10,
"max":180
}

}

},
"at0005":{
"path":"data[at0001]/events[at0006]/data[at0003]/items[at0005]",
"type":"DV_QUANTITY",
"attributes":{
"unit_of_measure":"mm[Hg]",
"precision":2,
"range":{
"min":10,
"max":180
}

}

},
"at1006":{
"path":"data[at0001]/events[at0006]/data[at0003]/items[at1006]",
"type":"DV_QUANTITY",
"attributes":{
"unit_of_measure":"mm[Hg]",
"precision":2,
"range":{
"min":10,
"max":180
}

}

},
"at1007":{
"path":"data[at0001]/events[at0006]/data[at0003]/items[at1007]",
"type":"DV_QUANTITY",
"attributes":{
"unit_of_measure":"mm[Hg]",
"precision":2,
"range":{
"min":10,
"max":180
}

}

},
"at0033":{
"path":"data[at0001]/events[at0006]/data[at0003]/items[at0033]",
"type":"DV_TEXT",
"attributes":{

}

}

}
,
"state":{
"at0008":{
"path":"data[at0001]/events[at0006]/state[at0007]/items[at0008]",
"type":"DV_CODED_TEXT",
"attributes":{
"terminology":"local",
"options":[
"at1000",
"at1001",
"at1002",
"at1003",
"at1014"
],
"default":"at1001"
}

}
,
"at1052":{
"path":"data[at0001]/events[at0006]/state[at0007]/items[at1052]",
"type":"DV_TEXT",
"attributes":{

}

}

}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"sections":[
"data"
],
"items":{
"data[at0001]/events[at0006]/data[at0003]/items[at0004]":{
"priority":1
},
"data[at0001]/events[at0006]/data[at0003]/items[at0005]":{
"priority":2
},
"data[at0001]/events[at0006]/data[at0003]/items[at1006]":{
"priority":3
},
"data[at0001]/events[at0006]/data[at0003]/items[at1007]":{
"priority":4
},
"data[at0001]/events[at0006]/data[at0003]/items[at0033]":{
"priority":5
},
"data[at0001]/events[at0006]/state[at0007]/items[at0008]":{
"priority":1,
"widget2":"it.crs4.ehrlib.widgets.DvCodedTextAsListWidget"
},
"data[at0001]/events[at0006]/state[at0007]/items[at1052]":{
"priority":2,
"widget":null
}
}
}

0 comments on commit 9725b5a

Please sign in to comment.