Skip to content

Instantly share code, notes, and snippets.

@MartijnR
Created October 19, 2018 22:43
Show Gist options
  • Save MartijnR/8e003fad782a358e1e6ce8820f7c8e79 to your computer and use it in GitHub Desktop.
Save MartijnR/8e003fad782a358e1e6ce8820f7c8e79 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<h:html xmlns="http://www.w3.org/2002/xforms"
xmlns:OpenClinica="http://openclinica.com/odm"
xmlns:enk="http://enketo.org/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:h="http://www.w3.org/1999/xhtml"
xmlns:jr="http://openrosa.org/javarosa"
xmlns:oc="http://openclinica.org/xforms"
xmlns:orx="http://openrosa.org/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>Follow-up Visit</h:title>
<model>
<instance>
<followup_v2-for_martijn id="b19ecf85-b8c1-47f5-a37b-09bc3200a50c-F_FOLLOWUPFORM" version="2">
<gender_ext/>
<gender_not_eligible/>
<gender_not_entered/>
<page1>
<visit_date/>
<followup_eligible/>
<pregnancy/>
<visit_date_comment oc:queryParent="visit_date"/>
<followup_eligible_comment oc:queryParent="followup_eligible"/>
<pregnancy_comment oc:queryParent="pregnancy"/>
</page1>
<page2>
<bp_yn/>
<bp_yn_comment oc:queryParent="bp_yn"/>
</page2>
<meta>
<instanceID/>
<instanceID_comment oc:queryParent="instanceID"/>
</meta>
</followup_v2-for_martijn>
</instance>
<instance id="clinicaldata">
<root/>
</instance>
<bind calculate="instance('clinicaldata')//StudyEventData[@StudyEventOID='SE_BASELINE']/FormData[@FormOID='F_DEMOGRAPHICS']/ItemGroupData[@ItemGroupOID='IG_DEMOG_GROUP1']/ItemData[@ItemOID='I_DEMOG_GENDER']/@Value" nodeset="/followup_v2-for_martijn/gender_ext" oc:external="clinicaldata" type="string"/>
<bind nodeset="/followup_v2-for_martijn/gender_not_eligible" readonly="true()" relevant=" /followup_v2-for_martijn/gender_ext = 1" type="string"/>
<bind nodeset="/followup_v2-for_martijn/gender_not_entered" readonly="true()" relevant=" /followup_v2-for_martijn/gender_ext != 1 and /followup_v2-for_martijn/gender_ext != 2" type="string"/>
<bind nodeset="/followup_v2-for_martijn/page1" relevant=" /followup_v2-for_martijn/gender_ext = 2"/>
<bind nodeset="/followup_v2-for_martijn/page1/visit_date" oc:itemgroup="Group1" required="true() and string-length(/followup_v2-for_martijn/page1/visit_date_comment)!='new' and string-length(/followup_v2-for_martijn/page1/visit_date_comment)!='updated' and string-length(/followup_v2-for_martijn/page1/visit_date_comment)!='closed'" type="date"/>
<bind nodeset="/followup_v2-for_martijn/page1/followup_eligible" oc:itemgroup="Group1" required="true() and string-length(/followup_v2-for_martijn/page1/followup_eligible_comment)!='new' and string-length(/followup_v2-for_martijn/page1/followup_eligible_comment)!='updated' and string-length(/followup_v2-for_martijn/page1/followup_eligible_comment)!='closed'" type="select1"/>
<bind nodeset="/followup_v2-for_martijn/page1/pregnancy" oc:itemgroup="Group1" type="select1"/>
<bind nodeset="/followup_v2-for_martijn/page2" relevant=" /followup_v2-for_martijn/gender_ext = 2"/>
<bind nodeset="/followup_v2-for_martijn/page2/bp_yn" oc:itemgroup="Group1" required="true() and string-length(/followup_v2-for_martijn/page2/bp_yn_comment)!='new' and string-length(/followup_v2-for_martijn/page2/bp_yn_comment)!='updated' and string-length(/followup_v2-for_martijn/page2/bp_yn_comment)!='closed'" type="select1"/>
<bind calculate="concat('uuid:', uuid())" nodeset="/followup_v2-for_martijn/meta/instanceID" readonly="true()" type="string"/>
<bind enk:for="/followup_v2-for_martijn/page1" nodeset="/followup_v2-for_martijn/page1_comment" type="string"/>
<bind enk:for="/followup_v2-for_martijn/page1/visit_date" nodeset="/followup_v2-for_martijn/page1/visit_date_comment" type="string"/>
<bind enk:for="/followup_v2-for_martijn/page1/followup_eligible" nodeset="/followup_v2-for_martijn/page1/followup_eligible_comment" type="string"/>
<bind enk:for="/followup_v2-for_martijn/page1/pregnancy" nodeset="/followup_v2-for_martijn/page1/pregnancy_comment" type="string"/>
<bind enk:for="/followup_v2-for_martijn/page2" nodeset="/followup_v2-for_martijn/page2_comment" type="string"/>
<bind enk:for="/followup_v2-for_martijn/page2/bp_yn" nodeset="/followup_v2-for_martijn/page2/bp_yn_comment" type="string"/>
<instance id="_users">
<root/>
</instance>
</model>
</h:head>
<h:body class="pages theme-grid no-text-transform">
<input ref="/followup_v2-for_martijn/gender_not_eligible">
<label>This patient is not eligible. Please update the HLA Blood Test form if needed.</label>
</input>
<input ref="/followup_v2-for_martijn/gender_not_entered">
<label>HLA Blood Test form must be completed before this form can be accessed.</label>
</input>
<group appearance="w4 field-list no-collapse" ref="/followup_v2-for_martijn/page1">
<input appearance="w2" ref="/followup_v2-for_martijn/page1/visit_date">
<label>Visit Date</label>
</input>
<select1 appearance="w2" ref="/followup_v2-for_martijn/page1/followup_eligible">
<label>Is the patient eligible to enroll?</label>
<item>
<label>Yes</label>
<value>1</value>
</item>
<item>
<label>No</label>
<value>2</value>
</item>
</select1>
<select1 appearance="w4" ref="/followup_v2-for_martijn/page1/pregnancy">
<label>Is the participant currently pregnant?</label>
<item>
<label>Yes</label>
<value>1</value>
</item>
<item>
<label>No</label>
<value>2</value>
</item>
</select1>
<input appearance="dn w1" ref="/followup_v2-for_martijn/page1/visit_date_comment">
<label>Comment:</label>
</input>
<input appearance="dn w1" ref="/followup_v2-for_martijn/page1/followup_eligible_comment">
<label>Comment:</label>
</input>
<input appearance="dn w1" ref="/followup_v2-for_martijn/page1/pregnancy_comment">
<label>Comment:</label>
</input>
</group>
<group appearance="w5 field-list no-collapse" ref="/followup_v2-for_martijn/page2">
<select1 appearance="w5" ref="/followup_v2-for_martijn/page2/bp_yn">
<label>Was blood pressure measured?</label>
<item>
<label>Yes</label>
<value>1</value>
</item>
<item>
<label>No</label>
<value>2</value>
</item>
</select1>
<input appearance="dn w1" ref="/followup_v2-for_martijn/page2/bp_yn_comment">
<label>Comment:</label>
</input>
</group>
</h:body>
</h:html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment