--- a/syntheticPatients/Indivo2Trig.xsl Tue Oct 05 05:31:13 2010 -0400
+++ b/syntheticPatients/Indivo2Trig.xsl Tue Oct 05 05:32:56 2010 -0400
@@ -14,6 +14,7 @@
@prefix : <tag:eric@w3.org:2009/tmo/translator#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix trans: <tag:eric@w3.org:2009/tmo/translator#> .
+ @prefix indivo: <http://indivo.org/vocab/xml/documents#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
{
<xsl:apply-templates select="in:CurrentStatus"/>
@@ -86,7 +87,7 @@
<xsl:template match="in:Prescription">
[ a trans:Prescription ;
trans:prescribedTo _:patient ;
- trans:prescribedOn <xsl:apply-templates mode="date" select="in:medication/in:dateStarted"/> ; <!-- trans:dateStarted -->
+ indivo:prescribedOn <xsl:apply-templates mode="date" select="in:medication/in:dateStarted"/> ; <!-- trans:dateStarted -->
<xsl:if test="in:medication/in:dateStopped">
trans:datePrescriptionEnded <xsl:apply-templates mode="date" select="in:medication/in:dateStopped"/> ;
</xsl:if>
--- a/syntheticPatients/tests/q1.rq Tue Oct 05 05:31:13 2010 -0400
+++ b/syntheticPatients/tests/q1.rq Tue Oct 05 05:32:56 2010 -0400
@@ -11,7 +11,7 @@
trans:workingDiagnosis ?diagnosis ;
trans:dateOfEncounter ?encounter_date .
?drug trans:prescribedTo ?patient ; # dateStarted
- trans:prescribedOn ?prescription_start;
+ indivo:prescribedOn ?prescription_start;
trans:datePrescriptionEnded ?prescription_end;
trans:genericName ?drug_name
FILTER regex(?drug_name,"DONEPEZIL","i").