Skip to content
Snippets Groups Projects
Commit 98c3abd9 authored by James Bowden's avatar James Bowden
Browse files

add encPsgAnnotationData type to schema

parent 6c5bd83a
Branches rocks
No related tags found
No related merge requests found
......@@ -13,6 +13,10 @@ import org.springframework.context.annotation.ComponentScan;
@XnatDataModel(value = "snet02:encPsgScanData",
singular = "Encrypted PSG Recording",
plural = "Encrypted PSG Recordings",
code = "PSG")})
code = "PSG"),
@XnatDataModel(value = "snet02:encPsgAnnotationData",
singular = "Encrypted PSG Annotation",
plural = "Encrypted PSG Annotations",
code = "ANN")})
public class SnetAsclepiosPlugin {
}
\ No newline at end of file
}
#set ($asclepiosPath = $om.getProject() + '/'
+ $om.getSubjectId() + '/'
+ $om.getId() + '/'
+ $scan.getProperty("id") + '.csv'
)
#set ($keyid = $scan.getProperty("keyid"))
<script>
function viewCSVFile() {
window.open('/asclepios-search?filename=$asclepiosPath&keyid=$keyid#download');
}
</script>
<button onClick="viewCSVFile()">Decrypt and Download CSV file</button>
#set ($asclepiosPath = $om.getProject() + '/'
+ $om.getSubjectId() + '/'
+ $om.getId() + '/'
+ $om.getId() + '/'
+ $scan.getProperty("id") + '.edf'
)
......@@ -8,7 +8,7 @@
<script>
function viewEDFFile() {
window.open('/sn-editor?asclepiosPath=$asclepiosPath&keyid=$keyid');
window.open('/sn-editor?asclepiosPath=$asclepiosPath&keyid=$keyid&project=$om.getProject()&subject=$om.getSubjectId()&experiment=$om.getId()');
}
</script>
......@@ -16,4 +16,4 @@
<div width="100%" height="100%">
<iframe width="100%" height="400" src="/asclepios-search?filename=$asclepiosPath&keyid=$keyid#get"></iframe>
</div>
\ No newline at end of file
</div>
......@@ -3,6 +3,7 @@
<xs:import namespace="http://nrg.wustl.edu/xnat" schemaLocation="../xnat/xnat.xsd"/>
<xs:element name="SleepResearchSession" type="snet02:sleepResearchSessionData"/>
<xs:element name="EncryptedPSGScan" type="snet02:encPsgScanData"/>
<xs:element name="EncryptedPSGAnnotation" type="snet02:encPsgAnnotationData"/>
<xs:complexType name="sleepResearchSessionData">
<xs:annotation>
......@@ -23,4 +24,15 @@
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>
\ No newline at end of file
<xs:complexType name="encPsgAnnotationData">
<xs:annotation>
<xs:documentation>Encrypted Polysomnograph Annotation</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="xnat:imageScanData">
<xs:attribute name="keyid" type="xs:string" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment