Source

xdat_release_mq / nu_schema.patch

Full commit
From: John Paulett <jpaulett@wustl.edu>
Testing northwestern schema extensions

diff --git a/plugin-resources/project-skeletons/xnat/InstanceSettings.xml b/plugin-resources/project-skeletons/xnat/InstanceSettings.xml
--- a/plugin-resources/project-skeletons/xnat/InstanceSettings.xml
+++ b/plugin-resources/project-skeletons/xnat/InstanceSettings.xml
@@ -13,6 +13,9 @@
 		<Data_Model File_Name="project.xsd" File_Location="%XDAT_PROJECT%/schemas/project" DB="%DB_NAME%"/>
 		<Data_Model File_Name="assessments.xsd" File_Location="%XDAT_PROJECT%/schemas/assessments" DB="%DB_NAME%"/>
 		<Data_Model File_Name="catalog.xsd" File_Location="%XDAT_PROJECT%/schemas/catalog" DB="%DB_NAME%"/>
+		<Data_Model File_Name="subjreg.xsd" File_Location="%XDAT_PROJECT%/schemas/subjreg" DB="%DB_NAME%"/>
+		<Data_Model File_Name="sapssans.xsd" File_Location="%XDAT_PROJECT%/schemas/sapssans" DB="%DB_NAME%"/>
+		<Data_Model File_Name="nunda.xsd" File_Location="%XDAT_PROJECT%/schemas/nunda" DB="%DB_NAME%"/>
 		<!--<Data_Model File_Name="ext.xsd" File_Location="%XDAT_PROJECT%/schemas/ext" DB="%DB_NAME%"/>-->
 	</Models>
 </Instance_Settings>
diff --git a/plugin-resources/project-skeletons/xnat/src/schemas/nunda/nunda.xsd b/plugin-resources/project-skeletons/xnat/src/schemas/nunda/nunda.xsd
new file mode 100644
--- /dev/null
+++ b/plugin-resources/project-skeletons/xnat/src/schemas/nunda/nunda.xsd
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:nunda="http://nrg.wustl.edu/nunda" xmlns:xdat="http://nrg.wustl.edu/xdat" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xnat="http://nrg.wustl.edu/xnat" xmlns:sapssans="http://nrg.wustl.edu/sapssans" xmlns:subjreg="http://nrg.wustl.edu/subjreg" targetNamespace="http://nrg.wustl.edu/nunda" elementFormDefault="qualified" attributeFormDefault="unqualified">
+	<xs:import namespace="http://nrg.wustl.edu/xnat" schemaLocation="../xnat/xnat.xsd"/>
+	<xs:import namespace="http://nrg.wustl.edu/sapssans" schemaLocation="../sapssans/sapssans.xsd"/>
+	<xs:import namespace="http://nrg.wustl.edu/subjreg" schemaLocation="../subjreg/subjreg.xsd"/>
+	<xs:element name="NundaDemographicData" type="nunda:nundaDemographicData"/>
+	<xs:complexType name="nundaDemographicData">
+		<xs:complexContent>
+			<xs:extension base="xnat:demographicData">
+				<xs:sequence minOccurs="0">
+					<xs:element name="maritalStatus" type="xs:integer" minOccurs="0"/>
+					<xs:element name="housingType" type="xs:integer" minOccurs="0"/>
+					<xs:element name="siblingsNumber" type="xs:integer" minOccurs="0"/>
+					<xs:element name="siblingName1" type="xs:string" minOccurs="0"/>
+					<xs:element name="siblingName2" type="xs:string" minOccurs="0"/>
+					<xs:element name="siblingName3" type="xs:string" minOccurs="0"/>
+					<xs:element name="siblingName4" type="xs:string" minOccurs="0"/>
+					<xs:element name="siblingName5" type="xs:string" minOccurs="0"/>
+					<xs:element name="siblingName6" type="xs:string" minOccurs="0"/>
+					<xs:element name="siblingName7" type="xs:string" minOccurs="0"/>
+					<xs:element name="siblingName8" type="xs:string" minOccurs="0"/>
+					<xs:element name="numberOfChildren" type="xs:integer" minOccurs="0"/>
+					<xs:element name="employmentStatus" type="xs:integer" minOccurs="0"/>
+					<xs:element name="currentOccupation" type="xs:string" minOccurs="0"/>
+					<xs:element name="principalOccupation" type="xs:string" minOccurs="0"/>
+					<xs:element name="educationLevel" type="xs:integer" minOccurs="0"/>
+					<xs:element name="yearsOfSchooling" type="xs:integer" minOccurs="0"/>
+					<xs:element name="attendSpecialClasses" type="xs:integer" minOccurs="0"/>
+					<xs:element name="specialClass" type="xs:string" minOccurs="0"/>
+					<xs:element name="educationLevelFather" type="xs:integer" minOccurs="0"/>
+					<xs:element name="schoolingLevelFather" type="xs:string" minOccurs="0"/>
+					<xs:element name="educationLevelMother" type="xs:integer" minOccurs="0"/>
+					<xs:element name="schoolingLevelMother" type="xs:string" minOccurs="0"/>
+					<xs:element name="customses" type="xs:string" minOccurs="0"/>
+					<xs:element name="handedness" minOccurs="0">
+	       				<xs:complexType>
+				            <xs:sequence>
+				                <xs:element name="preferredHandWriting" type="xs:integer" minOccurs="0"/>
+				                <xs:element name="preferredHandThrowing" type="xs:integer" minOccurs="0"/>
+				                <xs:element name="preferredHandScissors" type="xs:integer" minOccurs="0"/>
+				                <xs:element name="preferredHandToothbrush" type="xs:integer" minOccurs="0"/>
+				                <xs:element name="preferredHandKnife" type="xs:integer" minOccurs="0"/>
+				                <xs:element name="preferredHandSpoon" type="xs:integer" minOccurs="0"/>
+				                <xs:element name="preferredHandBroom" type="xs:integer" minOccurs="0"/>
+				                <xs:element name="preferredHandMatch" type="xs:integer" minOccurs="0"/>
+				                <xs:element name="preferredHandBox" type="xs:integer" minOccurs="0"/>
+				                <xs:element name="preferredHandFootkick" type="xs:integer" minOccurs="0"/>
+				                <xs:element name="preferredHandEye" type="xs:integer" minOccurs="0"/>
+				            </xs:sequence>
+                        </xs:complexType>
+					</xs:element>
+				</xs:sequence>
+			</xs:extension>
+		</xs:complexContent>
+	</xs:complexType>
+
+</xs:schema>
diff --git a/plugin-resources/project-skeletons/xnat/src/schemas/sapssans/sapssans.xsd b/plugin-resources/project-skeletons/xnat/src/schemas/sapssans/sapssans.xsd
new file mode 100644
--- /dev/null
+++ b/plugin-resources/project-skeletons/xnat/src/schemas/sapssans/sapssans.xsd
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:sapssans="http://nrg.wustl.edu/sapssans" xmlns:xdat="http://nrg.wustl.edu/xdat" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xnat="http://nrg.wustl.edu/xnat" targetNamespace="http://nrg.wustl.edu/sapssans" elementFormDefault="qualified" attributeFormDefault="unqualified">
+	<xs:import namespace="http://nrg.wustl.edu/xnat" schemaLocation="../xnat/xnat.xsd"/>
+	<xs:element name="symptomsSAPSSANS" type="sapssans:symptomsSAPSSANS"/>
+	<xs:complexType name="symptomsSAPSSANS">
+		<xs:complexContent>
+			<xs:extension base="xnat:subjectAssessorData">
+				<xs:sequence minOccurs="0">
+					<xs:element name="saps1AuditoryHallucinations" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps2VoicesCommenting" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps3VoicesConversing" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps4SomaticOrTactileHallucinations" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps5OlfactoryHallucinations" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps6VisualHallucinations" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps7GlobalRatingOfHallucinations" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps8PersecutoryDelusions" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps9DelusionsOfJealousy" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps10DelusionsOfQuiltOrSin" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps11GrandioseDelusions" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps12ReligiousDelusions" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps13SomaticDelusions" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps14DelusionsOfReference" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps15DelusionsOfBeingControlled" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps16DelusionsOfMindReading" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps17ThoughtBroadcasting" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps18ThoughtInsertion" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps19ThoughtWithdrawal" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps20GlobalRatingOfDelusions" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps21ClothingAndAppearance" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps22SocialAndSexualBehavior" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps23AggressiveAndAgitatedBehavior" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps24RepetitiveOrStereotypedBehavior" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps25GlobalRatingOfBizarreBehavior" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps26Derailment" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps27Tangentiality" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps28Incoherence" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps29Illogicality" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps30Circumstantiality" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps31PressureOfSpeech" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps32DistractibleSpeech" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps33Clanging" type="xs:integer" minOccurs="0"/>
+					<xs:element name="saps34GlobalRatingOfPositiveThough" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans1UnchangingFacialExpression" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans2DecreasedSpontaneousMovement" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans3PaucityOfExpressiveGestures" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans4PoorEyeContact" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans5AffectiveNonresponsivity" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans6InappropriateAffect" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans7LackOfVocalInflections" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans8GlobalRatingOfAffectiveFlatten" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans9PovertyOfSpeech" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans10PovertyOfContentOfSpeech" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans11Blocking" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans12IncreasedLatencyOfResponse" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans13GlobalRatingOfAlogia" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans14GroomingAndHygiene" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans15InpersistenceAtWorkOrSchool" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans16PhysicalAnergia" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans17GlobalRatingOfAvolitionApathy" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans18RecreationalInterestsAndActivity" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans19SexualActivity" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans20AbilityToFeelIntimacyAndClose" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans21RelationshipsWithFriendsAndPee" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans22GlobalRatingOfAnhedoniaAsocial" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans23SocialInattentiveness" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans24InattentivenessDuringMentalStatus" type="xs:integer" minOccurs="0"/>
+					<xs:element name="sans25GlobalRatingOfAttention" type="xs:integer" minOccurs="0"/>
+				</xs:sequence>
+			</xs:extension>
+		</xs:complexContent>
+	</xs:complexType>
+</xs:schema>
diff --git a/plugin-resources/project-skeletons/xnat/src/schemas/subjreg/subjreg.xsd b/plugin-resources/project-skeletons/xnat/src/schemas/subjreg/subjreg.xsd
new file mode 100644
--- /dev/null
+++ b/plugin-resources/project-skeletons/xnat/src/schemas/subjreg/subjreg.xsd
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+	<!--
+		edited with XMLSpy v2009 sp1 (http://www.altova.com) by AK
+		(Northwestern University)
+	-->
+<xs:schema xmlns:subjreg="http://nrg.wustl.edu/subjreg"
+	xmlns:xdat="http://nrg.wustl.edu/xdat" xmlns:xs="http://www.w3.org/2001/XMLSchema"
+	xmlns:xnat="http://nrg.wustl.edu/xnat" targetNamespace="http://nrg.wustl.edu/subjreg"
+	elementFormDefault="qualified" attributeFormDefault="unqualified">
+	<xs:import namespace="http://nrg.wustl.edu/xnat"
+		schemaLocation="../xnat/xnat.xsd" />
+	<xs:element name="VisitLog" type="subjreg:VisitLog" />
+	<xs:complexType name="VisitLog">
+		<xs:complexContent>
+			<xs:extension base="xnat:subjectAssessorData">
+				<xs:sequence>
+					<xs:element name="visit" minOccurs="0" maxOccurs="unbounded">
+						<xs:complexType>
+							<xs:sequence>
+								<xs:element name="visitnumber" type="xs:string" />
+								<xs:element name="condition" type="xs:string" />
+								<xs:element name="status" type="xs:string" />
+								<xs:element name="comment" type="xs:string"
+									minOccurs="0" />
+							</xs:sequence>
+							<xs:attribute name="timepoint" use="required">
+								<xs:simpleType>
+									<xs:restriction base="xs:string">
+										<xs:enumeration value="0m" />
+										<xs:enumeration value="6m" />
+										<xs:enumeration value="12m" />
+										<xs:enumeration value="18m" />
+										<xs:enumeration value="24m" />
+										<xs:enumeration value="30m" />
+										<xs:enumeration value="36m" />
+										<xs:enumeration value="42m" />
+										<xs:enumeration value="48m" />
+									</xs:restriction>
+								</xs:simpleType>
+							</xs:attribute>
+						</xs:complexType>
+					</xs:element>
+				</xs:sequence>
+			</xs:extension>
+		</xs:complexContent>
+	</xs:complexType>
+</xs:schema>