CPRN Data Submission Specification

Schema Document Properties

Target Namespacehttp://www.cpresearch.net
Version2.1
Element and Attribute Namespaces
  • Global element and attribute declarations belong to this schema's target namespace.
  • By default, local element declarations belong to this schema's target namespace.
  • By default, local attribute declarations have no namespace.
Schema Composition
No documentation provided.
PrefixNamespace
xmlhttp://www.w3.org/XML/1998/namespace
xshttp://www.w3.org/2001/XMLSchema
vchttp://www.w3.org/2007/XMLSchema-versioning
pcorneturn:PCORnet
cprnhttp://www.cpresearch.net
<xs:schema version="2.1" attributeFormDefault="unqualified" elementFormDefault="qualified" minVersion="1.1" targetNamespace="http://www.cpresearch.net">
   <xs:import namespace="urn:PCORnet" schemaLocation="https://cprn.org/xsd-xml/PCORnet-v5dot1.xsd"/>
...
</xs:schema>

Global Declarations

Element: CPRN-EHR

NameCPRN-EHR
TypeLocally-defined complex type
Nillableno
Abstractno
No documentation provided.
<cprn:CPRN-EHR
 Version="xs:string" [1]
 SiteId="xs:string" [1]
 CreationDateTime="xs:dateTime" [1]
 AsOfDateTime="xs:dateTime" [1]
>
   <cprn:Providers> cprn:Providers </cprn:Providers> [0..1]
   <cprn:SubjectData> cprn:SubjectData </cprn:SubjectData> [1..*]
</cprn:CPRN-EHR>
<xs:element name="CPRN-EHR">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="Providers" type="cprn:Providers" minOccurs="0" maxOccurs="1"/>
         <xs:element name="SubjectData" type="cprn:SubjectData" minOccurs="1" maxOccurs="unbounded"/>
      </xs:sequence>
      <xs:attribute name="Version" type="xs:string" use="required"/>
      <xs:attribute name="SiteId" type="xs:string" use="required"/>
      <xs:attribute name="CreationDateTime" type="xs:dateTime" use="required"/>
      <xs:attribute name="AsOfDateTime" type="xs:dateTime" use="required"/>
   </xs:complexType>
</xs:element>

Global Definitions

Complex Type: Conditions

Parent type:None
Sub-types:None
NameConditions
Abstractno
No documentation provided.
<...>
   <cprn:Condition> pcornet:condition </cprn:Condition> [1..*]
</...>
<xs:complexType name="Conditions">
   <xs:sequence>
      <xs:element name="Condition" type="pcornet:condition" maxOccurs="unbounded"/>
   </xs:sequence>
</xs:complexType>

Complex Type: Diagnoses

Parent type:None
Sub-types:None
NameDiagnoses
Abstractno
No documentation provided.
<...>
   <cprn:Diagnosis> pcornet:diagnosis </cprn:Diagnosis> [1..*]
</...>
<xs:complexType name="Diagnoses">
   <xs:sequence>
      <xs:element name="Diagnosis" type="pcornet:diagnosis" maxOccurs="unbounded"/>
   </xs:sequence>
</xs:complexType>

Complex Type: Dispensings

Parent type:None
Sub-types:None
NameDispensings
Abstractno
No documentation provided.
<...>
   <cprn:Dispensing> pcornet:dispensing </cprn:Dispensing> [1..*]
</...>
<xs:complexType name="Dispensings">
   <xs:sequence>
      <xs:element name="Dispensing" type="pcornet:dispensing" maxOccurs="unbounded"/>
   </xs:sequence>
</xs:complexType>

Complex Type: Encounters

Parent type:None
Sub-types:None
NameEncounters
Abstractno
No documentation provided.
<...>
   <cprn:Encounter> pcornet:encounter </cprn:Encounter> [1..*]
</...>
<xs:complexType name="Encounters">
   <xs:sequence>
      <xs:element name="Encounter" type="pcornet:encounter" maxOccurs="unbounded"/>
   </xs:sequence>
</xs:complexType>

Complex Type: Immunizations

Parent type:None
Sub-types:None
NameImmunizations
Abstractno
No documentation provided.
<...>
   <cprn:Immunization> pcornet:immunization </cprn:Immunization> [1..*]
</...>
<xs:complexType name="Immunizations">
   <xs:sequence>
      <xs:element name="Immunization" type="pcornet:immunization" maxOccurs="unbounded"/>
   </xs:sequence>
</xs:complexType>

Complex Type: Labs

Parent type:None
Sub-types:None
NameLabs
Abstractno
No documentation provided.
<...>
   <cprn:LabResult> pcornet:lab_result_cm </cprn:LabResult> [1..*]
</...>
<xs:complexType name="Labs">
   <xs:sequence>
      <xs:element name="LabResult" type="pcornet:lab_result_cm" maxOccurs="unbounded"/>
   </xs:sequence>
</xs:complexType>

Complex Type: MedAdmins

Parent type:None
Sub-types:None
NameMedAdmins
Abstractno
No documentation provided.
<...>
   <cprn:MedAdmin> pcornet:med_admin </cprn:MedAdmin> [1..*]
</...>
<xs:complexType name="MedAdmins">
   <xs:sequence>
      <xs:element name="MedAdmin" type="pcornet:med_admin" maxOccurs="unbounded"/>
   </xs:sequence>
</xs:complexType>

Complex Type: ObservationsClinical

Parent type:None
Sub-types:None
NameObservationsClinical
Abstractno
No documentation provided.
<...>
   <cprn:ObservationClinical> pcornet:obs_clin </cprn:ObservationClinical> [1..*]
</...>
<xs:complexType name="ObservationsClinical">
   <xs:sequence>
      <xs:element name="ObservationClinical" type="pcornet:obs_clin" maxOccurs="unbounded"/>
   </xs:sequence>
</xs:complexType>

Complex Type: ObservationsGeneral

Parent type:None
Sub-types:None
NameObservationsGeneral
Abstractno
No documentation provided.
<...>
   <cprn:ObservationGeneral> pcornet:obs_gen </cprn:ObservationGeneral> [1..*]
</...>
<xs:complexType name="ObservationsGeneral">
   <xs:sequence>
      <xs:element name="ObservationGeneral" type="pcornet:obs_gen" maxOccurs="unbounded"/>
   </xs:sequence>
</xs:complexType>

Complex Type: PcornetTrials

Parent type:None
Sub-types:None
NamePcornetTrials
Abstractno
No documentation provided.
<...>
   <cprn:PcornetTrial> pcornet:pcornet_trial </cprn:PcornetTrial> [1..*]
</...>
<xs:complexType name="PcornetTrials">
   <xs:sequence>
      <xs:element name="PcornetTrial" type="pcornet:pcornet_trial" maxOccurs="unbounded"/>
   </xs:sequence>
</xs:complexType>

Complex Type: Prescribings

Parent type:None
Sub-types:None
NamePrescribings
Abstractno
No documentation provided.
<...>
   <cprn:Prescribing> pcornet:prescribing </cprn:Prescribing> [1..*]
</...>
<xs:complexType name="Prescribings">
   <xs:sequence>
      <xs:element name="Prescribing" type="pcornet:prescribing" maxOccurs="unbounded"/>
   </xs:sequence>
</xs:complexType>

Complex Type: Procedures

Parent type:None
Sub-types:None
NameProcedures
Abstractno
No documentation provided.
<...>
   <cprn:Procedure> pcornet:procedures </cprn:Procedure> [1..*]
</...>
<xs:complexType name="Procedures">
   <xs:sequence>
      <xs:element name="Procedure" type="pcornet:procedures" maxOccurs="unbounded"/>
   </xs:sequence>
</xs:complexType>

Complex Type: ProCms

Parent type:None
Sub-types:None
NameProCms
Abstractno
No documentation provided.
<...>
   <cprn:ProCm> pcornet:pro_cm </cprn:ProCm> [1..*]
</...>
<xs:complexType name="ProCms">
   <xs:sequence>
      <xs:element name="ProCm" type="pcornet:pro_cm" maxOccurs="unbounded"/>
   </xs:sequence>
</xs:complexType>

Complex Type: Providers

Parent type:None
Sub-types:None
NameProviders
Abstractno
No documentation provided.
<...>
   <cprn:Provider> pcornet:provider </cprn:Provider> [1..*]
</...>
<xs:complexType name="Providers">
   <xs:sequence>
      <xs:element name="Provider" type="pcornet:provider" maxOccurs="unbounded"/>
   </xs:sequence>
</xs:complexType>

Complex Type: StudyData

Parent type:None
Sub-types:None
NameStudyData
Abstractno
No documentation provided.
<...>
   <cprn:Encounters> cprn:Encounters </cprn:Encounters> [0..1]
   <cprn:Diagnoses> cprn:Diagnoses </cprn:Diagnoses> [0..1]
   <cprn:Labs> cprn:Labs </cprn:Labs> [0..1]
   <cprn:Procedures> cprn:Procedures </cprn:Procedures> [0..1]
   <cprn:Prescribings> cprn:Prescribings </cprn:Prescribings> [0..1]
   <cprn:MedAdmins> cprn:MedAdmins </cprn:MedAdmins> [0..1]
   <cprn:Vitals> cprn:Vitals </cprn:Vitals> [0..1]
   <cprn:Conditions> cprn:Conditions </cprn:Conditions> [0..1]
   <cprn:ObservationsClinical> cprn:ObservationsClinical </cprn:ObservationsClinical> [0..1]
   <cprn:ObservationsGeneral> cprn:ObservationsGeneral </cprn:ObservationsGeneral> [0..1]
   <cprn:Immunizations> cprn:Immunizations </cprn:Immunizations> [0..1]
</...>
<xs:complexType name="StudyData">
   <xs:sequence>
      <xs:element name="Encounters" type="cprn:Encounters" minOccurs="0"/>
      <xs:element name="Diagnoses" type="cprn:Diagnoses" minOccurs="0"/>
      <xs:element name="Labs" type="cprn:Labs" minOccurs="0"/>
      <xs:element name="Procedures" type="cprn:Procedures" minOccurs="0"/>
      <xs:element name="Prescribings" type="cprn:Prescribings" minOccurs="0"/>
      <xs:element name="MedAdmins" type="cprn:MedAdmins" minOccurs="0"/>
      <xs:element name="Vitals" type="cprn:Vitals" minOccurs="0"/>
      <xs:element name="Conditions" type="cprn:Conditions" minOccurs="0"/>
      <xs:element name="ObservationsClinical" type="cprn:ObservationsClinical" minOccurs="0"/>
      <xs:element name="ObservationsGeneral" type="cprn:ObservationsGeneral" minOccurs="0"/>
      <xs:element name="Immunizations" type="cprn:Immunizations" minOccurs="0"/>
   </xs:sequence>
</xs:complexType>

Complex Type: SubjectData

Parent type:None
Sub-types:None
NameSubjectData
Abstractno
No documentation provided.
<...
 SubjectKey="xs:string" [1]
>
   <cprn:Demographic> pcornet:demographic </cprn:Demographic> [1]
   <cprn:HashTokens> pcornet:hash_token </cprn:HashTokens> [0..1]
   <cprn:StudyData> cprn:StudyData </cprn:StudyData> [0..1]
</...>
<xs:complexType name="SubjectData">
   <xs:sequence>
      <xs:element name="Demographic" type="pcornet:demographic"/>
      <xs:element name="HashTokens" type="pcornet:hash_token" minOccurs="0" maxOccurs="1"/>
      <xs:element name="StudyData" type="cprn:StudyData" minOccurs="0" maxOccurs="1"/>
   </xs:sequence>
   <xs:attribute name="SubjectKey" type="xs:string" use="required"/>
</xs:complexType>

Complex Type: Vitals

Parent type:None
Sub-types:None
NameVitals
Abstractno
No documentation provided.
<...>
   <cprn:Vital> pcornet:vital </cprn:Vital> [1..*]
</...>
<xs:complexType name="Vitals">
   <xs:sequence>
      <xs:element name="Vital" type="pcornet:vital" maxOccurs="unbounded"/>
   </xs:sequence>
</xs:complexType>

Glossary

Abstract (Applies to complex type definitions and element declarations). An abstract element or complex type cannot used to validate an element instance. If there is a reference to an abstract element, only element declarations that can substitute the abstract element can be used to validate the instance. For references to abstract type definitions, only derived types can be used.

All Model Group Child elements can be provided in any order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-all.

Choice Model Group Only one from the list of child elements and model groups can be provided in instances. See: http://www.w3.org/TR/xmlschema-1/#element-choice.

Collapse Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32). Then, collapse contiguous sequences of space characters into single space character, and remove leading and trailing space characters.

Disallowed Substitutions (Applies to element declarations). If substitution is specified, then substitution group members cannot be used in place of the given element declaration to validate element instances. If derivation methods, e.g. extension, restriction, are specified, then the given element declaration will not validate element instances that have types derived from the element declaration's type using the specified derivation methods. Normally, element instances can override their declaration's type by specifying an xsi:type attribute.

Key Constraint Like Uniqueness Constraint, but additionally requires that the specified value(s) must be provided. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

Key Reference Constraint Ensures that the specified value(s) must match value(s) from a Key Constraint or Uniqueness Constraint. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

Model Group Groups together element content, specifying the order in which the element content can occur and the number of times the group of element content may be repeated. See: http://www.w3.org/TR/xmlschema-1/#Model_Groups.

Nillable (Applies to element declarations). If an element declaration is nillable, instances can use the xsi:nil attribute. The xsi:nil attribute is the boolean attribute, nil, from the http://www.w3.org/2001/XMLSchema-instance namespace. If an element instance has an xsi:nil attribute set to true, it can be left empty, even though its element declaration may have required content.

Notation A notation is used to identify the format of a piece of data. Values of elements and attributes that are of type, NOTATION, must come from the names of declared notations. See: http://www.w3.org/TR/xmlschema-1/#cNotation_Declarations.

Preserve Whitespace Policy Preserve whitespaces exactly as they appear in instances.

Prohibited Derivations (Applies to type definitions). Derivation methods that cannot be used to create sub-types from a given type definition.

Prohibited Substitutions (Applies to complex type definitions). Prevents sub-types that have been derived using the specified derivation methods from validating element instances in place of the given type definition.

Replace Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32).

Sequence Model Group Child elements and model groups must be provided in the specified order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-sequence.

Substitution Group Elements that are members of a substitution group can be used wherever the head element of the substitution group is referenced.

Substitution Group Exclusions (Applies to element declarations). Prohibits element declarations from nominating themselves as being able to substitute a given element declaration, if they have types that are derived from the original element's type using the specified derivation methods.

Target Namespace The target namespace identifies the namespace that components in this schema belongs to. If no target namespace is provided, then the schema components do not belong to any namespace.

Uniqueness Constraint Ensures uniqueness of an element/attribute value, or a combination of values, within a specified scope. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.