<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://nrg.wustl.edu/ext"
xmlns:ext="http://nrg.wustl.edu/ext"
xmlns:xdat="http://nrg.wustl.edu/xdat"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xnat="http://nrg.wustl.edu/xnat" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:element name="mrScanExt" type="ext:mrScanExt"/>
<xs:complexType name="mrScanExt">
<xs:complexContent>
<xs:extension base="xnat:mrScanData">
<xs:sequence>
<xs:element name="Teststring" minOccurs="0" maxOccurs="1" type="xs:string"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema><?xml version="1.0" encoding="UTF-8"?>
<ext:mrScanExt ID="4" type="t1_mpr_1mm_p2_pos50"
UID="1.3.12.2.1107.5.2.32.35177.3.2006121409284535196417894.0.0.0"
xmlns:arc="http://nrg.wustl.edu/arc"
xmlns:ext="http://nrg.wustl.edu/ext"
xmlns:val="http://nrg.wustl.edu/val"
xmlns:pipe="http://nrg.wustl.edu/pipe"
xmlns:wrk="http://nrg.wustl.edu/workflow"
xmlns:scr="http://nrg.wustl.edu/scr"
xmlns:xdat="http://nrg.wustl.edu/security"
xmlns:cat="http://nrg.wustl.edu/catalog"
xmlns:prov="http://www.nbirn.net/prov"
xmlns:xnat="http://nrg.wustl.edu/xnat"
xmlns:xnat_a="http://nrg.wustl.edu/xnat_assessments"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://nrg.wustl.edu/workflow
http://localhost:8080/xnat/schemas/pipeline/workflow.xsd
http://nrg.wustl.edu/catalog
http://localhost:8080/xnat/schemas/catalog/catalog.xsd
http://nrg.wustl.edu/pipe
http://localhost:8080/xnat/schemas/pipeline/repository.xsd
http://nrg.wustl.edu/scr
http://localhost:8080/xnat/schemas/screening/screeningAssessment.xsd
http://nrg.wustl.edu/arc
http://localhost:8080/xnat/schemas/project/project.xsd
http://nrg.wustl.edu/val
http://localhost:8080/xnat/schemas/validation/protocolValidation.xsd
http://nrg.wustl.edu/xnat
http://localhost:8080/xnat/schemas/xnat/xnat.xsd
http://nrg.wustl.edu/ext
http://localhost:8080/xnat/schemas/mrScanExt/mrScanExt.xsd
http://nrg.wustl.edu/xnat_assessments
http://localhost:8080/xnat/schemas/assessments/assessments.xsd
http://www.nbirn.net/prov
http://localhost:8080/xnat/schemas/birn/birnprov.xsd
http://nrg.wustl.edu/security
http://localhost:8080/xnat/schemas/security/security.xsd">
<!--hidden_fields[xnat_imageScanData_id="37"]-->
<xnat:image_session_ID>XNAT_E00001</xnat:image_session_ID>
<xnat:quality>usable</xnat:quality>
<xnat:series_description>t1_mpr_1mm_p2_pos50</xnat:series_description>
<xnat:scanner manufacturer="SIEMENS" model="TrioTim">MEDPC</xnat:scanner>
<xnat:frames>176</xnat:frames>
<ext:Teststring>HELLO</ext:Teststring>
<xnat:file label="DICOM"
URI="/opt/xnat/data/archive/prj001/arc001/prj001_subj001_exp001/SCANS/4/DICOM/scan_4_catalog.xml"
format="DICOM" content="RAW" xsi:type="xnat:resourceCatalog">
<!--hidden_fields[xnat_abstractResource_id="59",xnat_imageScanData_xnat_imagescandata_id="37"]-->
</xnat:file>
<xnat:file label="SNAPSHOTS"
URI="/opt/xnat/data/archive/prj001/arc001/prj001_subj001_exp001/SCANS/4/SNAPSHOTS/SNAPSHOTS_catalog.xml"
format="GIF" content="SNAPSHOTS" xsi:type="xnat:resourceCatalog">
<!--hidden_fields[xnat_abstractResource_id="62",xnat_imageScanData_xnat_imagescandata_id="37"]-->
</xnat:file>
<xnat:startTime>09:37:11</xnat:startTime>
<xnat:fieldStrength>3.0</xnat:fieldStrength>
<xnat:parameters>
<xnat:voxelRes x="1.0" y="1.0" z="1.0"/>
<xnat:orientation>Sag</xnat:orientation>
<xnat:fov x="256" y="256"/>
<xnat:tr>2400.0</xnat:tr>
<xnat:te>3.08</xnat:te>
<xnat:ti>1000.0</xnat:ti>
<xnat:flip>8</xnat:flip>
<xnat:sequence>*tfl3d1_ns</xnat:sequence>
<xnat:imageType>ORIGINAL\PRIMARY\M\ND\NORM</xnat:imageType>
<xnat:scanSequence>GR\IR</xnat:scanSequence>
<xnat:seqVariant>SP\MP\OSP</xnat:seqVariant>
<xnat:scanOptions>IR</xnat:scanOptions>
<xnat:acqType>3D</xnat:acqType>
<xnat:pixelBandwidth>220.0</xnat:pixelBandwidth>
</xnat:parameters>
</ext:mrScanExt>Philip,
A few things:
· Extending the scan data type is an option, but it should be avoided if possible, as it might require more work down the road.
· How is your studyUsability field different from the usability property that is already at the scan level? Could it be used instead? Depending on what you are storing, this may actually be the purpose of this field.
· Another option is that there is a way to add any field you want to the scan without modifying the schema. The parameters element allows an unbounded list of additional parameters (name/value pairs). You can add one by adding this kind of element, right before the </parameters> tag.
<xnat:addParam name="studyUsability">value</xnat:addParam>
What are your goals for this field? Do you just need something that will show up in the session report? Do you need something that is queryable? Via the UI/REST?
Tim
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To post to this group, send email to xnat_di...@googlegroups.com.
Visit this group at http://groups.google.com/group/xnat_discussion.
For more options, visit https://groups.google.com/groups/opt_out.
The addParam option I mentioned should work for you. I think those parameters automatically show up in the scan details section of the MR report (accessible by expanding a scan). Regarding getting them query able, that will be doable, but with a little more work (involves adding some customized SQL to an existing display.xml). Have you tried modifying a session xml like I suggested, to see if it works for you?
Tim
From: xnat_di...@googlegroups.com [mailto:xnat_di...@googlegroups.com] On Behalf Of plxna...@gmail.com
Sent: Wednesday, October 02, 2013 1:59 PM
To: xnat_di...@googlegroups.com
--
--
Unfortunately, I’m not much more experienced with schematron. Mohana, any ideas here?
Tim
From: xnat_di...@googlegroups.com [mailto:xnat_di...@googlegroups.com] On Behalf Of plxna...@gmail.com
Sent: Wednesday, October 09, 2013 9:25 AM
To: xnat_di...@googlegroups.com
Subject: [XNAT Discussion] Re: Custom datatype derived from MRScan
Hello Tim, it worked fine!
--
--
You may have to replace the namespace xnat: for your schema extension.