complexType FinishedGeneralEpisode_Structure
diagram CDS-XML_Schema_Documentation-v6-1-1-2010-12-10_p377.png
namespace http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
children ns:EpisodeCharacteristics ns:ServiceAgreementDetails ns:PersonGroup_Consultant ns:ClinicalDiagnosisDetails ns:ClinicalTreatmentDetails ns:APCLocationGroup
used by
element AdmittedPatientCare_Finished_GeneralEpisode_Structure/FinishedGeneralEpisode
annotation
documentation
V6-0:
Episode Start and End Dates are  SUS MANDATORY
source <xs:complexType name="FinishedGeneralEpisode_Structure">
 
<xs:annotation>
   
<xs:documentation>V6-0:
Episode Start and End Dates are  SUS MANDATORY
</xs:documentation>
 
</xs:annotation>
 
<xs:sequence>
   
<xs:element name="EpisodeCharacteristics">
     
<xs:annotation>
       
<xs:documentation>XML Mandatory if this data structure is used</xs:documentation>
     
</xs:annotation>
     
<xs:complexType mixed="false">
       
<xs:sequence>
         
<xs:element name="EpisodeNumber" type="ns:EpisodeNumber_Type" minOccurs="0"/>
         
<xs:element name="LastEpisodeInSpellIndicator" type="ns:LastEpisodeInSpellIndicator_Type" minOccurs="0"/>
         
<xs:element name="AdminCategoryAtStartOfEpisode" type="ns:AdministrativeCategory_AtStartOfEpisode_Type" minOccurs="0"/>
         
<xs:element name="OperationStatus" type="ns:OperationStatus_Type" minOccurs="0"/>
         
<xs:element name="NeonatalLevelOfCare" type="ns:NeonatalLevelOfCare_Type" minOccurs="0"/>
         
<xs:element name="FirstRegularDayOrNightAdmission" type="ns:FirstRegularDayOrNightAdmission_Type" minOccurs="0"/>
         
<xs:element name="PsychiatricPatientStatus" type="ns:PsychiatricPatientStatus_Type" minOccurs="0"/>
         
<xs:element name="LegalStatusClassificationCode_AtStartOfEpisode" type="ns:LegalStatusClassificationCode_AtStartOfEpisode_Type" minOccurs="0">
           
<xs:annotation>
             
<xs:documentation xml:lang="en">For Psychiatric Patients Only
Not used in CDS Type 160 (Other Delivery)
</xs:documentation>
           
</xs:annotation>
         
</xs:element>
         
<xs:element name="StartDate_Episode" type="ns:StartDate_Episode_Type">
           
<xs:annotation>
             
<xs:documentation xml:lang="en">XML Mandatory if this data structure is used
V6-0:
Start Date_Episode is validated as SUS MANDATORY  and is associated with the mandatory CDS Activity Date.
</xs:documentation>
           
</xs:annotation>
         
</xs:element>
         
<xs:element name="EndDate_Episode" type="ns:EndDate_Episode_Type">
           
<xs:annotation>
             
<xs:documentation xml:lang="en">XML Mandatory if this data structure is used
V6-0:
EndDate_Episode is validated as SUS MANDATORY and is associated with the mandatory CDS Activity Date.
</xs:documentation>
           
</xs:annotation>
         
</xs:element>
         
<xs:element name="AgeAtCDSActivityDate" type="ns:AgeAtCDSActivityDate_Type">
           
<xs:annotation>
             
<xs:documentation xml:lang="en">XML Mandatory if this data structure is used
V6:0
</xs:documentation>
           
</xs:annotation>
         
</xs:element>
         
<xs:element name="VeryGeneralPurpose_947" type="ns:VeryGeneralPurpose_Type" minOccurs="0" maxOccurs="99"/>
       
</xs:sequence>
     
</xs:complexType>
   
</xs:element>
   
<xs:element name="ServiceAgreementDetails" type="ns:ServiceAgreementDetails_Structure" minOccurs="0"/>
   
<xs:element name="PersonGroup_Consultant" type="ns:PersonGroupConsultant_Structure" minOccurs="0"/>
   
<xs:element name="ClinicalDiagnosisDetails" type="ns:ClinicalDiagnosis_Structure" minOccurs="0">
     
<xs:annotation>
       
<xs:documentation>V6-0
Standard Data Structures introduced
</xs:documentation>
     
</xs:annotation>
   
</xs:element>
   
<xs:element name="ClinicalTreatmentDetails" type="ns:ClinicalActivity_Structure" minOccurs="0">
     
<xs:annotation>
       
<xs:documentation>V6-0
Standard Data Structures introduced
</xs:documentation>
     
</xs:annotation>
   
</xs:element>
   
<xs:element name="APCLocationGroup" type="ns:APCLocationGroup_Structure" minOccurs="0"/>
 
</xs:sequence>
</xs:complexType>

element FinishedGeneralEpisode_Structure/EpisodeCharacteristics
diagram CDS-XML_Schema_Documentation-v6-1-1-2010-12-10_p378.png
namespace http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
properties
isRef 0
content complex
mixed false
children ns:EpisodeNumber ns:LastEpisodeInSpellIndicator ns:AdminCategoryAtStartOfEpisode ns:OperationStatus ns:NeonatalLevelOfCare ns:FirstRegularDayOrNightAdmission ns:PsychiatricPatientStatus ns:LegalStatusClassificationCode_AtStartOfEpisode ns:StartDate_Episode ns:EndDate_Episode ns:AgeAtCDSActivityDate ns:VeryGeneralPurpose_947
annotation
documentation
XML Mandatory if this data structure is used
source <xs:element name="EpisodeCharacteristics">
 
<xs:annotation>
   
<xs:documentation>XML Mandatory if this data structure is used</xs:documentation>
 
</xs:annotation>
 
<xs:complexType mixed="false">
   
<xs:sequence>
     
<xs:element name="EpisodeNumber" type="ns:EpisodeNumber_Type" minOccurs="0"/>
     
<xs:element name="LastEpisodeInSpellIndicator" type="ns:LastEpisodeInSpellIndicator_Type" minOccurs="0"/>
     
<xs:element name="AdminCategoryAtStartOfEpisode" type="ns:AdministrativeCategory_AtStartOfEpisode_Type" minOccurs="0"/>
     
<xs:element name="OperationStatus" type="ns:OperationStatus_Type" minOccurs="0"/>
     
<xs:element name="NeonatalLevelOfCare" type="ns:NeonatalLevelOfCare_Type" minOccurs="0"/>
     
<xs:element name="FirstRegularDayOrNightAdmission" type="ns:FirstRegularDayOrNightAdmission_Type" minOccurs="0"/>
     
<xs:element name="PsychiatricPatientStatus" type="ns:PsychiatricPatientStatus_Type" minOccurs="0"/>
     
<xs:element name="LegalStatusClassificationCode_AtStartOfEpisode" type="ns:LegalStatusClassificationCode_AtStartOfEpisode_Type" minOccurs="0">
       
<xs:annotation>
         
<xs:documentation xml:lang="en">For Psychiatric Patients Only
Not used in CDS Type 160 (Other Delivery)
</xs:documentation>
       
</xs:annotation>
     
</xs:element>
     
<xs:element name="StartDate_Episode" type="ns:StartDate_Episode_Type">
       
<xs:annotation>
         
<xs:documentation xml:lang="en">XML Mandatory if this data structure is used
V6-0:
Start Date_Episode is validated as SUS MANDATORY  and is associated with the mandatory CDS Activity Date.
</xs:documentation>
       
</xs:annotation>
     
</xs:element>
     
<xs:element name="EndDate_Episode" type="ns:EndDate_Episode_Type">
       
<xs:annotation>
         
<xs:documentation xml:lang="en">XML Mandatory if this data structure is used
V6-0:
EndDate_Episode is validated as SUS MANDATORY and is associated with the mandatory CDS Activity Date.
</xs:documentation>
       
</xs:annotation>
     
</xs:element>
     
<xs:element name="AgeAtCDSActivityDate" type="ns:AgeAtCDSActivityDate_Type">
       
<xs:annotation>
         
<xs:documentation xml:lang="en">XML Mandatory if this data structure is used
V6:0
</xs:documentation>
       
</xs:annotation>
     
</xs:element>
     
<xs:element name="VeryGeneralPurpose_947" type="ns:VeryGeneralPurpose_Type" minOccurs="0" maxOccurs="99"/>
   
</xs:sequence>
 
</xs:complexType>
</xs:element>

element FinishedGeneralEpisode_Structure/EpisodeCharacteristics/EpisodeNumber
diagram CDS-XML_Schema_Documentation-v6-1-1-2010-12-10_p379.png
namespace http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
type ns:EpisodeNumber_Type
properties
isRef 0
minOcc 0
maxOcc 1
content simple
facets
Kind Value annotation 
totalDigits 
source <xs:element name="EpisodeNumber" type="ns:EpisodeNumber_Type" minOccurs="0"/>

element FinishedGeneralEpisode_Structure/EpisodeCharacteristics/LastEpisodeInSpellIndicator
diagram CDS-XML_Schema_Documentation-v6-1-1-2010-12-10_p380.png
namespace http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
type ns:LastEpisodeInSpellIndicator_Type
properties
isRef 0
minOcc 0
maxOcc 1
content simple
facets
Kind Value annotation 
totalDigits 
enumeration 
enumeration 
enumeration 
source <xs:element name="LastEpisodeInSpellIndicator" type="ns:LastEpisodeInSpellIndicator_Type" minOccurs="0"/>

element FinishedGeneralEpisode_Structure/EpisodeCharacteristics/AdminCategoryAtStartOfEpisode
diagram CDS-XML_Schema_Documentation-v6-1-1-2010-12-10_p381.png
namespace http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
type ns:AdministrativeCategory_AtStartOfEpisode_Type
properties
isRef 0
minOcc 0
maxOcc 1
content simple
facets
Kind Value annotation 
totalDigits 
enumeration 01 
enumeration 02 
enumeration 03 
enumeration 04 
enumeration 98 
enumeration 99 
source <xs:element name="AdminCategoryAtStartOfEpisode" type="ns:AdministrativeCategory_AtStartOfEpisode_Type" minOccurs="0"/>

element FinishedGeneralEpisode_Structure/EpisodeCharacteristics/OperationStatus
diagram CDS-XML_Schema_Documentation-v6-1-1-2010-12-10_p382.png
namespace http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
type ns:OperationStatus_Type
properties
isRef 0
minOcc 0
maxOcc 1
content simple
facets
Kind Value annotation 
totalDigits 
enumeration 
enumeration 
enumeration 
source <xs:element name="OperationStatus" type="ns:OperationStatus_Type" minOccurs="0"/>

element FinishedGeneralEpisode_Structure/EpisodeCharacteristics/NeonatalLevelOfCare
diagram CDS-XML_Schema_Documentation-v6-1-1-2010-12-10_p383.png
namespace http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
type ns:NeonatalLevelOfCare_Type
properties
isRef 0
minOcc 0
maxOcc 1
content simple
facets
Kind Value annotation 
maxLength 
enumeration 
enumeration 
enumeration 
enumeration 
enumeration 
enumeration 
source <xs:element name="NeonatalLevelOfCare" type="ns:NeonatalLevelOfCare_Type" minOccurs="0"/>

element FinishedGeneralEpisode_Structure/EpisodeCharacteristics/FirstRegularDayOrNightAdmission
diagram CDS-XML_Schema_Documentation-v6-1-1-2010-12-10_p384.png
namespace http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
type ns:FirstRegularDayOrNightAdmission_Type
properties
isRef 0
minOcc 0
maxOcc 1
content simple
facets
Kind Value annotation 
totalDigits 
enumeration 
enumeration 
source <xs:element name="FirstRegularDayOrNightAdmission" type="ns:FirstRegularDayOrNightAdmission_Type" minOccurs="0"/>

element FinishedGeneralEpisode_Structure/EpisodeCharacteristics/PsychiatricPatientStatus
diagram CDS-XML_Schema_Documentation-v6-1-1-2010-12-10_p385.png
namespace http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
type ns:PsychiatricPatientStatus_Type
properties
isRef 0
minOcc 0
maxOcc 1
content simple
facets
Kind Value annotation 
totalDigits 
enumeration 
enumeration 
enumeration 
enumeration 
enumeration 
source <xs:element name="PsychiatricPatientStatus" type="ns:PsychiatricPatientStatus_Type" minOccurs="0"/>

element FinishedGeneralEpisode_Structure/EpisodeCharacteristics/LegalStatusClassificationCode_AtStartOfEpisode
diagram CDS-XML_Schema_Documentation-v6-1-1-2010-12-10_p386.png
namespace http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
type ns:LegalStatusClassificationCode_AtStartOfEpisode_Type
properties
isRef 0
minOcc 0
maxOcc 1
content simple
facets
Kind Value annotation 
totalDigits 
enumeration 01 
enumeration 02 
enumeration 03 
enumeration 04 
enumeration 05 
enumeration 06 
enumeration 07 
enumeration 08 
enumeration 09 
enumeration 10 
enumeration 12 
enumeration 13 
enumeration 14 
enumeration 15 
enumeration 16 
enumeration 17 
enumeration 18 
enumeration 19 
enumeration 20 
enumeration 31 
enumeration 32 
enumeration 33 
enumeration 34 
enumeration 35 
enumeration 36 
enumeration 98 
enumeration 99 
annotation
documentation
For Psychiatric Patients Only
Not used in CDS Type 160 (Other Delivery)
source <xs:element name="LegalStatusClassificationCode_AtStartOfEpisode" type="ns:LegalStatusClassificationCode_AtStartOfEpisode_Type" minOccurs="0">
 
<xs:annotation>
   
<xs:documentation xml:lang="en">For Psychiatric Patients Only
Not used in CDS Type 160 (Other Delivery)
</xs:documentation>
 
</xs:annotation>
</xs:element>

element FinishedGeneralEpisode_Structure/EpisodeCharacteristics/StartDate_Episode
diagram CDS-XML_Schema_Documentation-v6-1-1-2010-12-10_p387.png
namespace http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
type ns:StartDate_Episode_Type
properties
isRef 0
content simple
annotation
documentation
XML Mandatory if this data structure is used
V6-0:
Start Date_Episode is validated as SUS MANDATORY  and is associated with the mandatory CDS Activity Date.
source <xs:element name="StartDate_Episode" type="ns:StartDate_Episode_Type">
 
<xs:annotation>
   
<xs:documentation xml:lang="en">XML Mandatory if this data structure is used
V6-0:
Start Date_Episode is validated as SUS MANDATORY  and is associated with the mandatory CDS Activity Date.
</xs:documentation>
 
</xs:annotation>
</xs:element>

element FinishedGeneralEpisode_Structure/EpisodeCharacteristics/EndDate_Episode
diagram CDS-XML_Schema_Documentation-v6-1-1-2010-12-10_p388.png
namespace http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
type ns:EndDate_Episode_Type
properties
isRef 0
content simple
annotation
documentation
XML Mandatory if this data structure is used
V6-0:
EndDate_Episode is validated as SUS MANDATORY and is associated with the mandatory CDS Activity Date.
source <xs:element name="EndDate_Episode" type="ns:EndDate_Episode_Type">
 
<xs:annotation>
   
<xs:documentation xml:lang="en">XML Mandatory if this data structure is used
V6-0:
EndDate_Episode is validated as SUS MANDATORY and is associated with the mandatory CDS Activity Date.
</xs:documentation>
 
</xs:annotation>
</xs:element>

element FinishedGeneralEpisode_Structure/EpisodeCharacteristics/AgeAtCDSActivityDate
diagram CDS-XML_Schema_Documentation-v6-1-1-2010-12-10_p389.png
namespace http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
type ns:AgeAtCDSActivityDate_Type
properties
isRef 0
content simple
facets
Kind Value annotation 
totalDigits 
annotation
documentation
XML Mandatory if this data structure is used
V6:0
source <xs:element name="AgeAtCDSActivityDate" type="ns:AgeAtCDSActivityDate_Type">
 
<xs:annotation>
   
<xs:documentation xml:lang="en">XML Mandatory if this data structure is used
V6:0
</xs:documentation>
 
</xs:annotation>
</xs:element>

element FinishedGeneralEpisode_Structure/EpisodeCharacteristics/VeryGeneralPurpose_947
diagram CDS-XML_Schema_Documentation-v6-1-1-2010-12-10_p390.png
namespace http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
type ns:VeryGeneralPurpose_Type
properties
isRef 0
minOcc 0
maxOcc 99
content complex
children ns:PartyIdentifier ns:IdentityNumber ns:FreeText ns:SequenceNumber
source <xs:element name="VeryGeneralPurpose_947" type="ns:VeryGeneralPurpose_Type" minOccurs="0" maxOccurs="99"/>

element FinishedGeneralEpisode_Structure/ServiceAgreementDetails
diagram CDS-XML_Schema_Documentation-v6-1-1-2010-12-10_p391.png
namespace http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
type ns:ServiceAgreementDetails_Structure
properties
isRef 0
minOcc 0
maxOcc 1
content complex
children ns:CommissioningSerialNumber ns:NHSServiceAgreementLineNumber ns:ProviderReferenceNumber ns:CommissionerReferenceNumber ns:OrganisationCode_CodeOfProvider ns:OrganisationCode_CodeOfCommissioner ns:NHSServiceAgreementChangeDate ns:VeryGeneralPurpose_934
source <xs:element name="ServiceAgreementDetails" type="ns:ServiceAgreementDetails_Structure" minOccurs="0"/>

element FinishedGeneralEpisode_Structure/PersonGroup_Consultant
diagram CDS-XML_Schema_Documentation-v6-1-1-2010-12-10_p392.png
namespace http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
type ns:PersonGroupConsultant_Structure
properties
isRef 0
minOcc 0
maxOcc 1
content complex
children ns:ConsultantCode ns:MainSpecialtyCode ns:TreatmentFunctionCode ns:VeryGeneralPurpose_932
source <xs:element name="PersonGroup_Consultant" type="ns:PersonGroupConsultant_Structure" minOccurs="0"/>

element FinishedGeneralEpisode_Structure/ClinicalDiagnosisDetails
diagram CDS-XML_Schema_Documentation-v6-1-1-2010-12-10_p393.png
namespace http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
type ns:ClinicalDiagnosis_Structure
properties
isRef 0
minOcc 0
maxOcc 1
content complex
children ns:ClinicalDiagnosisGroupICD ns:ClinicalDiagnosisGroupREAD ns:ClinicalDiagnosisGroupAAndE
annotation
documentation
V6-0
Standard Data Structures introduced
source <xs:element name="ClinicalDiagnosisDetails" type="ns:ClinicalDiagnosis_Structure" minOccurs="0">
 
<xs:annotation>
   
<xs:documentation>V6-0
Standard Data Structures introduced
</xs:documentation>
 
</xs:annotation>
</xs:element>

element FinishedGeneralEpisode_Structure/ClinicalTreatmentDetails
diagram CDS-XML_Schema_Documentation-v6-1-1-2010-12-10_p394.png
namespace http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
type ns:ClinicalActivity_Structure
properties
isRef 0
minOcc 0
maxOcc 1
content complex
children ns:ClinicalActivityGroupOPCS ns:ClinicalActivityGroupREAD ns:ClinicalTreatmentGroupAandE
annotation
documentation
V6-0
Standard Data Structures introduced
source <xs:element name="ClinicalTreatmentDetails" type="ns:ClinicalActivity_Structure" minOccurs="0">
 
<xs:annotation>
   
<xs:documentation>V6-0
Standard Data Structures introduced
</xs:documentation>
 
</xs:annotation>
</xs:element>

element FinishedGeneralEpisode_Structure/APCLocationGroup
diagram CDS-XML_Schema_Documentation-v6-1-1-2010-12-10_p395.png
namespace http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
type ns:APCLocationGroup_Structure
properties
isRef 0
minOcc 0
maxOcc 1
content complex
children ns:StartOfEpisode ns:WardStay ns:EndOfEpisode
source <xs:element name="APCLocationGroup" type="ns:APCLocationGroup_Structure" minOccurs="0"/>


XML Schema documentation generated by
XMLSpy Schema Editor http://www.altova.com/xmlspy