Patient Tracking Implementation - cristal-ise/tutorial-PatientTracking GitHub Wiki
Sequence of actions using the Cristalise GUI
![]()
Create Outcome Definition (Schema) and 4 Elementary Activities Definitions
For the sake of simplicity the same Schema is assigned to all Activities and all Activities will be executed manually by a User.
- Open /dev/SchemaFactory Item
Excecute CreateNewSchema ObjectName:Synopsis SubFolder:tutorial- Open /desc/OutcomeDesc/tutorial/Synopsis Item
Execute EditDefinitionand copy the content of Synopsis.xsd attached to the textExecute AssignNewSchemaVersionFromLast- this creates the version 0 of the Schema- Check (last, 0) properites of Event 1 for Outcome Type Schema in Data Viewer
![]()
-
Open /dev/ElementaryActivityDefFactory Item
Excecute CreateNewElementaryActivityDef ObjectName:ECG SubFolder:tutorialExcecute CreateNewElementaryActivityDef ObjectName:'Blood Biochemical Analysis' SubFolder:tutorialExcecute CreateNewElementaryActivityDef ObjectName:'Urinalysis' SubFolder:tutorialExcecute CreateNewElementaryActivityDef ObjectName:'Comprehensive Eye Examination' SubFolder:tutorial- Check that there are 4 Activity Decription Items created in /desc/ActivityDesc/tutorial
-
Open Elementary Activites listed bellow in /desc/ActivityDesc/tutorial and perform these steps for each of them
- activity - role pairs
- Blood Biochemical Analysis - Hematologist
- Urinalysis - Internist
- ECG - Cardiologist
- Comprehensive Eye Examination - Opthometrist
Execute EditDefinition AgentRole:ROLENAME SchemaType:Synopsis SchemaVersion:0Execute AssignNewSchemaVersionFromLast
- activity - role pairs
Create Compostie Activity Definition
-
Open /dev/CompositeActivityDefFactory Item
Excecute CreateNewCompositeActivityDef ObjectName:Protocol SubFolder:tutorial- Check that there is a 5th Activity Decription Items (type=Composite) created in /desc/ActivityDesc/tutorial
-
Open /desc/ActivityDesc/tutorial/Protocol Item
Start EditDefinition- Create the workflow schema shown bellow. Creating a Composite Activity layout is not trivial, but it can be imported from github file src/main/resources/boot/CA/Protocol.xml
Finish EditDefinitionExecute AssignNewSchemaVersionFromLast
![]()
Create All Roles and Agents
- Open /server/localhost Item
-
Excecute CreateNewRole ObjectName:Hematologist SubFolder:tutorial -
Excecute CreateNewAgent name:HemaLabor password:test Role:Hematologist -
Excecute CreateNewRole ObjectName:Internist SubFolder:tutorial -
Excecute CreateNewAgent name:UrinLabor password:test Role:Internist -
Excecute CreateNewRole ObjectName:Cardiologist SubFolder:tutorial -
Excecute CreateNewAgent name:Sam password:test Role:Cardiologist -
Excecute CreateNewRole ObjectName:Optometrist SubFolder:tutorial -
Excecute CreateNewAgent name:Steve password:test Role:Optometrist
-
Create Description Item called Patient
- Open /dev/DescriptionFactory Item
Excecute CreateNewDescription ObjectName:Patient SubFolder:tutorial- Open /tutorial/Patient Item if it was not opened automatically
Execute SetPropertyDescriptionwith 3 Properties:- Name:Name IsMutable:true
- Name:Type DefaultValue:Patient
- Name:NationalInsuranceNumber IsMutable:true
Execute SetInstanceWorkflow WorkflowDefinitionName:Protocol WorkflowDefinitionVersion:0
Instanciate Joe from Patient Description Item
- Open /tutorial/Patient Item
Excecute CreateNewInstance ObjectName:Joe SubFolder:tutorial
Login as HermaLabor and execute the Urinalysis Activity of Joe
- Open /tutorial/Joe Item
Excecute Urinalysis Synopsis:Perfect
Next: Modularization