MINI MINI MANI MO

Path : /opt/oracle/product/18c/dbhomeXE/ord/xml/xsd/
File Upload :
Current File : //opt/oracle/product/18c/dbhomeXE/ord/xml/xsd/orddcmim.xsd

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://xmlns.oracle.com/ord/meta/dicomImage" targetNamespace="http://xmlns.oracle.com/ord/meta/dicomImage"  xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" elementFormDefault="qualified" attributeFormDefault="unqualified">	

<xs:annotation>
  <xs:documentation>
    Date: 21 Sept 2005
    Version: 10gR2_release_10.2.0.2
    Name: dicomImage.xsd
    Author: Dongbai Guo

    Introduction
      This schema defines the set of DICOM metadata for
      ORDImage function getDicomMetadata().
      The purpose of this set of functions is to extract from a DICOM image a set of
      attributes to describe the image in XML, allowing easy browsing and retrieval.
    
      Question mark "?" means optional items
    
     The DICOM schema does not enforce the DICOM standard.  By default, conformance 
     is enforced by the getDicomMetadata code.  If DICOM conformance is disabled by 
     invoking the setDicomValidation method,we will extract metadata from 
     images with missing or null mandatory DICOM attributes, and/or non-conformant 
     DICOM attributes.  For attributes with non-conformant values, the raw data 
     will be placed in the rawValue attribute of the tag.

    Structure Overview
      DICOM_IMAGE
        ORD_DICOM_HEADER
          VERSION
          DICOM_STANDARD_VERSION
          DICOM_STANDARD_RELEASE
        FILE_META_HEADER
          MEDIA_STORAGE_SOP_CLASS_UID
          MEDIA_STORAGE_SOP_INSTANCE_UID
          TRANSFER_SYNTAX_UID
          IMPLEMENTATION_CLASS_UID
          IMPLEMENTATION_VERSION_NAME
          SOURCE_APPLICATION_ENTITY_TITLE
        PATIENT
          NAME
          ID
          BIRTH_DATE
          SEX
        GENERAL_STUDY
          INSTANCE_UID
          DATE
          TIME
          REFERING_PHYSICIANS_NAME
          ID
          ACCESSION_NUMBER
          DESCRIPTION?
        PATIENT_STUDY?
          ADMITTING_DIAGNOSES_DESCRIPTION
          ADMITTING_DIAGNOSES_CODE_SEQUENCE
        GENERAL_SERIES
          MODALITY
          INSTANCE_UID
          DATE
          TIME
          PERFORMING_PHYSICIANS_NAME
          BODY_PART_EXAMINED
          PATIENT_POSITION
          PERFORMED_PROCEDURE_STEP_ID
          PERFORMED_PROCEDURE_STEP_START_DATE
          PERFORMED_PROCEDURE_STEP_START_TIME
          PERFORMED_PROCEDURE_STEP_DESCRIPTION
          PERFORMED_PROTOCOL_CODE_SEQUENCE
        GENERAL_EQUIPMENT?
          MANUFACTURER
        GENERAL_IMAGE?
          INSTANCE_NUMBER
          ACQUISITION_NUMBER
          ACQUISITION_DATE
          ACQUISITION_TIME
          ACQUISITION_DATETIME
          PATIENT_ORIENTATION
          FRAME_LATERALITY
          ANATOMIC_REGION
        IMAGE_PIXEL?
          SAMPLES_PER_PIXEL
          PHOTOMETRIC_INTERPRETATION
          ROWS
          COLUMNS
          BIT_ALLOCATED
          BIT_STORED
          HIGH_BIT
          PIXEL_REPRESENTATION
       		PLANAR_CONFIGURATION
          PIXEL_ASPECT_RATIO

        SOP_COMMON
          CLASS_UID
          INSTANCE_UID						
          SPECIFIC_CHARACTER_SET

    List of DICOM attribute tags appeared in this schema
      (0002, 0002)  MEDIA_STORAGE_SOP_CLASS_UID
      (0002, 0003)  MEDIA_STORAGE_SOP_INSTANCE_UID
      (0002, 0010)  TRANSFER_SYNTAX_UID
      (0002, 0012)  IMPLEMENTATION_CLASS_UID
      (0002, 0013)  IMPLEMENTATION_VERSION_NAME
      (0002, 0016)  SOURCE_APPLICATION_ENTITY_TITLE


      (0008, 0005)  SPECIFIC_CHARACTER_SET
      (0008, 0016)  SOP CLASS_UID
      (0008, 0018)  SOP INSTANCE_UID
      (0008, 0020)  STUDY DATE
      (0008, 0021)  SERIES DATE
      (0008, 0022)  ACQUISITION_DATE
      (0008, 002A)  ACQUISITION_DATETIME
      (0008, 0030)  STUDY TIME
      (0008, 0031)  SERIES TIME
      (0008, 0032)  ACQUISITION_TIME
      (0008, 0050)  ACCESSION_NUMBER
      (0008, 0060)  MODALITY
      (0008, 0070)  MANUFACTURER
      (0008, 0090)  REFERING_PHYSICIANS_NAME
      (0008, 1030)  STUDY DESCRIPTION
      (0008, 1050)  PERFORMING_PHYSICIANS_NAME
      (0008, 1080)  ADMITTING_DIAGNOSES_DESCRIPTION
      (0008, 1084)  ADMITTING_DIAGNOSES_CODE_SEQUENCE
      (0008, 2218)  ANATOMIC_REGION

      (0010, 0010)  PATIENT NAME
      (0010, 0020)  PATIENT ID
      (0010, 0030)  PATIENT BIRTH_DATE
      (0010, 0040)  PATIENT SEX

      (0018, 0015)  BODY_PART_EXAMINED
      (0018, 5100)  PATIENT_POSITION
    
      (0020, 000D)  STUDY INSTANCE_UID
      (0020, 000E)  SERIES INSTANCE_UID
      (0020, 0010)  STUDY ID
      (0020, 0012)  ACQUISITION_NUMBER
      (0020, 0013)  INSTANCE_NUMBER
      (0020, 0020)  PATIENT_ORIENTATION
      (0020, 9072)  FRAME_LATERALITY

      (0028, 0002)  SAMPLES_PER_PIXEL
      (0028, 0004)  PHOTOMETRIC_INTERPRETATION
      (0028, 0006)  PLANAR_CONFIGURATION
      (0028, 0010)  ROWS
      (0028, 0011)  COLUMNS
      (0028, 0034)  PIXEL_ASPECT_RATIO
      (0028, 0100)  BIT_ALLOCATED
      (0028, 0101)  BIT_STORED
      (0028, 0102)  HIGH_BIT
      (0028, 0103)  PIXEL_REPRESENTATION

      (0040, 0244)  PERFORMED_PROCEDURE_STEP_START_DATE
      (0040, 0245)  PERFORMED_PROCEDURE_STEP_START_TIME
      (0040, 0253)  PERFORMED_PROCEDURE_STEP_ID
      (0040, 0254)  PERFORMED_PROCEDURE_STEP_DESCRIPTION
      (0040, 0260)  PERFORMED_PROTOCOL_CODE_SEQUENCE

        
  </xs:documentation>
</xs:annotation>


<xs:element name="DICOM_IMAGE" xdb:defaultTable="" xdb:SQLType="DICOM_IMAGE_ORD_IMG_T">
  <xs:complexType>
  <xs:sequence>
    <xs:element name="ORD_DICOM_HEADER" xdb:SQLType="ORD_DICOM_HEADER_ORD_IMG_T">
       <xs:complexType>
      <xs:sequence>
        <!-- XML document version number is "1.0" for database release 10gR2 -->
        <xs:element name="VERSION" type="SH"/>
        <!-- The DICOM Base Standard version this XML document is derived from is "3". -->
        <xs:element name="DICOM_STANDARD_VERSION" type="SH"/>
        <!-- The DICOM Base Standard this XML document is derived from is 2004. -->
        <xs:element name="DICOM_STANDARD_RELEASE" type="SH"/>
      </xs:sequence>
       </xs:complexType>
    </xs:element>
    <xs:element name="FILE_META_HEADER" minOccurs="0" xdb:SQLType="FILE_META_HEADER_ORD_IMG_T">
       <xs:complexType>
      <xs:sequence>
        <!-- (0002, 0002), mandatory-->
        <!-- DICOM standard requires this attribute to be mandatory and not null -->
        <xs:element name="MEDIA_STORAGE_SOP_CLASS_UID" minOccurs="0" nillable="true" xdb:SQLType="MEDIASTORAGE_CLASS_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="UI">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0002, 0003), mandatory -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="MEDIA_STORAGE_SOP_INSTANCE_UID" minOccurs="0" nillable="true" xdb:SQLType="MEDIASTORAGE_INSTAN_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="UI">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0002, 0010), mandatory -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="TRANSFER_SYNTAX_UID" minOccurs="0" nillable="true" xdb:SQLType="TRANSFER_SYNTAX_UID_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="UI">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0002, 0012), mandatory -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="IMPLEMENTATION_CLASS_UID" minOccurs="0" nillable="true" xdb:SQLType="IMPLEMENTATION_CLASS_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="UI">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0002, 0013), nullable -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="IMPLEMENTATION_VERSION_NAME" minOccurs="0" nillable="true" xdb:SQLType="IMPLEMENTATION_VER_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="SH">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0002, 0016), nullable -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="SOURCE_APPLICATION_ENTITY_TITLE" minOccurs="0" nillable="true" xdb:SQLType="SRC_APP_ENTITY_TITLE_ORD_IMG_T" xdb:SQLName="SRC_APP_ENTITY_TITLE_ORD_IMG">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="AE">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
       </xs:complexType>
    </xs:element>
    <xs:element name="PATIENT" minOccurs="0" xdb:SQLType="PATIENT_ORD_IMG_T">
       <xs:complexType>
      <xs:sequence>
        <!-- (0010, 0010), nullable -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="NAME" minOccurs="0" nillable="true" xdb:SQLType="PATIENT_NAME_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="PN">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0010, 0020), nullable -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="ID" minOccurs="0" nillable="true" xdb:SQLType="PATIENT_ID_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="LO">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0010, 0030), nullable -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="BIRTH_DATE" minOccurs="0" nillable="true" xdb:SQLType="PATIENT_BIRTH_DATE_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="DA">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0010, 0040), nullable -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="SEX" minOccurs="0" nillable="true" xdb:SQLType="PATIENT_SEX_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="CS">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
       </xs:complexType>
    </xs:element>
    <xs:element name="GENERAL_STUDY" minOccurs="0" xdb:SQLType="GENERAL_STUDY_ORD_IMG_T">
       <xs:complexType>
      <xs:sequence>
        <!-- (0020, 000D) mandatory -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="INSTANCE_UID" minOccurs="0" nillable="true" xdb:SQLType="STUDY_INSTANCE_UID_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="UI">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0008, 0020), nullable -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="DATE" minOccurs="0" nillable="true" xdb:SQLType="STUDY_DATE_ORD_IMG_T" xdb:SQLName="STUDY_DATE_ORD_IMG">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="DA">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0008, 0030), nullable -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="TIME" minOccurs="0" nillable="true" xdb:SQLType="STUDY_TIME_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="TM">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0008, 0090), nullable -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="REFERING_PHYSICIANS_NAME" minOccurs="0" nillable="true" xdb:SQLType="REFERING_PHYSICIANS_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="PN">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0020, 0010), nullable -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="ID" minOccurs="0" nillable="true" xdb:SQLType="STUDY_ID_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="SH">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0008, 0050), nullable -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="ACCESSION_NUMBER" minOccurs="0" nillable="true" xdb:SQLType="ACCESSION_NUMBER_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="SH">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0008, 1030) optional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="DESCRIPTION" minOccurs="0" nillable="true" xdb:SQLType="STUDY_DESCRIPTION_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="LO">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
       </xs:complexType>
    </xs:element>
    <xs:element name="PATIENT_STUDY" minOccurs="0" xdb:SQLType="PATIENT_STUDY_ORD_IMG_T">
       <xs:complexType>
      <xs:sequence>
        <!-- (0008, 1080), optional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="ADMITTING_DIAGNOSES_DESCRIPTION" minOccurs="0" maxOccurs="unbounded" nillable="true" xdb:SQLType="ADMITTING_DIAG_DESC_ORD_IMG_T" xdb:SQLName="ADMITTING_DIAG_DESC_ORD_IMG" xdb:SQLCollType="ADMITTING_DIAG_DESC_ORD_IMG_C">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="LO">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0008, 1084), optional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="ADMITTING_DIAGNOSES_CODE_SEQUENCE" minOccurs="0" nillable="true" type="CODE_SQ" xdb:SQLType="CODE_SQ_ORD_IMG_T" xdb:SQLName="ADMITTING_DIAG_CODE_ORD_IMG">
        </xs:element>
 
      </xs:sequence>
       </xs:complexType>
    </xs:element>


    <xs:element name="GENERAL_SERIES" minOccurs="0" xdb:SQLType="GENERAL_SERIES_ORD_IMG_T">
       <xs:complexType>
      <xs:sequence>
        <!-- (0008, 0060), mandatory -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="MODALITY" minOccurs="0" nillable="true" xdb:SQLType="MODALITY_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="CS">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0020, 000E), mandatory -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="INSTANCE_UID" minOccurs="0" nillable="true" xdb:SQLType="SERIES_INSTANCE_UID_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="UI">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0008, 0021), optional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="DATE" minOccurs="0" nillable="true" xdb:SQLType="SERIES_DATE_ORD_IMG_T" xdb:SQLName="SERIES_DATE_ORD_IMG">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="DA">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0008, 0031), optional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="TIME" minOccurs="0" nillable="true" xdb:SQLType="SERIES_TIME_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="TM">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0008, 1050), optional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="PERFORMING_PHYSICIANS_NAME" minOccurs="0" maxOccurs="unbounded" nillable="true" xdb:SQLType="PERFORMING_PHYSICIAN_ORD_IMG_T" xdb:SQLCollType="PERFORMING_PHYSICIAN_ORD_IMG_C">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="PN">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0018, 0015), optional -->
        <!-- Note will not replace with modality specific values -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="BODY_PART_EXAMINED" minOccurs="0" nillable="true" xdb:SQLType="BODY_PART_EXAMINED_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="CS">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0018, 5100), conditional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="PATIENT_POSITION" minOccurs="0" nillable="true" xdb:SQLType="PATIENT_POSITION_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="CS">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0040, 0253), optional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="PERFORMED_PROCEDURE_STEP_ID" minOccurs="0" nillable="true" xdb:SQLType="PERFORMED_PROC_ID_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="SH">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0040, 0244), optional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="PERFORMED_PROCEDURE_STEP_START_DATE" minOccurs="0" nillable="true" xdb:SQLName="PERF_PROC_STARTDATE_ORD_IMG" xdb:SQLType="PERF_PROC_STARTDATE_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="DA">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0040, 0245), optional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="PERFORMED_PROCEDURE_STEP_START_TIME" minOccurs="0" nillable="true" xdb:SQLName="PERF_PROC_STARTTIME_ORD_IMG" xdb:SQLType="PERF_PROC_STARTTIME_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="TM">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0040, 0254), optional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="PERFORMED_PROCEDURE_STEP_DESCRIPTION" minOccurs="0" nillable="true" xdb:SQLName="PERF_PROC_DESC_ORD_IMG" xdb:SQLType="PERF_PROC_DESC_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="LO">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0040, 0260), optional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="PERFORMED_PROTOCOL_CODE_SEQUENCE" minOccurs="0" nillable="true" type="CODE_SQ" xdb:SQLName="PERF_PROTOCOL_CODE_ORD_IMG" xdb:SQLType="CODE_SQ_ORD_IMG_T">
        </xs:element>
      </xs:sequence>
       </xs:complexType>
    </xs:element>

    <xs:element name="GENERAL_EQUIPMENT" minOccurs="0" xdb:SQLType="GENERAL_EQUIPMENT_ORD_IMG_T">
       <xs:complexType>
      <xs:sequence>
        <!-- (0008, 0070), nullable -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="MANUFACTURER" minOccurs="0" nillable="true" xdb:SQLType="MANUFACTURER_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="LO">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
       </xs:complexType>
    </xs:element>

    <xs:element name="GENERAL_IMAGE" minOccurs="0" xdb:SQLType="GENERAL_IMAGE_ORD_IMG_T">
       <xs:complexType>
      <xs:sequence>
        <!-- (0020, 0013), nullable -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="INSTANCE_NUMBER" minOccurs="0" nillable="true" xdb:SQLType="INSTANCE_NUMBER_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="IS">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0020, 0012), optional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="ACQUISITION_NUMBER" minOccurs="0" nillable="true" xdb:SQLType="ACQUISITION_NUMBER_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="IS">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0008, 0022), optional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="ACQUISITION_DATE" minOccurs="0" nillable="true" xdb:SQLType="ACQUISITION_DATE_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="DA">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0008, 0032), optional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="ACQUISITION_TIME" minOccurs="0" nillable="true" xdb:SQLType="ACQUISITION_TIME_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="TM">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0008, 002A), optional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="ACQUISITION_DATETIME" minOccurs="0" nillable="true" xdb:SQLType="ACQUISITION_DATETIME_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="DT">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0020, 0020), conditional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="PATIENT_ORIENTATION" minOccurs="0" maxOccurs="2" nillable="true" xdb:SQLType="PATIENT_ORIENTATION_ORD_IMG_T" xdb:SQLCollType="PATIENT_ORIENTATION_ORD_IMG_C">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="CS">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0020, 9072) conditional-->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="FRAME_LATERALITY" minOccurs="0" nillable="true" xdb:SQLType="FRAME_LATERALITY_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="CS">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0008, 2218) Frame anatomy macro, conditional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="ANATOMIC_REGION" minOccurs="0" nillable="true" type="CODE_SQ" xdb:SQLType="CODE_SQ_ORD_IMG_T">
        </xs:element>
      </xs:sequence>
       </xs:complexType>
    </xs:element>

    <xs:element name="IMAGE_PIXEL" minOccurs="0" xdb:SQLType="IMAGE_PIXEL_ORD_IMG_T">
       <xs:complexType>
      <xs:sequence>
        <!-- (0028, 0002), mandatory -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="SAMPLES_PER_PIXEL" minOccurs="0" nillable="true" xdb:SQLType="SAMPLES_PER_PIXEL_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="US">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0028, 0004), mandatory -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="PHOTOMETRIC_INTERPRETATION" minOccurs="0" nillable="true" xdb:SQLType="PHOTOMETRIC_INTERP_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="CS">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0028, 0010), mandatory -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="ROWS" minOccurs="0" nillable="true" xdb:SQLType="IMAGE_ROWS_ORD_IMG_T" xdb:SQLName="IMAGE_ROWS_ORD_IMG">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="US">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0028, 0011), mandatory -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="COLUMNS" minOccurs="0" nillable="true" xdb:SQLType="IMAGE_COLUMNS_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="US">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0028, 0100), mandatory -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="BIT_ALLOCATED" minOccurs="0" nillable="true" xdb:SQLType="BIT_ALLOCATED_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="US">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0028, 0101), mandatory -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="BIT_STORED" minOccurs="0" nillable="true" xdb:SQLType="BIT_STORED_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="US">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0028, 0102), mandatory -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="HIGH_BIT" minOccurs="0" nillable="true" xdb:SQLType="HIGH_BIT_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="US">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0028, 0103), mandatory -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="PIXEL_REPRESENTATION" minOccurs="0" nillable="true" xdb:SQLType="PIXEL_REPRESENTATION_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="US">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (7FE0, 0010) PIXEL_DATA, not included -->
        <!-- (0028, 0006), conditional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="PLANAR_CONFIGURATION" minOccurs="0" nillable="true" xdb:SQLType="PLANAR_CONFIGURATION_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="US">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0028, 0034), conditional -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="PIXEL_ASPECT_RATIO" minOccurs="0" maxOccurs="2" nillable="true" xdb:SQLType="PIXEL_ASPECT_RATIO_ORD_IMG_T" xdb:SQLCollType="PIXEL_ASPECT_RATIO_ORD_IMG_C">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="IS">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
       </xs:complexType>
    </xs:element>

    <xs:element name="SOP_COMMON" minOccurs="0" xdb:SQLType="SOP_COMMON_ORD_IMG_T">
       <xs:complexType>
      <xs:sequence>
        <!-- (0008, 0016), mandatory -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="CLASS_UID" minOccurs="0" nillable="true" xdb:SQLType="SOP_CLASS_UID_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="UI">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0008, 0018), mandatory -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="INSTANCE_UID" minOccurs="0" nillable="true" xdb:SQLType="SOP_INSTANCE_UID_ORD_IMG_T">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="UI">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!-- (0008, 0005) -->
        <!-- DICOM standard requires this attribute to be mandatory and not null --> 
        <xs:element name="SPECIFIC_CHARACTER_SET" minOccurs="0" maxOccurs="unbounded" nillable="true" xdb:SQLType="CHARACTER_SET_ORD_IMG_T" xdb:SQLCollType="CHARACTER_SET_ORD_IMG_C">
          <xs:complexType>
             <xs:simpleContent>
             <xs:extension base="CS">
             <xs:attribute name="rawValue" type="xs:string"/>
             </xs:extension>
             </xs:simpleContent>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
       </xs:complexType>
    </xs:element>

  </xs:sequence>
  </xs:complexType>
</xs:element>


<!-- Complex data type -->
<!-- code sequence -->
<xs:complexType name="CODE_SQ" xdb:SQLType="CODE_SQ_ORD_IMG_T">
  <xs:sequence>
    <xs:element name="CODE_SEQUENCE" type="CODE_SEQUENCE" maxOccurs="unbounded" xdb:SQLType="CODE_SEQUENCE_ORD_IMG_T" xdb:SQLCollType="CODE_SEQUENCE_ORD_IMG_C"/>
  </xs:sequence>
  <xs:attribute name="rawValue" type="xs:string"/>
</xs:complexType>

<xs:complexType name="CODE_SEQUENCE" xdb:SQLType="CODE_SEQUENCE_ORD_IMG_T">
  <xs:sequence>
    <xs:element name="ITEM_NUMBER" type="xs:positiveInteger"/>
    <xs:element name="CODE_VALUE" type="xs:string"/>
    <xs:element name="CODING_SCHEME" type="xs:string"/>
    <xs:element name="CODING_SCHEME_VERSION" type="xs:string" minOccurs="0"/>
    <xs:element name="CODING_MEANING" type="xs:string" minOccurs="0"/>
  </xs:sequence>
</xs:complexType>




<!-- Simple data types -->
<!-- Application Entity -->
<xs:simpleType name="AE">
  <xs:restriction base="xs:string">
    <xs:maxLength value="16"/>
  </xs:restriction>
</xs:simpleType>

<!-- Coded String -->
<xs:simpleType name="CS">
  <xs:restriction base="xs:token">
    <xs:maxLength value="16"/>
  </xs:restriction>
</xs:simpleType>

<!-- DAte -->
<xs:simpleType name="DA">
  <xs:restriction base="xs:date"/>
</xs:simpleType>

<!-- DateTime -->
<xs:simpleType name="DT">
  <xs:restriction base="xs:dateTime"/>
</xs:simpleType>

<!-- Integer String -->
<xs:simpleType name="IS">
  <xs:restriction base="xs:integer"/>
</xs:simpleType>

<!-- LOng string -->
<xs:simpleType name="LO">
  <xs:restriction base="xs:string">
    <xs:maxLength value="64"/>
  </xs:restriction>
</xs:simpleType>

<!-- Person Name -->
<xs:simpleType name="PN">
  <xs:restriction base="xs:token">
    <xs:maxLength value="64"/>
  </xs:restriction>
</xs:simpleType>

<!-- SHort String -->
<xs:simpleType name="SH">
  <xs:restriction base="xs:string">
    <xs:maxLength value="16"/>
  </xs:restriction>
</xs:simpleType>

<!-- Short String -->
<xs:simpleType name="SS">
  <xs:restriction base="xs:short"/>
</xs:simpleType>

<!-- TiMe -->
<xs:simpleType name="TM">
  <xs:restriction base="xs:time"/>
</xs:simpleType>

<!-- UId -->
<xs:simpleType name="UI">
  <xs:restriction base="xs:token">
    <xs:maxLength value="64"/>
    <xs:pattern value='([0-9]+\.)*[0-9]+'/>
  </xs:restriction>
</xs:simpleType>


<!-- Unsigned Short -->
<xs:simpleType name="US">
  <xs:restriction base="xs:unsignedShort"/>
</xs:simpleType>


</xs:schema>


OHA YOOOO