-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added example using medicalrecords api
- Loading branch information
Stefano Monni
committed
Sep 11, 2015
1 parent
bd1eb5b
commit 9725b5a
Showing
48 changed files
with
2,258 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
4 changes: 4 additions & 0 deletions
4
examples/EhrLibRemoteArchetypeViewerExample/.settings/org.eclipse.jdt.core.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
29
examples/EhrLibRemoteArchetypeViewerExample/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
2 changes: 2 additions & 0 deletions
2
examples/EhrLibRemoteArchetypeViewerExample/assets/archetypes.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
65 changes: 65 additions & 0 deletions
65
...rchetypeViewerExample/assets/archetypes/blood_pressure/adl_structure__blood_pressure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
102 changes: 102 additions & 0 deletions
102
...oteArchetypeViewerExample/assets/archetypes/blood_pressure/datatypes__blood_pressure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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":{ | ||
|
||
} | ||
|
||
} | ||
|
||
} | ||
|
||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...RemoteArchetypeViewerExample/assets/archetypes/blood_pressure/layout__blood_pressure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} |
Oops, something went wrong.