//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.5448
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

// 
// This source code was auto-generated by xsd, Version=2.0.50727.3038.
// 
namespace Nehta.HL7.CDA {
    using System.Xml.Serialization;
    
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.ClinicalDocument", Namespace="urn:hl7-org:v3")]
    [System.Xml.Serialization.XmlRootAttribute("ClinicalDocument", Namespace="urn:hl7-org:v3", IsNullable=false)]
    public partial class POCD_MT000040ClinicalDocument {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II idField;
        
        private CE codeField;
        
        private ST titleField;
        
        private TS effectiveTimeField;
        
        private CE confidentialityCodeField;
        
        private CS languageCodeField;
        
        private II setIdField;
        
        private INT versionNumberField;
        
        private CE completionCodeField;
        
        private TS copyTimeField;
        
        private POCD_MT000040RecordTarget[] recordTargetField;
        
        private POCD_MT000040Author[] authorField;
        
        private POCD_MT000040DataEnterer dataEntererField;
        
        private POCD_MT000040Informant12[] informantField;
        
        private POCD_MT000040Custodian custodianField;
        
        private POCD_MT000040InformationRecipient[] informationRecipientField;
        
        private POCD_MT000040LegalAuthenticator legalAuthenticatorField;
        
        private POCD_MT000040Authenticator[] authenticatorField;
        
        private POCD_MT000040Participant1[] participantField;
        
        private POCD_MT000040InFulfillmentOf[] inFulfillmentOfField;
        
        private POCD_MT000040DocumentationOf[] documentationOfField;
        
        private POCD_MT000040RelatedDocument[] relatedDocumentField;
        
        private POCD_MT000040Authorization[] authorizationField;
        
        private POCD_MT000040Component1 componentOfField;
        
        private POCD_MT000040Component2 componentField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClassClinicalDocument classCodeField;
        
        private bool classCodeFieldSpecified;
        
        private ActMood moodCodeField;
        
        private bool moodCodeFieldSpecified;
        
        public POCD_MT000040ClinicalDocument() {
            this.classCodeField = ActClassClinicalDocument.DOCCLIN;
            this.moodCodeField = ActMood.EVN;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public II id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public ST title {
            get {
                return this.titleField;
            }
            set {
                this.titleField = value;
            }
        }
        
        /// <remarks/>
        public TS effectiveTime {
            get {
                return this.effectiveTimeField;
            }
            set {
                this.effectiveTimeField = value;
            }
        }
        
        /// <remarks/>
        public CE confidentialityCode {
            get {
                return this.confidentialityCodeField;
            }
            set {
                this.confidentialityCodeField = value;
            }
        }
        
        /// <remarks/>
        public CS languageCode {
            get {
                return this.languageCodeField;
            }
            set {
                this.languageCodeField = value;
            }
        }
        
        /// <remarks/>
        public II setId {
            get {
                return this.setIdField;
            }
            set {
                this.setIdField = value;
            }
        }
        
        /// <remarks/>
        public INT versionNumber {
            get {
                return this.versionNumberField;
            }
            set {
                this.versionNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public CE completionCode {
            get {
                return this.completionCodeField;
            }
            set {
                this.completionCodeField = value;
            }
        }
        
        /// <remarks/>
        public TS copyTime {
            get {
                return this.copyTimeField;
            }
            set {
                this.copyTimeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("recordTarget")]
        public POCD_MT000040RecordTarget[] recordTarget {
            get {
                return this.recordTargetField;
            }
            set {
                this.recordTargetField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("author")]
        public POCD_MT000040Author[] author {
            get {
                return this.authorField;
            }
            set {
                this.authorField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040DataEnterer dataEnterer {
            get {
                return this.dataEntererField;
            }
            set {
                this.dataEntererField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("informant")]
        public POCD_MT000040Informant12[] informant {
            get {
                return this.informantField;
            }
            set {
                this.informantField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Custodian custodian {
            get {
                return this.custodianField;
            }
            set {
                this.custodianField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("informationRecipient")]
        public POCD_MT000040InformationRecipient[] informationRecipient {
            get {
                return this.informationRecipientField;
            }
            set {
                this.informationRecipientField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040LegalAuthenticator legalAuthenticator {
            get {
                return this.legalAuthenticatorField;
            }
            set {
                this.legalAuthenticatorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("authenticator")]
        public POCD_MT000040Authenticator[] authenticator {
            get {
                return this.authenticatorField;
            }
            set {
                this.authenticatorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("participant")]
        public POCD_MT000040Participant1[] participant {
            get {
                return this.participantField;
            }
            set {
                this.participantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("inFulfillmentOf")]
        public POCD_MT000040InFulfillmentOf[] inFulfillmentOf {
            get {
                return this.inFulfillmentOfField;
            }
            set {
                this.inFulfillmentOfField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("documentationOf")]
        public POCD_MT000040DocumentationOf[] documentationOf {
            get {
                return this.documentationOfField;
            }
            set {
                this.documentationOfField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("relatedDocument")]
        public POCD_MT000040RelatedDocument[] relatedDocument {
            get {
                return this.relatedDocumentField;
            }
            set {
                this.relatedDocumentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("authorization")]
        public POCD_MT000040Authorization[] authorization {
            get {
                return this.authorizationField;
            }
            set {
                this.authorizationField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Component1 componentOf {
            get {
                return this.componentOfField;
            }
            set {
                this.componentOfField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Component2 component {
            get {
                return this.componentField;
            }
            set {
                this.componentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActClassClinicalDocument classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool moodCodeSpecified {
            get {
                return this.moodCodeFieldSpecified;
            }
            set {
                this.moodCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class CS : CV {
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PQR))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(CO))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(CS))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class CV : CE {
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(HXIT_CE))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(EIVLevent))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(CV))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PQR))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(CO))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(CS))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    [System.Xml.Serialization.XmlRootAttribute("code", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class CE : CD {
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(BXIT_CD))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_CD))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(CE))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(HXIT_CE))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(EIVLevent))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(CV))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PQR))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(CO))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(CS))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    [System.Xml.Serialization.XmlRootAttribute("methodCode", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class CD : ANY {
        
        private ED originalTextField;
        
        private CR[] qualifierField;
        
        private CD[] translationField;
        
        private string codeField;
        
        private string codeSystemField;
        
        private string codeSystemNameField;
        
        private string codeSystemVersionField;
        
        private string displayNameField;
        
        /// <remarks/>
        public ED originalText {
            get {
                return this.originalTextField;
            }
            set {
                this.originalTextField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("qualifier")]
        public CR[] qualifier {
            get {
                return this.qualifierField;
            }
            set {
                this.qualifierField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("translation")]
        public CD[] translation {
            get {
                return this.translationField;
            }
            set {
                this.translationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="token")]
        public string code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string codeSystem {
            get {
                return this.codeSystemField;
            }
            set {
                this.codeSystemField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string codeSystemName {
            get {
                return this.codeSystemNameField;
            }
            set {
                this.codeSystemNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string codeSystemVersion {
            get {
                return this.codeSystemVersionField;
            }
            set {
                this.codeSystemVersionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string displayName {
            get {
                return this.displayNameField;
            }
            set {
                this.displayNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ST))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ENXP))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ensuffix))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(enprefix))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(engiven))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(enfamily))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(endelimiter))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ADXP))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpprecinct))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxppostBox))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpbuildingNumberSuffix))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryModeIdentifier))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryMode))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryInstallationQualifier))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryInstallationArea))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryInstallationType))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryAddressLine))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcensusTract))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcareOf))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpunitType))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpunitID))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpadditionalLocator))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetNameType))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetNameBase))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetName))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdirection))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxphouseNumberNumeric))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxphouseNumber))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetAddressLine))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxppostalCode))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcity))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcounty))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstate))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcountry))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdelimiter))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SC))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(thumbnail))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class ED : BIN {
        
        private TEL referenceField;
        
        private thumbnail thumbnailField;
        
        private string mediaTypeField;
        
        private string languageField;
        
        private CompressionAlgorithm compressionField;
        
        private bool compressionFieldSpecified;
        
        private byte[] integrityCheckField;
        
        private IntegrityCheckAlgorithm integrityCheckAlgorithmField;
        
        public ED() {
            this.mediaTypeField = "text/plain";
            this.integrityCheckAlgorithmField = IntegrityCheckAlgorithm.SHA1;
        }
        
        /// <remarks/>
        public TEL reference {
            get {
                return this.referenceField;
            }
            set {
                this.referenceField = value;
            }
        }
        
        /// <remarks/>
        public thumbnail thumbnail {
            get {
                return this.thumbnailField;
            }
            set {
                this.thumbnailField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="token")]
        [System.ComponentModel.DefaultValueAttribute("text/plain")]
        public string mediaType {
            get {
                return this.mediaTypeField;
            }
            set {
                this.mediaTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="token")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public CompressionAlgorithm compression {
            get {
                return this.compressionField;
            }
            set {
                this.compressionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool compressionSpecified {
            get {
                return this.compressionFieldSpecified;
            }
            set {
                this.compressionFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="base64Binary")]
        public byte[] integrityCheck {
            get {
                return this.integrityCheckField;
            }
            set {
                this.integrityCheckField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(IntegrityCheckAlgorithm.SHA1)]
        public IntegrityCheckAlgorithm integrityCheckAlgorithm {
            get {
                return this.integrityCheckAlgorithmField;
            }
            set {
                this.integrityCheckAlgorithmField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    [System.Xml.Serialization.XmlRootAttribute("telecom", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class TEL : URL {
        
        private SXCM_TS[] useablePeriodField;
        
        private TelecommunicationAddressUse[] useField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("useablePeriod")]
        public SXCM_TS[] useablePeriod {
            get {
                return this.useablePeriodField;
            }
            set {
                this.useablePeriodField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public TelecommunicationAddressUse[] use {
            get {
                return this.useField;
            }
            set {
                this.useField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXPR_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(EIVL_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PIVL_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_TS))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class SXCM_TS : TS {
        
        private SetOperator operatorField;
        
        public SXCM_TS() {
            this.operatorField = SetOperator.I;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(SetOperator.I)]
        public SetOperator @operator {
            get {
                return this.operatorField;
            }
            set {
                this.operatorField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum SetOperator {
        
        /// <remarks/>
        A,
        
        /// <remarks/>
        H,
        
        /// <remarks/>
        P,
        
        /// <remarks/>
        E,
        
        /// <remarks/>
        I,
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(UVP_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(EIVL_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PIVL_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXPR_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(EIVL_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PIVL_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_TS))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    [System.Xml.Serialization.XmlRootAttribute("deceasedTime", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class TS : QTY {
        
        private string valueField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(RTO_MO_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(RTO_PQ_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(MO))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_MO))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_MO))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_MO))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(REAL))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_REAL))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_REAL))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_REAL))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(INT))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(POCD_MT000040RegionOfInterestvalue))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_INT))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_INT))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_INT))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(RTO_QTY_QTY))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(RTO))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(UVP_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(URG_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(URXB_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(HXIT_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PPD_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_PPD_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_PPD_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_PPD_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(BXIT_IVL_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(UVP_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(EIVL_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PIVL_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXPR_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(EIVL_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PIVL_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_TS))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public abstract partial class QTY : ANY {
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(GLIST_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(GLIST_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SLIST_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SLIST_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(EN))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(TN))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PN))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(AD))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(II))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(typeId))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(POCD_MT000040InfrastructureRoottypeId))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(CR))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(CD))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(BXIT_CD))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_CD))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(CE))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(HXIT_CE))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(EIVLevent))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(CV))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PQR))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(CO))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(CS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(QTY))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(RTO_MO_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(RTO_PQ_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(MO))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_MO))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_MO))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_MO))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(REAL))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_REAL))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_REAL))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_REAL))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(INT))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(POCD_MT000040RegionOfInterestvalue))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_INT))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_INT))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_INT))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(RTO_QTY_QTY))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(RTO))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(UVP_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(URG_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(URXB_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(HXIT_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PPD_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_PPD_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_PPD_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_PPD_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(BXIT_IVL_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(UVP_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(EIVL_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PIVL_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXPR_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(EIVL_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PIVL_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(URL))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(TEL))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(BIN))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ED))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ST))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ENXP))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ensuffix))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(enprefix))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(engiven))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(enfamily))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(endelimiter))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ADXP))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpprecinct))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxppostBox))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpbuildingNumberSuffix))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryModeIdentifier))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryMode))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryInstallationQualifier))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryInstallationArea))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryInstallationType))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryAddressLine))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcensusTract))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcareOf))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpunitType))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpunitID))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpadditionalLocator))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetNameType))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetNameBase))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetName))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdirection))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxphouseNumberNumeric))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxphouseNumber))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetAddressLine))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxppostalCode))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcity))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcounty))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstate))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcountry))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdelimiter))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SC))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(thumbnail))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ANYNonNull))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(BN))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(BL))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public abstract partial class ANY {
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum NullFlavor {
        
        /// <remarks/>
        ASKU,
        
        /// <remarks/>
        DER,
        
        /// <remarks/>
        INV,
        
        /// <remarks/>
        MSK,
        
        /// <remarks/>
        NA,
        
        /// <remarks/>
        NASK,
        
        /// <remarks/>
        NAV,
        
        /// <remarks/>
        NI,
        
        /// <remarks/>
        NINF,
        
        /// <remarks/>
        OTH,
        
        /// <remarks/>
        PINF,
        
        /// <remarks/>
        QS,
        
        /// <remarks/>
        TRC,
        
        /// <remarks/>
        UNC,
        
        /// <remarks/>
        UNK,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    public partial class ParticipantRole {
        
        private II idField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private RoleClass classCodeField;
        
        private bool classCodeFieldSpecified;
        
        /// <remarks/>
        public II id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public RoleClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(typeId))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(POCD_MT000040InfrastructureRoottypeId))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class II : ANY {
        
        private string rootField;
        
        private string extensionField;
        
        private string assigningAuthorityNameField;
        
        private bool displayableField;
        
        private bool displayableFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string root {
            get {
                return this.rootField;
            }
            set {
                this.rootField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string extension {
            get {
                return this.extensionField;
            }
            set {
                this.extensionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string assigningAuthorityName {
            get {
                return this.assigningAuthorityNameField;
            }
            set {
                this.assigningAuthorityNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public bool displayable {
            get {
                return this.displayableField;
            }
            set {
                this.displayableField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool displayableSpecified {
            get {
                return this.displayableFieldSpecified;
            }
            set {
                this.displayableFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    public partial class typeId : II {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.InfrastructureRoot.typeId", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040InfrastructureRoottypeId : II {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum RoleClass {
        
        /// <remarks/>
        ACCESS,
        
        /// <remarks/>
        ACTI,
        
        /// <remarks/>
        ACTIB,
        
        /// <remarks/>
        ACTIM,
        
        /// <remarks/>
        ACTIR,
        
        /// <remarks/>
        ACTM,
        
        /// <remarks/>
        ADMM,
        
        /// <remarks/>
        ADTV,
        
        /// <remarks/>
        AFFL,
        
        /// <remarks/>
        AGNT,
        
        /// <remarks/>
        ALQT,
        
        /// <remarks/>
        ASSIGNED,
        
        /// <remarks/>
        BASE,
        
        /// <remarks/>
        BIRTHPL,
        
        /// <remarks/>
        CAREGIVER,
        
        /// <remarks/>
        CASEBJ,
        
        /// <remarks/>
        CIT,
        
        /// <remarks/>
        CLAIM,
        
        /// <remarks/>
        COLR,
        
        /// <remarks/>
        COMPAR,
        
        /// <remarks/>
        CON,
        
        /// <remarks/>
        CONT,
        
        /// <remarks/>
        COVPTY,
        
        /// <remarks/>
        CRINV,
        
        /// <remarks/>
        CRSPNSR,
        
        /// <remarks/>
        DEATHPLC,
        
        /// <remarks/>
        DEPEN,
        
        /// <remarks/>
        DSDLOC,
        
        /// <remarks/>
        DST,
        
        /// <remarks/>
        ECON,
        
        /// <remarks/>
        EMP,
        
        /// <remarks/>
        EQUIV,
        
        /// <remarks/>
        EXPAGTCAR,
        
        /// <remarks/>
        EXPR,
        
        /// <remarks/>
        EXPVECTOR,
        
        /// <remarks/>
        FLVR,
        
        /// <remarks/>
        FOMITE,
        
        /// <remarks/>
        GEN,
        
        /// <remarks/>
        GRIC,
        
        /// <remarks/>
        GUAR,
        
        /// <remarks/>
        GUARD,
        
        /// <remarks/>
        HLD,
        
        /// <remarks/>
        HLTHCHRT,
        
        /// <remarks/>
        IACT,
        
        /// <remarks/>
        IDENT,
        
        /// <remarks/>
        INDIV,
        
        /// <remarks/>
        INGR,
        
        /// <remarks/>
        INST,
        
        /// <remarks/>
        INVSBJ,
        
        /// <remarks/>
        ISDLOC,
        
        /// <remarks/>
        ISLT,
        
        /// <remarks/>
        LIC,
        
        /// <remarks/>
        LOCE,
        
        /// <remarks/>
        MANU,
        
        /// <remarks/>
        MBR,
        
        /// <remarks/>
        MIL,
        
        /// <remarks/>
        MNT,
        
        /// <remarks/>
        NAMED,
        
        /// <remarks/>
        NOK,
        
        /// <remarks/>
        NOT,
        
        /// <remarks/>
        OWN,
        
        /// <remarks/>
        PART,
        
        /// <remarks/>
        PAT,
        
        /// <remarks/>
        PAYEE,
        
        /// <remarks/>
        PAYOR,
        
        /// <remarks/>
        POLHOLD,
        
        /// <remarks/>
        PROG,
        
        /// <remarks/>
        PROV,
        
        /// <remarks/>
        PRS,
        
        /// <remarks/>
        PRSV,
        
        /// <remarks/>
        QUAL,
        
        /// <remarks/>
        RESBJ,
        
        /// <remarks/>
        RET,
        
        /// <remarks/>
        RGPR,
        
        /// <remarks/>
        ROL,
        
        /// <remarks/>
        SAME,
        
        /// <remarks/>
        SDLOC,
        
        /// <remarks/>
        SGNOFF,
        
        /// <remarks/>
        SPEC,
        
        /// <remarks/>
        SPNSR,
        
        /// <remarks/>
        STBL,
        
        /// <remarks/>
        STD,
        
        /// <remarks/>
        STOR,
        
        /// <remarks/>
        SUBS,
        
        /// <remarks/>
        SUBSCR,
        
        /// <remarks/>
        SUBY,
        
        /// <remarks/>
        TERR,
        
        /// <remarks/>
        THER,
        
        /// <remarks/>
        UNDWRT,
        
        /// <remarks/>
        USED,
        
        /// <remarks/>
        WRTE,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    public partial class Participant {
        
        private ParticipantRole participantRoleField;
        
        private ParticipationType typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        /// <remarks/>
        public ParticipantRole participantRole {
            get {
                return this.participantRoleField;
            }
            set {
                this.participantRoleField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ParticipationType typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum ParticipationType {
        
        /// <remarks/>
        ADM,
        
        /// <remarks/>
        ATND,
        
        /// <remarks/>
        AUT,
        
        /// <remarks/>
        AUTHEN,
        
        /// <remarks/>
        BBY,
        
        /// <remarks/>
        BEN,
        
        /// <remarks/>
        CAGNT,
        
        /// <remarks/>
        CALLBCK,
        
        /// <remarks/>
        CON,
        
        /// <remarks/>
        COV,
        
        /// <remarks/>
        CSM,
        
        /// <remarks/>
        CST,
        
        /// <remarks/>
        DEV,
        
        /// <remarks/>
        DIR,
        
        /// <remarks/>
        DIS,
        
        /// <remarks/>
        DIST,
        
        /// <remarks/>
        DON,
        
        /// <remarks/>
        DST,
        
        /// <remarks/>
        ELOC,
        
        /// <remarks/>
        ENT,
        
        /// <remarks/>
        ESC,
        
        /// <remarks/>
        EXPAGNT,
        
        /// <remarks/>
        EXPART,
        
        /// <remarks/>
        EXPTRGT,
        
        /// <remarks/>
        EXSRC,
        
        /// <remarks/>
        GUAR,
        
        /// <remarks/>
        HLD,
        
        /// <remarks/>
        IND,
        
        /// <remarks/>
        INF,
        
        /// <remarks/>
        IRCP,
        
        /// <remarks/>
        LA,
        
        /// <remarks/>
        LOC,
        
        /// <remarks/>
        NOT,
        
        /// <remarks/>
        NRD,
        
        /// <remarks/>
        ORG,
        
        /// <remarks/>
        PART,
        
        /// <remarks/>
        PPRF,
        
        /// <remarks/>
        PRCP,
        
        /// <remarks/>
        PRD,
        
        /// <remarks/>
        PRF,
        
        /// <remarks/>
        RCT,
        
        /// <remarks/>
        RCV,
        
        /// <remarks/>
        RDV,
        
        /// <remarks/>
        REF,
        
        /// <remarks/>
        REFB,
        
        /// <remarks/>
        REFT,
        
        /// <remarks/>
        RESP,
        
        /// <remarks/>
        RML,
        
        /// <remarks/>
        SBJ,
        
        /// <remarks/>
        SPC,
        
        /// <remarks/>
        SPRF,
        
        /// <remarks/>
        TRANS,
        
        /// <remarks/>
        TRC,
        
        /// <remarks/>
        VIA,
        
        /// <remarks/>
        VRF,
        
        /// <remarks/>
        WIT,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    public partial class Entitlement {
        
        private II idField;
        
        private CD codeField;
        
        private IVL_TS effectiveTimeField;
        
        private Participant[] participantField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private EntityClass classCodeField;
        
        private ActMood moodCodeField;
        
        public Entitlement() {
            this.classCodeField = EntityClass.COV;
            this.moodCodeField = ActMood.EVN;
        }
        
        /// <remarks/>
        public II id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CD code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS effectiveTime {
            get {
                return this.effectiveTimeField;
            }
            set {
                this.effectiveTimeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("participant")]
        public Participant[] participant {
            get {
                return this.participantField;
            }
            set {
                this.participantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class IVL_TS : SXCM_TS {
        
        private QTY[] itemsField;
        
        private ItemsChoiceType3[] itemsElementNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("center", typeof(TS))]
        [System.Xml.Serialization.XmlElementAttribute("high", typeof(IVXB_TS))]
        [System.Xml.Serialization.XmlElementAttribute("low", typeof(IVXB_TS))]
        [System.Xml.Serialization.XmlElementAttribute("width", typeof(PQ))]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public QTY[] Items {
            get {
                return this.itemsField;
            }
            set {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemsChoiceType3[] ItemsElementName {
            get {
                return this.itemsElementNameField;
            }
            set {
                this.itemsElementNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class IVXB_TS : TS {
        
        private bool inclusiveField;
        
        public IVXB_TS() {
            this.inclusiveField = true;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(true)]
        public bool inclusive {
            get {
                return this.inclusiveField;
            }
            set {
                this.inclusiveField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(UVP_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(URG_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(URXB_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(HXIT_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PPD_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_PPD_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_PPD_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_PPD_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(BXIT_IVL_PQ))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class PQ : QTY {
        
        private PQR[] translationField;
        
        private string valueField;
        
        private string unitField;
        
        public PQ() {
            this.unitField = "1";
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("translation")]
        public PQR[] translation {
            get {
                return this.translationField;
            }
            set {
                this.translationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="token")]
        [System.ComponentModel.DefaultValueAttribute("1")]
        public string unit {
            get {
                return this.unitField;
            }
            set {
                this.unitField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class PQR : CV {
        
        private string valueField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(URG_PQ))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class UVP_PQ : PQ {
        
        private float probabilityField;
        
        private bool probabilityFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public float probability {
            get {
                return this.probabilityField;
            }
            set {
                this.probabilityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool probabilitySpecified {
            get {
                return this.probabilityFieldSpecified;
            }
            set {
                this.probabilityFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class URG_PQ : UVP_PQ {
        
        private PQ[] itemsField;
        
        private ItemsChoiceType2[] itemsElementNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("center", typeof(PQ))]
        [System.Xml.Serialization.XmlElementAttribute("high", typeof(URXB_PQ))]
        [System.Xml.Serialization.XmlElementAttribute("low", typeof(URXB_PQ))]
        [System.Xml.Serialization.XmlElementAttribute("width", typeof(PQ))]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public PQ[] Items {
            get {
                return this.itemsField;
            }
            set {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemsChoiceType2[] ItemsElementName {
            get {
                return this.itemsElementNameField;
            }
            set {
                this.itemsElementNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class URXB_PQ : PQ {
        
        private bool inclusiveField;
        
        public URXB_PQ() {
            this.inclusiveField = true;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(true)]
        public bool inclusive {
            get {
                return this.inclusiveField;
            }
            set {
                this.inclusiveField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3", IncludeInSchema=false)]
    public enum ItemsChoiceType2 {
        
        /// <remarks/>
        center,
        
        /// <remarks/>
        high,
        
        /// <remarks/>
        low,
        
        /// <remarks/>
        width,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class HXIT_PQ : PQ {
        
        private IVL_TS validTimeField;
        
        /// <remarks/>
        public IVL_TS validTime {
            get {
                return this.validTimeField;
            }
            set {
                this.validTimeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_PPD_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_PPD_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_PPD_PQ))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class PPD_PQ : PQ {
        
        private PQ standardDeviationField;
        
        private ProbabilityDistributionType distributionTypeField;
        
        private bool distributionTypeFieldSpecified;
        
        /// <remarks/>
        public PQ standardDeviation {
            get {
                return this.standardDeviationField;
            }
            set {
                this.standardDeviationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ProbabilityDistributionType distributionType {
            get {
                return this.distributionTypeField;
            }
            set {
                this.distributionTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool distributionTypeSpecified {
            get {
                return this.distributionTypeFieldSpecified;
            }
            set {
                this.distributionTypeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum ProbabilityDistributionType {
        
        /// <remarks/>
        B,
        
        /// <remarks/>
        E,
        
        /// <remarks/>
        F,
        
        /// <remarks/>
        G,
        
        /// <remarks/>
        LN,
        
        /// <remarks/>
        N,
        
        /// <remarks/>
        T,
        
        /// <remarks/>
        U,
        
        /// <remarks/>
        X2,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class IVXB_PPD_PQ : PPD_PQ {
        
        private bool inclusiveField;
        
        public IVXB_PPD_PQ() {
            this.inclusiveField = true;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(true)]
        public bool inclusive {
            get {
                return this.inclusiveField;
            }
            set {
                this.inclusiveField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_PPD_PQ))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class SXCM_PPD_PQ : PPD_PQ {
        
        private SetOperator operatorField;
        
        public SXCM_PPD_PQ() {
            this.operatorField = SetOperator.I;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(SetOperator.I)]
        public SetOperator @operator {
            get {
                return this.operatorField;
            }
            set {
                this.operatorField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class IVL_PPD_PQ : SXCM_PPD_PQ {
        
        private PPD_PQ[] itemsField;
        
        private ItemsChoiceType1[] itemsElementNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("center", typeof(PPD_PQ))]
        [System.Xml.Serialization.XmlElementAttribute("high", typeof(IVXB_PPD_PQ))]
        [System.Xml.Serialization.XmlElementAttribute("low", typeof(IVXB_PPD_PQ))]
        [System.Xml.Serialization.XmlElementAttribute("width", typeof(PPD_PQ))]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public PPD_PQ[] Items {
            get {
                return this.itemsField;
            }
            set {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemsChoiceType1[] ItemsElementName {
            get {
                return this.itemsElementNameField;
            }
            set {
                this.itemsElementNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3", IncludeInSchema=false)]
    public enum ItemsChoiceType1 {
        
        /// <remarks/>
        center,
        
        /// <remarks/>
        high,
        
        /// <remarks/>
        low,
        
        /// <remarks/>
        width,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class IVXB_PQ : PQ {
        
        private bool inclusiveField;
        
        public IVXB_PQ() {
            this.inclusiveField = true;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(true)]
        public bool inclusive {
            get {
                return this.inclusiveField;
            }
            set {
                this.inclusiveField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_PQ))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(BXIT_IVL_PQ))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class SXCM_PQ : PQ {
        
        private SetOperator operatorField;
        
        public SXCM_PQ() {
            this.operatorField = SetOperator.I;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(SetOperator.I)]
        public SetOperator @operator {
            get {
                return this.operatorField;
            }
            set {
                this.operatorField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(BXIT_IVL_PQ))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class IVL_PQ : SXCM_PQ {
        
        private PQ[] itemsField;
        
        private ItemsChoiceType[] itemsElementNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("center", typeof(PQ))]
        [System.Xml.Serialization.XmlElementAttribute("high", typeof(IVXB_PQ))]
        [System.Xml.Serialization.XmlElementAttribute("low", typeof(IVXB_PQ))]
        [System.Xml.Serialization.XmlElementAttribute("width", typeof(PQ))]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public PQ[] Items {
            get {
                return this.itemsField;
            }
            set {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemsChoiceType[] ItemsElementName {
            get {
                return this.itemsElementNameField;
            }
            set {
                this.itemsElementNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3", IncludeInSchema=false)]
    public enum ItemsChoiceType {
        
        /// <remarks/>
        center,
        
        /// <remarks/>
        high,
        
        /// <remarks/>
        low,
        
        /// <remarks/>
        width,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class BXIT_IVL_PQ : IVL_PQ {
        
        private string qtyField;
        
        public BXIT_IVL_PQ() {
            this.qtyField = "1";
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="integer")]
        [System.ComponentModel.DefaultValueAttribute("1")]
        public string qty {
            get {
                return this.qtyField;
            }
            set {
                this.qtyField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3", IncludeInSchema=false)]
    public enum ItemsChoiceType3 {
        
        /// <remarks/>
        center,
        
        /// <remarks/>
        high,
        
        /// <remarks/>
        low,
        
        /// <remarks/>
        width,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum EntityClass {
        
        /// <remarks/>
        ANM,
        
        /// <remarks/>
        CER,
        
        /// <remarks/>
        CHEM,
        
        /// <remarks/>
        CITY,
        
        /// <remarks/>
        CONT,
        
        /// <remarks/>
        COUNTRY,
        
        /// <remarks/>
        COUNTY,
        
        /// <remarks/>
        DEV,
        
        /// <remarks/>
        ENT,
        
        /// <remarks/>
        FOOD,
        
        /// <remarks/>
        HCE,
        
        /// <remarks/>
        HOLD,
        
        /// <remarks/>
        LIV,
        
        /// <remarks/>
        MAT,
        
        /// <remarks/>
        MIC,
        
        /// <remarks/>
        MMAT,
        
        /// <remarks/>
        MODDV,
        
        /// <remarks/>
        NAT,
        
        /// <remarks/>
        NLIV,
        
        /// <remarks/>
        ORG,
        
        /// <remarks/>
        PLC,
        
        /// <remarks/>
        PLNT,
        
        /// <remarks/>
        PROVINCE,
        
        /// <remarks/>
        PSN,
        
        /// <remarks/>
        PUB,
        
        /// <remarks/>
        RGRP,
        
        /// <remarks/>
        STATE,
        
        /// <remarks/>
        EMP,
        
        /// <remarks/>
        IDENT,
        
        /// <remarks/>
        QUAL,
        
        /// <remarks/>
        COV,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum ActMood {
        
        /// <remarks/>
        APT,
        
        /// <remarks/>
        ARQ,
        
        /// <remarks/>
        CRT,
        
        /// <remarks/>
        DEF,
        
        /// <remarks/>
        EVN,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("EVN.CRT")]
        EVNCRT,
        
        /// <remarks/>
        EXPEC,
        
        /// <remarks/>
        GOL,
        
        /// <remarks/>
        INT,
        
        /// <remarks/>
        OPT,
        
        /// <remarks/>
        PERM,
        
        /// <remarks/>
        PERMRQ,
        
        /// <remarks/>
        PRMS,
        
        /// <remarks/>
        PRP,
        
        /// <remarks/>
        RMD,
        
        /// <remarks/>
        RQO,
        
        /// <remarks/>
        RSK,
        
        /// <remarks/>
        SLOT,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    [System.Xml.Serialization.XmlRootAttribute("coverage2", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class Coverage2 {
        
        private Entitlement entitlementField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private string typeCodeField;
        
        public Coverage2() {
            this.typeCodeField = "COVBY";
        }
        
        /// <remarks/>
        public Entitlement entitlement {
            get {
                return this.entitlementField;
            }
            set {
                this.entitlementField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Component5", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Component5 {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040Section sectionField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActRelationshipHasComponent typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        private bool contextConductionIndField;
        
        private bool contextConductionIndFieldSpecified;
        
        public POCD_MT000040Component5() {
            this.typeCodeField = ActRelationshipHasComponent.COMP;
            this.contextConductionIndField = true;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Section section {
            get {
                return this.sectionField;
            }
            set {
                this.sectionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActRelationshipHasComponent typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public bool contextConductionInd {
            get {
                return this.contextConductionIndField;
            }
            set {
                this.contextConductionIndField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool contextConductionIndSpecified {
            get {
                return this.contextConductionIndFieldSpecified;
            }
            set {
                this.contextConductionIndFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Section", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Section {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II idField;
        
        private CE codeField;
        
        private ST titleField;
        
        private StrucDocText textField;
        
        private CE confidentialityCodeField;
        
        private CS languageCodeField;
        
        private POCD_MT000040Subject subjectField;
        
        private POCD_MT000040Author[] authorField;
        
        private POCD_MT000040Informant12[] informantField;
        
        private POCD_MT000040Entry[] entryField;
        
        private POCD_MT000040Component5[] componentField;
        
        private Coverage2[] coverage2Field;
        
        private string idField1;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClass classCodeField;
        
        private bool classCodeFieldSpecified;
        
        private ActMood moodCodeField;
        
        private bool moodCodeFieldSpecified;
        
        public POCD_MT000040Section() {
            this.classCodeField = ActClass.DOCSECT;
            this.moodCodeField = ActMood.EVN;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public II id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public ST title {
            get {
                return this.titleField;
            }
            set {
                this.titleField = value;
            }
        }
        
        /// <remarks/>
        public StrucDocText text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        public CE confidentialityCode {
            get {
                return this.confidentialityCodeField;
            }
            set {
                this.confidentialityCodeField = value;
            }
        }
        
        /// <remarks/>
        public CS languageCode {
            get {
                return this.languageCodeField;
            }
            set {
                this.languageCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Subject subject {
            get {
                return this.subjectField;
            }
            set {
                this.subjectField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("author")]
        public POCD_MT000040Author[] author {
            get {
                return this.authorField;
            }
            set {
                this.authorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("informant")]
        public POCD_MT000040Informant12[] informant {
            get {
                return this.informantField;
            }
            set {
                this.informantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("entry")]
        public POCD_MT000040Entry[] entry {
            get {
                return this.entryField;
            }
            set {
                this.entryField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("component")]
        public POCD_MT000040Component5[] component {
            get {
                return this.componentField;
            }
            set {
                this.componentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("coverage2", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public Coverage2[] coverage2 {
            get {
                return this.coverage2Field;
            }
            set {
                this.coverage2Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField1;
            }
            set {
                this.idField1 = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool moodCodeSpecified {
            get {
                return this.moodCodeFieldSpecified;
            }
            set {
                this.moodCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ENXP))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ensuffix))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(enprefix))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(engiven))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(enfamily))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(endelimiter))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ADXP))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpprecinct))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxppostBox))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpbuildingNumberSuffix))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryModeIdentifier))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryMode))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryInstallationQualifier))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryInstallationArea))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryInstallationType))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryAddressLine))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcensusTract))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcareOf))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpunitType))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpunitID))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpadditionalLocator))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetNameType))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetNameBase))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetName))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdirection))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxphouseNumberNumeric))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxphouseNumber))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetAddressLine))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxppostalCode))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcity))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcounty))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstate))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcountry))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdelimiter))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SC))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    [System.Xml.Serialization.XmlRootAttribute("desc", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class ST : ED {
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ensuffix))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(enprefix))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(engiven))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(enfamily))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(endelimiter))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class ENXP : ST {
        
        private EntityNamePartType partTypeField;
        
        private bool partTypeFieldSpecified;
        
        private EntityNamePartQualifier[] qualifierField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityNamePartType partType {
            get {
                return this.partTypeField;
            }
            set {
                this.partTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool partTypeSpecified {
            get {
                return this.partTypeFieldSpecified;
            }
            set {
                this.partTypeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityNamePartQualifier[] qualifier {
            get {
                return this.qualifierField;
            }
            set {
                this.qualifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum EntityNamePartType {
        
        /// <remarks/>
        DEL,
        
        /// <remarks/>
        FAM,
        
        /// <remarks/>
        GIV,
        
        /// <remarks/>
        PFX,
        
        /// <remarks/>
        SFX,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum EntityNamePartQualifier {
        
        /// <remarks/>
        AC,
        
        /// <remarks/>
        AD,
        
        /// <remarks/>
        BR,
        
        /// <remarks/>
        CL,
        
        /// <remarks/>
        IN,
        
        /// <remarks/>
        LS,
        
        /// <remarks/>
        NB,
        
        /// <remarks/>
        PR,
        
        /// <remarks/>
        SP,
        
        /// <remarks/>
        TITLE,
        
        /// <remarks/>
        VV,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="en.suffix", Namespace="urn:hl7-org:v3")]
    public partial class ensuffix : ENXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="en.prefix", Namespace="urn:hl7-org:v3")]
    public partial class enprefix : ENXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="en.given", Namespace="urn:hl7-org:v3")]
    public partial class engiven : ENXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="en.family", Namespace="urn:hl7-org:v3")]
    public partial class enfamily : ENXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="en.delimiter", Namespace="urn:hl7-org:v3")]
    public partial class endelimiter : ENXP {
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpprecinct))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxppostBox))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpbuildingNumberSuffix))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryModeIdentifier))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryMode))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryInstallationQualifier))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryInstallationArea))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryInstallationType))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryAddressLine))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcensusTract))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcareOf))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpunitType))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpunitID))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpadditionalLocator))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetNameType))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetNameBase))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetName))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdirection))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxphouseNumberNumeric))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxphouseNumber))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetAddressLine))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxppostalCode))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcity))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcounty))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstate))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcountry))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdelimiter))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class ADXP : ST {
        
        private AddressPartType partTypeField;
        
        private bool partTypeFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public AddressPartType partType {
            get {
                return this.partTypeField;
            }
            set {
                this.partTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool partTypeSpecified {
            get {
                return this.partTypeFieldSpecified;
            }
            set {
                this.partTypeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum AddressPartType {
        
        /// <remarks/>
        ADL,
        
        /// <remarks/>
        BNN,
        
        /// <remarks/>
        BNR,
        
        /// <remarks/>
        BNS,
        
        /// <remarks/>
        CAR,
        
        /// <remarks/>
        CEN,
        
        /// <remarks/>
        CNT,
        
        /// <remarks/>
        CPA,
        
        /// <remarks/>
        CTY,
        
        /// <remarks/>
        DAL,
        
        /// <remarks/>
        DEL,
        
        /// <remarks/>
        DINST,
        
        /// <remarks/>
        DINSTA,
        
        /// <remarks/>
        DINSTQ,
        
        /// <remarks/>
        DIR,
        
        /// <remarks/>
        DMOD,
        
        /// <remarks/>
        DMODID,
        
        /// <remarks/>
        INT,
        
        /// <remarks/>
        POB,
        
        /// <remarks/>
        PRE,
        
        /// <remarks/>
        SAL,
        
        /// <remarks/>
        STA,
        
        /// <remarks/>
        STB,
        
        /// <remarks/>
        STR,
        
        /// <remarks/>
        STTYP,
        
        /// <remarks/>
        UNID,
        
        /// <remarks/>
        UNIT,
        
        /// <remarks/>
        ZIP,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.precinct", Namespace="urn:hl7-org:v3")]
    public partial class adxpprecinct : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.postBox", Namespace="urn:hl7-org:v3")]
    public partial class adxppostBox : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.buildingNumberSuffix", Namespace="urn:hl7-org:v3")]
    public partial class adxpbuildingNumberSuffix : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.deliveryModeIdentifier", Namespace="urn:hl7-org:v3")]
    public partial class adxpdeliveryModeIdentifier : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.deliveryMode", Namespace="urn:hl7-org:v3")]
    public partial class adxpdeliveryMode : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.deliveryInstallationQualifier", Namespace="urn:hl7-org:v3")]
    public partial class adxpdeliveryInstallationQualifier : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.deliveryInstallationArea", Namespace="urn:hl7-org:v3")]
    public partial class adxpdeliveryInstallationArea : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.deliveryInstallationType", Namespace="urn:hl7-org:v3")]
    public partial class adxpdeliveryInstallationType : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.deliveryAddressLine", Namespace="urn:hl7-org:v3")]
    public partial class adxpdeliveryAddressLine : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.censusTract", Namespace="urn:hl7-org:v3")]
    public partial class adxpcensusTract : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.careOf", Namespace="urn:hl7-org:v3")]
    public partial class adxpcareOf : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.unitType", Namespace="urn:hl7-org:v3")]
    public partial class adxpunitType : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.unitID", Namespace="urn:hl7-org:v3")]
    public partial class adxpunitID : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.additionalLocator", Namespace="urn:hl7-org:v3")]
    public partial class adxpadditionalLocator : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.streetNameType", Namespace="urn:hl7-org:v3")]
    public partial class adxpstreetNameType : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.streetNameBase", Namespace="urn:hl7-org:v3")]
    public partial class adxpstreetNameBase : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.streetName", Namespace="urn:hl7-org:v3")]
    public partial class adxpstreetName : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.direction", Namespace="urn:hl7-org:v3")]
    public partial class adxpdirection : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.houseNumberNumeric", Namespace="urn:hl7-org:v3")]
    public partial class adxphouseNumberNumeric : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.houseNumber", Namespace="urn:hl7-org:v3")]
    public partial class adxphouseNumber : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.streetAddressLine", Namespace="urn:hl7-org:v3")]
    public partial class adxpstreetAddressLine : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.postalCode", Namespace="urn:hl7-org:v3")]
    public partial class adxppostalCode : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.city", Namespace="urn:hl7-org:v3")]
    public partial class adxpcity : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.county", Namespace="urn:hl7-org:v3")]
    public partial class adxpcounty : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.state", Namespace="urn:hl7-org:v3")]
    public partial class adxpstate : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.country", Namespace="urn:hl7-org:v3")]
    public partial class adxpcountry : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="adxp.delimiter", Namespace="urn:hl7-org:v3")]
    public partial class adxpdelimiter : ADXP {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class SC : ST {
        
        private string codeField;
        
        private string codeSystemField;
        
        private string codeSystemNameField;
        
        private string codeSystemVersionField;
        
        private string displayNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="token")]
        public string code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string codeSystem {
            get {
                return this.codeSystemField;
            }
            set {
                this.codeSystemField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string codeSystemName {
            get {
                return this.codeSystemNameField;
            }
            set {
                this.codeSystemNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string codeSystemVersion {
            get {
                return this.codeSystemVersionField;
            }
            set {
                this.codeSystemVersionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string displayName {
            get {
                return this.displayNameField;
            }
            set {
                this.displayNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.Text", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocText {
        
        private StrucDocContent[] contentField;
        
        private StrucDocLinkHtml[] linkHtmlField;
        
        private StrucDocSub[] subField;
        
        private StrucDocSup[] supField;
        
        private string[] brField;
        
        private StrucDocFootnote[] footnoteField;
        
        private StrucDocFootnoteRef[] footnoteRefField;
        
        private StrucDocRenderMultiMedia[] renderMultiMediaField;
        
        private StrucDocParagraph[] paragraphField;
        
        private StrucDocList[] listField;
        
        private StrucDocTable[] tableField;
        
        private string[] textField;
        
        private string idField;
        
        private string languageField;
        
        private string styleCodeField;
        
        private string mediaTypeField;
        
        public StrucDocText() {
            this.mediaTypeField = "text/x-hl7-text+xml";
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("content")]
        public StrucDocContent[] content {
            get {
                return this.contentField;
            }
            set {
                this.contentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("linkHtml")]
        public StrucDocLinkHtml[] linkHtml {
            get {
                return this.linkHtmlField;
            }
            set {
                this.linkHtmlField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("sub")]
        public StrucDocSub[] sub {
            get {
                return this.subField;
            }
            set {
                this.subField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("sup")]
        public StrucDocSup[] sup {
            get {
                return this.supField;
            }
            set {
                this.supField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("br")]
        public string[] br {
            get {
                return this.brField;
            }
            set {
                this.brField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("footnote")]
        public StrucDocFootnote[] footnote {
            get {
                return this.footnoteField;
            }
            set {
                this.footnoteField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("footnoteRef")]
        public StrucDocFootnoteRef[] footnoteRef {
            get {
                return this.footnoteRefField;
            }
            set {
                this.footnoteRefField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("renderMultiMedia")]
        public StrucDocRenderMultiMedia[] renderMultiMedia {
            get {
                return this.renderMultiMediaField;
            }
            set {
                this.renderMultiMediaField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("paragraph")]
        public StrucDocParagraph[] paragraph {
            get {
                return this.paragraphField;
            }
            set {
                this.paragraphField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("list")]
        public StrucDocList[] list {
            get {
                return this.listField;
            }
            set {
                this.listField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("table")]
        public StrucDocTable[] table {
            get {
                return this.tableField;
            }
            set {
                this.tableField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKEN")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKENS")]
        public string styleCode {
            get {
                return this.styleCodeField;
            }
            set {
                this.styleCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string mediaType {
            get {
                return this.mediaTypeField;
            }
            set {
                this.mediaTypeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.Content", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocContent {
        
        private StrucDocContent[] contentField;
        
        private StrucDocLinkHtml[] linkHtmlField;
        
        private StrucDocSub[] subField;
        
        private StrucDocSup[] supField;
        
        private string[] brField;
        
        private StrucDocFootnote[] footnoteField;
        
        private StrucDocFootnoteRef[] footnoteRefField;
        
        private StrucDocRenderMultiMedia[] renderMultiMediaField;
        
        private string[] textField;
        
        private string idField;
        
        private string languageField;
        
        private string styleCodeField;
        
        private StrucDocContentRevised revisedField;
        
        private bool revisedFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("content")]
        public StrucDocContent[] content {
            get {
                return this.contentField;
            }
            set {
                this.contentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("linkHtml")]
        public StrucDocLinkHtml[] linkHtml {
            get {
                return this.linkHtmlField;
            }
            set {
                this.linkHtmlField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("sub")]
        public StrucDocSub[] sub {
            get {
                return this.subField;
            }
            set {
                this.subField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("sup")]
        public StrucDocSup[] sup {
            get {
                return this.supField;
            }
            set {
                this.supField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("br")]
        public string[] br {
            get {
                return this.brField;
            }
            set {
                this.brField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("footnote")]
        public StrucDocFootnote[] footnote {
            get {
                return this.footnoteField;
            }
            set {
                this.footnoteField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("footnoteRef")]
        public StrucDocFootnoteRef[] footnoteRef {
            get {
                return this.footnoteRefField;
            }
            set {
                this.footnoteRefField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("renderMultiMedia")]
        public StrucDocRenderMultiMedia[] renderMultiMedia {
            get {
                return this.renderMultiMediaField;
            }
            set {
                this.renderMultiMediaField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKEN")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKENS")]
        public string styleCode {
            get {
                return this.styleCodeField;
            }
            set {
                this.styleCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocContentRevised revised {
            get {
                return this.revisedField;
            }
            set {
                this.revisedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool revisedSpecified {
            get {
                return this.revisedFieldSpecified;
            }
            set {
                this.revisedFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.LinkHtml", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocLinkHtml {
        
        private StrucDocFootnote[] footnoteField;
        
        private StrucDocFootnoteRef[] footnoteRefField;
        
        private string[] textField;
        
        private string nameField;
        
        private string hrefField;
        
        private string relField;
        
        private string revField;
        
        private string titleField;
        
        private string idField;
        
        private string languageField;
        
        private string styleCodeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("footnote")]
        public StrucDocFootnote[] footnote {
            get {
                return this.footnoteField;
            }
            set {
                this.footnoteField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("footnoteRef")]
        public StrucDocFootnoteRef[] footnoteRef {
            get {
                return this.footnoteRefField;
            }
            set {
                this.footnoteRefField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string href {
            get {
                return this.hrefField;
            }
            set {
                this.hrefField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string rel {
            get {
                return this.relField;
            }
            set {
                this.relField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string rev {
            get {
                return this.revField;
            }
            set {
                this.revField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string title {
            get {
                return this.titleField;
            }
            set {
                this.titleField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKEN")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKENS")]
        public string styleCode {
            get {
                return this.styleCodeField;
            }
            set {
                this.styleCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.Footnote", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocFootnote {
        
        private StrucDocContent[] contentField;
        
        private StrucDocLinkHtml[] linkHtmlField;
        
        private StrucDocSub[] subField;
        
        private StrucDocSup[] supField;
        
        private string[] brField;
        
        private StrucDocRenderMultiMedia[] renderMultiMediaField;
        
        private StrucDocParagraph[] paragraphField;
        
        private StrucDocList[] listField;
        
        private StrucDocTable[] tableField;
        
        private string[] textField;
        
        private string idField;
        
        private string languageField;
        
        private string styleCodeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("content")]
        public StrucDocContent[] content {
            get {
                return this.contentField;
            }
            set {
                this.contentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("linkHtml")]
        public StrucDocLinkHtml[] linkHtml {
            get {
                return this.linkHtmlField;
            }
            set {
                this.linkHtmlField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("sub")]
        public StrucDocSub[] sub {
            get {
                return this.subField;
            }
            set {
                this.subField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("sup")]
        public StrucDocSup[] sup {
            get {
                return this.supField;
            }
            set {
                this.supField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("br")]
        public string[] br {
            get {
                return this.brField;
            }
            set {
                this.brField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("renderMultiMedia")]
        public StrucDocRenderMultiMedia[] renderMultiMedia {
            get {
                return this.renderMultiMediaField;
            }
            set {
                this.renderMultiMediaField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("paragraph")]
        public StrucDocParagraph[] paragraph {
            get {
                return this.paragraphField;
            }
            set {
                this.paragraphField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("list")]
        public StrucDocList[] list {
            get {
                return this.listField;
            }
            set {
                this.listField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("table")]
        public StrucDocTable[] table {
            get {
                return this.tableField;
            }
            set {
                this.tableField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKEN")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKENS")]
        public string styleCode {
            get {
                return this.styleCodeField;
            }
            set {
                this.styleCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.Sub", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocSub {
        
        private string[] textField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.Sup", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocSup {
        
        private string[] textField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.RenderMultiMedia", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocRenderMultiMedia {
        
        private StrucDocCaption captionField;
        
        private string referencedObjectField;
        
        private string idField;
        
        private string languageField;
        
        private string styleCodeField;
        
        /// <remarks/>
        public StrucDocCaption caption {
            get {
                return this.captionField;
            }
            set {
                this.captionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="IDREFS")]
        public string referencedObject {
            get {
                return this.referencedObjectField;
            }
            set {
                this.referencedObjectField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKEN")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKENS")]
        public string styleCode {
            get {
                return this.styleCodeField;
            }
            set {
                this.styleCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.Caption", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocCaption {
        
        private StrucDocLinkHtml[] linkHtmlField;
        
        private StrucDocSub[] subField;
        
        private StrucDocSup[] supField;
        
        private StrucDocFootnote[] footnoteField;
        
        private StrucDocFootnoteRef[] footnoteRefField;
        
        private string[] textField;
        
        private string idField;
        
        private string languageField;
        
        private string styleCodeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("linkHtml")]
        public StrucDocLinkHtml[] linkHtml {
            get {
                return this.linkHtmlField;
            }
            set {
                this.linkHtmlField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("sub")]
        public StrucDocSub[] sub {
            get {
                return this.subField;
            }
            set {
                this.subField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("sup")]
        public StrucDocSup[] sup {
            get {
                return this.supField;
            }
            set {
                this.supField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("footnote")]
        public StrucDocFootnote[] footnote {
            get {
                return this.footnoteField;
            }
            set {
                this.footnoteField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("footnoteRef")]
        public StrucDocFootnoteRef[] footnoteRef {
            get {
                return this.footnoteRefField;
            }
            set {
                this.footnoteRefField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKEN")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKENS")]
        public string styleCode {
            get {
                return this.styleCodeField;
            }
            set {
                this.styleCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.FootnoteRef", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocFootnoteRef {
        
        private string idField;
        
        private string languageField;
        
        private string styleCodeField;
        
        private string iDREFField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKEN")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKENS")]
        public string styleCode {
            get {
                return this.styleCodeField;
            }
            set {
                this.styleCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="IDREF")]
        public string IDREF {
            get {
                return this.iDREFField;
            }
            set {
                this.iDREFField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.Paragraph", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocParagraph {
        
        private StrucDocCaption captionField;
        
        private StrucDocContent[] contentField;
        
        private StrucDocLinkHtml[] linkHtmlField;
        
        private StrucDocSub[] subField;
        
        private StrucDocSup[] supField;
        
        private string[] brField;
        
        private StrucDocFootnote[] footnoteField;
        
        private StrucDocFootnoteRef[] footnoteRefField;
        
        private StrucDocRenderMultiMedia[] renderMultiMediaField;
        
        private string[] textField;
        
        private string idField;
        
        private string languageField;
        
        private string styleCodeField;
        
        /// <remarks/>
        public StrucDocCaption caption {
            get {
                return this.captionField;
            }
            set {
                this.captionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("content")]
        public StrucDocContent[] content {
            get {
                return this.contentField;
            }
            set {
                this.contentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("linkHtml")]
        public StrucDocLinkHtml[] linkHtml {
            get {
                return this.linkHtmlField;
            }
            set {
                this.linkHtmlField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("sub")]
        public StrucDocSub[] sub {
            get {
                return this.subField;
            }
            set {
                this.subField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("sup")]
        public StrucDocSup[] sup {
            get {
                return this.supField;
            }
            set {
                this.supField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("br")]
        public string[] br {
            get {
                return this.brField;
            }
            set {
                this.brField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("footnote")]
        public StrucDocFootnote[] footnote {
            get {
                return this.footnoteField;
            }
            set {
                this.footnoteField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("footnoteRef")]
        public StrucDocFootnoteRef[] footnoteRef {
            get {
                return this.footnoteRefField;
            }
            set {
                this.footnoteRefField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("renderMultiMedia")]
        public StrucDocRenderMultiMedia[] renderMultiMedia {
            get {
                return this.renderMultiMediaField;
            }
            set {
                this.renderMultiMediaField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKEN")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKENS")]
        public string styleCode {
            get {
                return this.styleCodeField;
            }
            set {
                this.styleCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.List", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocList {
        
        private StrucDocCaption captionField;
        
        private StrucDocItem[] itemField;
        
        private string idField;
        
        private string languageField;
        
        private string styleCodeField;
        
        private StrucDocListListType listTypeField;
        
        public StrucDocList() {
            this.listTypeField = StrucDocListListType.unordered;
        }
        
        /// <remarks/>
        public StrucDocCaption caption {
            get {
                return this.captionField;
            }
            set {
                this.captionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("item")]
        public StrucDocItem[] item {
            get {
                return this.itemField;
            }
            set {
                this.itemField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKEN")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKENS")]
        public string styleCode {
            get {
                return this.styleCodeField;
            }
            set {
                this.styleCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(StrucDocListListType.unordered)]
        public StrucDocListListType listType {
            get {
                return this.listTypeField;
            }
            set {
                this.listTypeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.Item", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocItem {
        
        private StrucDocCaption captionField;
        
        private StrucDocContent[] contentField;
        
        private StrucDocLinkHtml[] linkHtmlField;
        
        private StrucDocSub[] subField;
        
        private StrucDocSup[] supField;
        
        private string[] brField;
        
        private StrucDocFootnote[] footnoteField;
        
        private StrucDocFootnoteRef[] footnoteRefField;
        
        private StrucDocRenderMultiMedia[] renderMultiMediaField;
        
        private StrucDocParagraph[] paragraphField;
        
        private StrucDocList[] listField;
        
        private StrucDocTable[] tableField;
        
        private string[] textField;
        
        private string idField;
        
        private string languageField;
        
        private string styleCodeField;
        
        /// <remarks/>
        public StrucDocCaption caption {
            get {
                return this.captionField;
            }
            set {
                this.captionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("content")]
        public StrucDocContent[] content {
            get {
                return this.contentField;
            }
            set {
                this.contentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("linkHtml")]
        public StrucDocLinkHtml[] linkHtml {
            get {
                return this.linkHtmlField;
            }
            set {
                this.linkHtmlField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("sub")]
        public StrucDocSub[] sub {
            get {
                return this.subField;
            }
            set {
                this.subField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("sup")]
        public StrucDocSup[] sup {
            get {
                return this.supField;
            }
            set {
                this.supField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("br")]
        public string[] br {
            get {
                return this.brField;
            }
            set {
                this.brField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("footnote")]
        public StrucDocFootnote[] footnote {
            get {
                return this.footnoteField;
            }
            set {
                this.footnoteField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("footnoteRef")]
        public StrucDocFootnoteRef[] footnoteRef {
            get {
                return this.footnoteRefField;
            }
            set {
                this.footnoteRefField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("renderMultiMedia")]
        public StrucDocRenderMultiMedia[] renderMultiMedia {
            get {
                return this.renderMultiMediaField;
            }
            set {
                this.renderMultiMediaField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("paragraph")]
        public StrucDocParagraph[] paragraph {
            get {
                return this.paragraphField;
            }
            set {
                this.paragraphField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("list")]
        public StrucDocList[] list {
            get {
                return this.listField;
            }
            set {
                this.listField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("table")]
        public StrucDocTable[] table {
            get {
                return this.tableField;
            }
            set {
                this.tableField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKEN")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKENS")]
        public string styleCode {
            get {
                return this.styleCodeField;
            }
            set {
                this.styleCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.Table", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocTable {
        
        private StrucDocCaption captionField;
        
        private StrucDocCol[] colField;
        
        private StrucDocColgroup[] colgroupField;
        
        private StrucDocThead theadField;
        
        private StrucDocTfoot tfootField;
        
        private StrucDocTbody[] tbodyField;
        
        private string idField;
        
        private string languageField;
        
        private string styleCodeField;
        
        private string summaryField;
        
        private string widthField;
        
        private string borderField;
        
        private StrucDocTableFrame frameField;
        
        private bool frameFieldSpecified;
        
        private StrucDocTableRules rulesField;
        
        private bool rulesFieldSpecified;
        
        private string cellspacingField;
        
        private string cellpaddingField;
        
        /// <remarks/>
        public StrucDocCaption caption {
            get {
                return this.captionField;
            }
            set {
                this.captionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("col")]
        public StrucDocCol[] col {
            get {
                return this.colField;
            }
            set {
                this.colField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("colgroup")]
        public StrucDocColgroup[] colgroup {
            get {
                return this.colgroupField;
            }
            set {
                this.colgroupField = value;
            }
        }
        
        /// <remarks/>
        public StrucDocThead thead {
            get {
                return this.theadField;
            }
            set {
                this.theadField = value;
            }
        }
        
        /// <remarks/>
        public StrucDocTfoot tfoot {
            get {
                return this.tfootField;
            }
            set {
                this.tfootField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("tbody")]
        public StrucDocTbody[] tbody {
            get {
                return this.tbodyField;
            }
            set {
                this.tbodyField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKEN")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKENS")]
        public string styleCode {
            get {
                return this.styleCodeField;
            }
            set {
                this.styleCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string summary {
            get {
                return this.summaryField;
            }
            set {
                this.summaryField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string width {
            get {
                return this.widthField;
            }
            set {
                this.widthField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string border {
            get {
                return this.borderField;
            }
            set {
                this.borderField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocTableFrame frame {
            get {
                return this.frameField;
            }
            set {
                this.frameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool frameSpecified {
            get {
                return this.frameFieldSpecified;
            }
            set {
                this.frameFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocTableRules rules {
            get {
                return this.rulesField;
            }
            set {
                this.rulesField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool rulesSpecified {
            get {
                return this.rulesFieldSpecified;
            }
            set {
                this.rulesFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string cellspacing {
            get {
                return this.cellspacingField;
            }
            set {
                this.cellspacingField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string cellpadding {
            get {
                return this.cellpaddingField;
            }
            set {
                this.cellpaddingField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.Col", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocCol {
        
        private string idField;
        
        private string languageField;
        
        private string styleCodeField;
        
        private string spanField;
        
        private string widthField;
        
        private StrucDocColAlign alignField;
        
        private bool alignFieldSpecified;
        
        private string charField;
        
        private string charoffField;
        
        private StrucDocColValign valignField;
        
        private bool valignFieldSpecified;
        
        public StrucDocCol() {
            this.spanField = "1";
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKEN")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKENS")]
        public string styleCode {
            get {
                return this.styleCodeField;
            }
            set {
                this.styleCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute("1")]
        public string span {
            get {
                return this.spanField;
            }
            set {
                this.spanField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string width {
            get {
                return this.widthField;
            }
            set {
                this.widthField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocColAlign align {
            get {
                return this.alignField;
            }
            set {
                this.alignField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool alignSpecified {
            get {
                return this.alignFieldSpecified;
            }
            set {
                this.alignFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string @char {
            get {
                return this.charField;
            }
            set {
                this.charField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string charoff {
            get {
                return this.charoffField;
            }
            set {
                this.charoffField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocColValign valign {
            get {
                return this.valignField;
            }
            set {
                this.valignField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool valignSpecified {
            get {
                return this.valignFieldSpecified;
            }
            set {
                this.valignFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocColAlign {
        
        /// <remarks/>
        left,
        
        /// <remarks/>
        center,
        
        /// <remarks/>
        right,
        
        /// <remarks/>
        justify,
        
        /// <remarks/>
        @char,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocColValign {
        
        /// <remarks/>
        top,
        
        /// <remarks/>
        middle,
        
        /// <remarks/>
        bottom,
        
        /// <remarks/>
        baseline,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.Colgroup", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocColgroup {
        
        private StrucDocCol[] colField;
        
        private string idField;
        
        private string languageField;
        
        private string styleCodeField;
        
        private string spanField;
        
        private string widthField;
        
        private StrucDocColgroupAlign alignField;
        
        private bool alignFieldSpecified;
        
        private string charField;
        
        private string charoffField;
        
        private StrucDocColgroupValign valignField;
        
        private bool valignFieldSpecified;
        
        public StrucDocColgroup() {
            this.spanField = "1";
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("col")]
        public StrucDocCol[] col {
            get {
                return this.colField;
            }
            set {
                this.colField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKEN")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKENS")]
        public string styleCode {
            get {
                return this.styleCodeField;
            }
            set {
                this.styleCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute("1")]
        public string span {
            get {
                return this.spanField;
            }
            set {
                this.spanField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string width {
            get {
                return this.widthField;
            }
            set {
                this.widthField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocColgroupAlign align {
            get {
                return this.alignField;
            }
            set {
                this.alignField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool alignSpecified {
            get {
                return this.alignFieldSpecified;
            }
            set {
                this.alignFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string @char {
            get {
                return this.charField;
            }
            set {
                this.charField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string charoff {
            get {
                return this.charoffField;
            }
            set {
                this.charoffField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocColgroupValign valign {
            get {
                return this.valignField;
            }
            set {
                this.valignField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool valignSpecified {
            get {
                return this.valignFieldSpecified;
            }
            set {
                this.valignFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocColgroupAlign {
        
        /// <remarks/>
        left,
        
        /// <remarks/>
        center,
        
        /// <remarks/>
        right,
        
        /// <remarks/>
        justify,
        
        /// <remarks/>
        @char,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocColgroupValign {
        
        /// <remarks/>
        top,
        
        /// <remarks/>
        middle,
        
        /// <remarks/>
        bottom,
        
        /// <remarks/>
        baseline,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.Thead", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocThead {
        
        private StrucDocTr[] trField;
        
        private string idField;
        
        private string languageField;
        
        private string styleCodeField;
        
        private StrucDocTheadAlign alignField;
        
        private bool alignFieldSpecified;
        
        private string charField;
        
        private string charoffField;
        
        private StrucDocTheadValign valignField;
        
        private bool valignFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("tr")]
        public StrucDocTr[] tr {
            get {
                return this.trField;
            }
            set {
                this.trField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKEN")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKENS")]
        public string styleCode {
            get {
                return this.styleCodeField;
            }
            set {
                this.styleCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocTheadAlign align {
            get {
                return this.alignField;
            }
            set {
                this.alignField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool alignSpecified {
            get {
                return this.alignFieldSpecified;
            }
            set {
                this.alignFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string @char {
            get {
                return this.charField;
            }
            set {
                this.charField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string charoff {
            get {
                return this.charoffField;
            }
            set {
                this.charoffField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocTheadValign valign {
            get {
                return this.valignField;
            }
            set {
                this.valignField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool valignSpecified {
            get {
                return this.valignFieldSpecified;
            }
            set {
                this.valignFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.Tr", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocTr {
        
        private StrucDocTh[] thField;
        
        private StrucDocTd[] tdField;
        
        private string idField;
        
        private string languageField;
        
        private string styleCodeField;
        
        private StrucDocTrAlign alignField;
        
        private bool alignFieldSpecified;
        
        private string charField;
        
        private string charoffField;
        
        private StrucDocTrValign valignField;
        
        private bool valignFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("th")]
        public StrucDocTh[] th {
            get {
                return this.thField;
            }
            set {
                this.thField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("td")]
        public StrucDocTd[] td {
            get {
                return this.tdField;
            }
            set {
                this.tdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKEN")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKENS")]
        public string styleCode {
            get {
                return this.styleCodeField;
            }
            set {
                this.styleCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocTrAlign align {
            get {
                return this.alignField;
            }
            set {
                this.alignField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool alignSpecified {
            get {
                return this.alignFieldSpecified;
            }
            set {
                this.alignFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string @char {
            get {
                return this.charField;
            }
            set {
                this.charField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string charoff {
            get {
                return this.charoffField;
            }
            set {
                this.charoffField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocTrValign valign {
            get {
                return this.valignField;
            }
            set {
                this.valignField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool valignSpecified {
            get {
                return this.valignFieldSpecified;
            }
            set {
                this.valignFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.Th", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocTh {
        
        private StrucDocContent[] contentField;
        
        private StrucDocLinkHtml[] linkHtmlField;
        
        private StrucDocSub[] subField;
        
        private StrucDocSup[] supField;
        
        private string[] brField;
        
        private StrucDocFootnote[] footnoteField;
        
        private StrucDocFootnoteRef[] footnoteRefField;
        
        private StrucDocRenderMultiMedia[] renderMultiMediaField;
        
        private string[] textField;
        
        private string idField;
        
        private string languageField;
        
        private string styleCodeField;
        
        private string abbrField;
        
        private string axisField;
        
        private string headersField;
        
        private StrucDocThScope scopeField;
        
        private bool scopeFieldSpecified;
        
        private string rowspanField;
        
        private string colspanField;
        
        private StrucDocThAlign alignField;
        
        private bool alignFieldSpecified;
        
        private string charField;
        
        private string charoffField;
        
        private StrucDocThValign valignField;
        
        private bool valignFieldSpecified;
        
        public StrucDocTh() {
            this.rowspanField = "1";
            this.colspanField = "1";
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("content")]
        public StrucDocContent[] content {
            get {
                return this.contentField;
            }
            set {
                this.contentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("linkHtml")]
        public StrucDocLinkHtml[] linkHtml {
            get {
                return this.linkHtmlField;
            }
            set {
                this.linkHtmlField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("sub")]
        public StrucDocSub[] sub {
            get {
                return this.subField;
            }
            set {
                this.subField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("sup")]
        public StrucDocSup[] sup {
            get {
                return this.supField;
            }
            set {
                this.supField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("br")]
        public string[] br {
            get {
                return this.brField;
            }
            set {
                this.brField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("footnote")]
        public StrucDocFootnote[] footnote {
            get {
                return this.footnoteField;
            }
            set {
                this.footnoteField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("footnoteRef")]
        public StrucDocFootnoteRef[] footnoteRef {
            get {
                return this.footnoteRefField;
            }
            set {
                this.footnoteRefField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("renderMultiMedia")]
        public StrucDocRenderMultiMedia[] renderMultiMedia {
            get {
                return this.renderMultiMediaField;
            }
            set {
                this.renderMultiMediaField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKEN")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKENS")]
        public string styleCode {
            get {
                return this.styleCodeField;
            }
            set {
                this.styleCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string abbr {
            get {
                return this.abbrField;
            }
            set {
                this.abbrField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string axis {
            get {
                return this.axisField;
            }
            set {
                this.axisField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="IDREFS")]
        public string headers {
            get {
                return this.headersField;
            }
            set {
                this.headersField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocThScope scope {
            get {
                return this.scopeField;
            }
            set {
                this.scopeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool scopeSpecified {
            get {
                return this.scopeFieldSpecified;
            }
            set {
                this.scopeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute("1")]
        public string rowspan {
            get {
                return this.rowspanField;
            }
            set {
                this.rowspanField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute("1")]
        public string colspan {
            get {
                return this.colspanField;
            }
            set {
                this.colspanField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocThAlign align {
            get {
                return this.alignField;
            }
            set {
                this.alignField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool alignSpecified {
            get {
                return this.alignFieldSpecified;
            }
            set {
                this.alignFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string @char {
            get {
                return this.charField;
            }
            set {
                this.charField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string charoff {
            get {
                return this.charoffField;
            }
            set {
                this.charoffField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocThValign valign {
            get {
                return this.valignField;
            }
            set {
                this.valignField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool valignSpecified {
            get {
                return this.valignFieldSpecified;
            }
            set {
                this.valignFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocThScope {
        
        /// <remarks/>
        row,
        
        /// <remarks/>
        col,
        
        /// <remarks/>
        rowgroup,
        
        /// <remarks/>
        colgroup,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocThAlign {
        
        /// <remarks/>
        left,
        
        /// <remarks/>
        center,
        
        /// <remarks/>
        right,
        
        /// <remarks/>
        justify,
        
        /// <remarks/>
        @char,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocThValign {
        
        /// <remarks/>
        top,
        
        /// <remarks/>
        middle,
        
        /// <remarks/>
        bottom,
        
        /// <remarks/>
        baseline,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.Td", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocTd {
        
        private StrucDocContent[] contentField;
        
        private StrucDocLinkHtml[] linkHtmlField;
        
        private StrucDocSub[] subField;
        
        private StrucDocSup[] supField;
        
        private string[] brField;
        
        private StrucDocFootnote[] footnoteField;
        
        private StrucDocFootnoteRef[] footnoteRefField;
        
        private StrucDocRenderMultiMedia[] renderMultiMediaField;
        
        private StrucDocParagraph[] paragraphField;
        
        private StrucDocList[] listField;
        
        private string[] textField;
        
        private string idField;
        
        private string languageField;
        
        private string styleCodeField;
        
        private string abbrField;
        
        private string axisField;
        
        private string headersField;
        
        private StrucDocTdScope scopeField;
        
        private bool scopeFieldSpecified;
        
        private string rowspanField;
        
        private string colspanField;
        
        private StrucDocTdAlign alignField;
        
        private bool alignFieldSpecified;
        
        private string charField;
        
        private string charoffField;
        
        private StrucDocTdValign valignField;
        
        private bool valignFieldSpecified;
        
        public StrucDocTd() {
            this.rowspanField = "1";
            this.colspanField = "1";
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("content")]
        public StrucDocContent[] content {
            get {
                return this.contentField;
            }
            set {
                this.contentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("linkHtml")]
        public StrucDocLinkHtml[] linkHtml {
            get {
                return this.linkHtmlField;
            }
            set {
                this.linkHtmlField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("sub")]
        public StrucDocSub[] sub {
            get {
                return this.subField;
            }
            set {
                this.subField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("sup")]
        public StrucDocSup[] sup {
            get {
                return this.supField;
            }
            set {
                this.supField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("br")]
        public string[] br {
            get {
                return this.brField;
            }
            set {
                this.brField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("footnote")]
        public StrucDocFootnote[] footnote {
            get {
                return this.footnoteField;
            }
            set {
                this.footnoteField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("footnoteRef")]
        public StrucDocFootnoteRef[] footnoteRef {
            get {
                return this.footnoteRefField;
            }
            set {
                this.footnoteRefField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("renderMultiMedia")]
        public StrucDocRenderMultiMedia[] renderMultiMedia {
            get {
                return this.renderMultiMediaField;
            }
            set {
                this.renderMultiMediaField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("paragraph")]
        public StrucDocParagraph[] paragraph {
            get {
                return this.paragraphField;
            }
            set {
                this.paragraphField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("list")]
        public StrucDocList[] list {
            get {
                return this.listField;
            }
            set {
                this.listField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKEN")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKENS")]
        public string styleCode {
            get {
                return this.styleCodeField;
            }
            set {
                this.styleCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string abbr {
            get {
                return this.abbrField;
            }
            set {
                this.abbrField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string axis {
            get {
                return this.axisField;
            }
            set {
                this.axisField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="IDREFS")]
        public string headers {
            get {
                return this.headersField;
            }
            set {
                this.headersField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocTdScope scope {
            get {
                return this.scopeField;
            }
            set {
                this.scopeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool scopeSpecified {
            get {
                return this.scopeFieldSpecified;
            }
            set {
                this.scopeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute("1")]
        public string rowspan {
            get {
                return this.rowspanField;
            }
            set {
                this.rowspanField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute("1")]
        public string colspan {
            get {
                return this.colspanField;
            }
            set {
                this.colspanField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocTdAlign align {
            get {
                return this.alignField;
            }
            set {
                this.alignField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool alignSpecified {
            get {
                return this.alignFieldSpecified;
            }
            set {
                this.alignFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string @char {
            get {
                return this.charField;
            }
            set {
                this.charField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string charoff {
            get {
                return this.charoffField;
            }
            set {
                this.charoffField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocTdValign valign {
            get {
                return this.valignField;
            }
            set {
                this.valignField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool valignSpecified {
            get {
                return this.valignFieldSpecified;
            }
            set {
                this.valignFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocTdScope {
        
        /// <remarks/>
        row,
        
        /// <remarks/>
        col,
        
        /// <remarks/>
        rowgroup,
        
        /// <remarks/>
        colgroup,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocTdAlign {
        
        /// <remarks/>
        left,
        
        /// <remarks/>
        center,
        
        /// <remarks/>
        right,
        
        /// <remarks/>
        justify,
        
        /// <remarks/>
        @char,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocTdValign {
        
        /// <remarks/>
        top,
        
        /// <remarks/>
        middle,
        
        /// <remarks/>
        bottom,
        
        /// <remarks/>
        baseline,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocTrAlign {
        
        /// <remarks/>
        left,
        
        /// <remarks/>
        center,
        
        /// <remarks/>
        right,
        
        /// <remarks/>
        justify,
        
        /// <remarks/>
        @char,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocTrValign {
        
        /// <remarks/>
        top,
        
        /// <remarks/>
        middle,
        
        /// <remarks/>
        bottom,
        
        /// <remarks/>
        baseline,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocTheadAlign {
        
        /// <remarks/>
        left,
        
        /// <remarks/>
        center,
        
        /// <remarks/>
        right,
        
        /// <remarks/>
        justify,
        
        /// <remarks/>
        @char,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocTheadValign {
        
        /// <remarks/>
        top,
        
        /// <remarks/>
        middle,
        
        /// <remarks/>
        bottom,
        
        /// <remarks/>
        baseline,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.Tfoot", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocTfoot {
        
        private StrucDocTr[] trField;
        
        private string idField;
        
        private string languageField;
        
        private string styleCodeField;
        
        private StrucDocTfootAlign alignField;
        
        private bool alignFieldSpecified;
        
        private string charField;
        
        private string charoffField;
        
        private StrucDocTfootValign valignField;
        
        private bool valignFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("tr")]
        public StrucDocTr[] tr {
            get {
                return this.trField;
            }
            set {
                this.trField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKEN")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKENS")]
        public string styleCode {
            get {
                return this.styleCodeField;
            }
            set {
                this.styleCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocTfootAlign align {
            get {
                return this.alignField;
            }
            set {
                this.alignField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool alignSpecified {
            get {
                return this.alignFieldSpecified;
            }
            set {
                this.alignFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string @char {
            get {
                return this.charField;
            }
            set {
                this.charField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string charoff {
            get {
                return this.charoffField;
            }
            set {
                this.charoffField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocTfootValign valign {
            get {
                return this.valignField;
            }
            set {
                this.valignField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool valignSpecified {
            get {
                return this.valignFieldSpecified;
            }
            set {
                this.valignFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocTfootAlign {
        
        /// <remarks/>
        left,
        
        /// <remarks/>
        center,
        
        /// <remarks/>
        right,
        
        /// <remarks/>
        justify,
        
        /// <remarks/>
        @char,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocTfootValign {
        
        /// <remarks/>
        top,
        
        /// <remarks/>
        middle,
        
        /// <remarks/>
        bottom,
        
        /// <remarks/>
        baseline,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="StrucDoc.Tbody", Namespace="urn:hl7-org:v3")]
    public partial class StrucDocTbody {
        
        private StrucDocTr[] trField;
        
        private string idField;
        
        private string languageField;
        
        private string styleCodeField;
        
        private StrucDocTbodyAlign alignField;
        
        private bool alignFieldSpecified;
        
        private string charField;
        
        private string charoffField;
        
        private StrucDocTbodyValign valignField;
        
        private bool valignFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("tr")]
        public StrucDocTr[] tr {
            get {
                return this.trField;
            }
            set {
                this.trField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKEN")]
        public string language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="NMTOKENS")]
        public string styleCode {
            get {
                return this.styleCodeField;
            }
            set {
                this.styleCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocTbodyAlign align {
            get {
                return this.alignField;
            }
            set {
                this.alignField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool alignSpecified {
            get {
                return this.alignFieldSpecified;
            }
            set {
                this.alignFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string @char {
            get {
                return this.charField;
            }
            set {
                this.charField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string charoff {
            get {
                return this.charoffField;
            }
            set {
                this.charoffField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public StrucDocTbodyValign valign {
            get {
                return this.valignField;
            }
            set {
                this.valignField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool valignSpecified {
            get {
                return this.valignFieldSpecified;
            }
            set {
                this.valignFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocTbodyAlign {
        
        /// <remarks/>
        left,
        
        /// <remarks/>
        center,
        
        /// <remarks/>
        right,
        
        /// <remarks/>
        justify,
        
        /// <remarks/>
        @char,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocTbodyValign {
        
        /// <remarks/>
        top,
        
        /// <remarks/>
        middle,
        
        /// <remarks/>
        bottom,
        
        /// <remarks/>
        baseline,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocTableFrame {
        
        /// <remarks/>
        @void,
        
        /// <remarks/>
        above,
        
        /// <remarks/>
        below,
        
        /// <remarks/>
        hsides,
        
        /// <remarks/>
        lhs,
        
        /// <remarks/>
        rhs,
        
        /// <remarks/>
        vsides,
        
        /// <remarks/>
        box,
        
        /// <remarks/>
        border,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocTableRules {
        
        /// <remarks/>
        none,
        
        /// <remarks/>
        groups,
        
        /// <remarks/>
        rows,
        
        /// <remarks/>
        cols,
        
        /// <remarks/>
        all,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocListListType {
        
        /// <remarks/>
        ordered,
        
        /// <remarks/>
        unordered,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:hl7-org:v3")]
    public enum StrucDocContentRevised {
        
        /// <remarks/>
        insert,
        
        /// <remarks/>
        delete,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Subject", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Subject {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private CE awarenessCodeField;
        
        private POCD_MT000040RelatedSubject relatedSubjectField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ParticipationTargetSubject typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        private ContextControl contextControlCodeField;
        
        private bool contextControlCodeFieldSpecified;
        
        public POCD_MT000040Subject() {
            this.typeCodeField = ParticipationTargetSubject.SBJ;
            this.contextControlCodeField = ContextControl.OP;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public CE awarenessCode {
            get {
                return this.awarenessCodeField;
            }
            set {
                this.awarenessCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040RelatedSubject relatedSubject {
            get {
                return this.relatedSubjectField;
            }
            set {
                this.relatedSubjectField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ParticipationTargetSubject typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ContextControl contextControlCode {
            get {
                return this.contextControlCodeField;
            }
            set {
                this.contextControlCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool contextControlCodeSpecified {
            get {
                return this.contextControlCodeFieldSpecified;
            }
            set {
                this.contextControlCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.RelatedSubject", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040RelatedSubject {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private CE codeField;
        
        private AD[] addrField;
        
        private TEL[] telecomField;
        
        private POCD_MT000040SubjectPerson subjectField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private x_DocumentSubject classCodeField;
        
        public POCD_MT000040RelatedSubject() {
            this.classCodeField = x_DocumentSubject.PRS;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("addr")]
        public AD[] addr {
            get {
                return this.addrField;
            }
            set {
                this.addrField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("telecom")]
        public TEL[] telecom {
            get {
                return this.telecomField;
            }
            set {
                this.telecomField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040SubjectPerson subject {
            get {
                return this.subjectField;
            }
            set {
                this.subjectField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(x_DocumentSubject.PRS)]
        public x_DocumentSubject classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    [System.Xml.Serialization.XmlRootAttribute("addr", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class AD : ANY {
        
        private adxpdelimiter[] delimiterField;
        
        private adxpcountry[] countryField;
        
        private adxpstate[] stateField;
        
        private adxpcounty[] countyField;
        
        private adxpcity[] cityField;
        
        private adxppostalCode[] postalCodeField;
        
        private adxpstreetAddressLine[] streetAddressLineField;
        
        private adxphouseNumber[] houseNumberField;
        
        private adxphouseNumberNumeric[] houseNumberNumericField;
        
        private adxpdirection[] directionField;
        
        private adxpstreetName[] streetNameField;
        
        private adxpstreetNameBase[] streetNameBaseField;
        
        private adxpstreetNameType[] streetNameTypeField;
        
        private adxpadditionalLocator[] additionalLocatorField;
        
        private adxpunitID[] unitIDField;
        
        private adxpunitType[] unitTypeField;
        
        private adxpcareOf[] careOfField;
        
        private adxpcensusTract[] censusTractField;
        
        private adxpdeliveryAddressLine[] deliveryAddressLineField;
        
        private adxpdeliveryInstallationType[] deliveryInstallationTypeField;
        
        private adxpdeliveryInstallationArea[] deliveryInstallationAreaField;
        
        private adxpdeliveryInstallationQualifier[] deliveryInstallationQualifierField;
        
        private adxpdeliveryMode[] deliveryModeField;
        
        private adxpdeliveryModeIdentifier[] deliveryModeIdentifierField;
        
        private adxpbuildingNumberSuffix[] buildingNumberSuffixField;
        
        private adxppostBox[] postBoxField;
        
        private adxpprecinct[] precinctField;
        
        private SXCM_TS[] useablePeriodField;
        
        private string[] textField;
        
        private PostalAddressUse[] useField;
        
        private bool isNotOrderedField;
        
        private bool isNotOrderedFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("delimiter")]
        public adxpdelimiter[] delimiter {
            get {
                return this.delimiterField;
            }
            set {
                this.delimiterField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("country")]
        public adxpcountry[] country {
            get {
                return this.countryField;
            }
            set {
                this.countryField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("state")]
        public adxpstate[] state {
            get {
                return this.stateField;
            }
            set {
                this.stateField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("county")]
        public adxpcounty[] county {
            get {
                return this.countyField;
            }
            set {
                this.countyField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("city")]
        public adxpcity[] city {
            get {
                return this.cityField;
            }
            set {
                this.cityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("postalCode")]
        public adxppostalCode[] postalCode {
            get {
                return this.postalCodeField;
            }
            set {
                this.postalCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("streetAddressLine")]
        public adxpstreetAddressLine[] streetAddressLine {
            get {
                return this.streetAddressLineField;
            }
            set {
                this.streetAddressLineField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("houseNumber")]
        public adxphouseNumber[] houseNumber {
            get {
                return this.houseNumberField;
            }
            set {
                this.houseNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("houseNumberNumeric")]
        public adxphouseNumberNumeric[] houseNumberNumeric {
            get {
                return this.houseNumberNumericField;
            }
            set {
                this.houseNumberNumericField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("direction")]
        public adxpdirection[] direction {
            get {
                return this.directionField;
            }
            set {
                this.directionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("streetName")]
        public adxpstreetName[] streetName {
            get {
                return this.streetNameField;
            }
            set {
                this.streetNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("streetNameBase")]
        public adxpstreetNameBase[] streetNameBase {
            get {
                return this.streetNameBaseField;
            }
            set {
                this.streetNameBaseField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("streetNameType")]
        public adxpstreetNameType[] streetNameType {
            get {
                return this.streetNameTypeField;
            }
            set {
                this.streetNameTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("additionalLocator")]
        public adxpadditionalLocator[] additionalLocator {
            get {
                return this.additionalLocatorField;
            }
            set {
                this.additionalLocatorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("unitID")]
        public adxpunitID[] unitID {
            get {
                return this.unitIDField;
            }
            set {
                this.unitIDField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("unitType")]
        public adxpunitType[] unitType {
            get {
                return this.unitTypeField;
            }
            set {
                this.unitTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("careOf")]
        public adxpcareOf[] careOf {
            get {
                return this.careOfField;
            }
            set {
                this.careOfField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("censusTract")]
        public adxpcensusTract[] censusTract {
            get {
                return this.censusTractField;
            }
            set {
                this.censusTractField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("deliveryAddressLine")]
        public adxpdeliveryAddressLine[] deliveryAddressLine {
            get {
                return this.deliveryAddressLineField;
            }
            set {
                this.deliveryAddressLineField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("deliveryInstallationType")]
        public adxpdeliveryInstallationType[] deliveryInstallationType {
            get {
                return this.deliveryInstallationTypeField;
            }
            set {
                this.deliveryInstallationTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("deliveryInstallationArea")]
        public adxpdeliveryInstallationArea[] deliveryInstallationArea {
            get {
                return this.deliveryInstallationAreaField;
            }
            set {
                this.deliveryInstallationAreaField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("deliveryInstallationQualifier")]
        public adxpdeliveryInstallationQualifier[] deliveryInstallationQualifier {
            get {
                return this.deliveryInstallationQualifierField;
            }
            set {
                this.deliveryInstallationQualifierField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("deliveryMode")]
        public adxpdeliveryMode[] deliveryMode {
            get {
                return this.deliveryModeField;
            }
            set {
                this.deliveryModeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("deliveryModeIdentifier")]
        public adxpdeliveryModeIdentifier[] deliveryModeIdentifier {
            get {
                return this.deliveryModeIdentifierField;
            }
            set {
                this.deliveryModeIdentifierField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("buildingNumberSuffix")]
        public adxpbuildingNumberSuffix[] buildingNumberSuffix {
            get {
                return this.buildingNumberSuffixField;
            }
            set {
                this.buildingNumberSuffixField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("postBox")]
        public adxppostBox[] postBox {
            get {
                return this.postBoxField;
            }
            set {
                this.postBoxField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("precinct")]
        public adxpprecinct[] precinct {
            get {
                return this.precinctField;
            }
            set {
                this.precinctField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("useablePeriod")]
        public SXCM_TS[] useablePeriod {
            get {
                return this.useablePeriodField;
            }
            set {
                this.useablePeriodField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public PostalAddressUse[] use {
            get {
                return this.useField;
            }
            set {
                this.useField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public bool isNotOrdered {
            get {
                return this.isNotOrderedField;
            }
            set {
                this.isNotOrderedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool isNotOrderedSpecified {
            get {
                return this.isNotOrderedFieldSpecified;
            }
            set {
                this.isNotOrderedFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum PostalAddressUse {
        
        /// <remarks/>
        BAD,
        
        /// <remarks/>
        CONF,
        
        /// <remarks/>
        H,
        
        /// <remarks/>
        HP,
        
        /// <remarks/>
        HV,
        
        /// <remarks/>
        TMP,
        
        /// <remarks/>
        WP,
        
        /// <remarks/>
        DIR,
        
        /// <remarks/>
        PUB,
        
        /// <remarks/>
        PHYS,
        
        /// <remarks/>
        PST,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.SubjectPerson", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040SubjectPerson {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private PN[] nameField;
        
        private CE administrativeGenderCodeField;
        
        private TS birthTimeField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private EntityClass classCodeField;
        
        private bool classCodeFieldSpecified;
        
        private EntityDeterminer determinerCodeField;
        
        private bool determinerCodeFieldSpecified;
        
        public POCD_MT000040SubjectPerson() {
            this.classCodeField = EntityClass.PSN;
            this.determinerCodeField = EntityDeterminer.INSTANCE;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("name")]
        public PN[] name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public CE administrativeGenderCode {
            get {
                return this.administrativeGenderCodeField;
            }
            set {
                this.administrativeGenderCodeField = value;
            }
        }
        
        /// <remarks/>
        public TS birthTime {
            get {
                return this.birthTimeField;
            }
            set {
                this.birthTimeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityDeterminer determinerCode {
            get {
                return this.determinerCodeField;
            }
            set {
                this.determinerCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool determinerCodeSpecified {
            get {
                return this.determinerCodeFieldSpecified;
            }
            set {
                this.determinerCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class PN : EN {
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(TN))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PN))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class EN : ANY {
        
        private endelimiter[] delimiterField;
        
        private enfamily[] familyField;
        
        private engiven[] givenField;
        
        private enprefix[] prefixField;
        
        private ensuffix[] suffixField;
        
        private IVL_TS validTimeField;
        
        private string[] textField;
        
        private EntityNameUse[] useField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("delimiter")]
        public endelimiter[] delimiter {
            get {
                return this.delimiterField;
            }
            set {
                this.delimiterField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("family")]
        public enfamily[] family {
            get {
                return this.familyField;
            }
            set {
                this.familyField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("given")]
        public engiven[] given {
            get {
                return this.givenField;
            }
            set {
                this.givenField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("prefix")]
        public enprefix[] prefix {
            get {
                return this.prefixField;
            }
            set {
                this.prefixField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("suffix")]
        public ensuffix[] suffix {
            get {
                return this.suffixField;
            }
            set {
                this.suffixField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS validTime {
            get {
                return this.validTimeField;
            }
            set {
                this.validTimeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityNameUse[] use {
            get {
                return this.useField;
            }
            set {
                this.useField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum EntityNameUse {
        
        /// <remarks/>
        ABC,
        
        /// <remarks/>
        C,
        
        /// <remarks/>
        IDE,
        
        /// <remarks/>
        L,
        
        /// <remarks/>
        OR,
        
        /// <remarks/>
        SYL,
        
        /// <remarks/>
        A,
        
        /// <remarks/>
        I,
        
        /// <remarks/>
        P,
        
        /// <remarks/>
        R,
        
        /// <remarks/>
        PHON,
        
        /// <remarks/>
        SRCH,
        
        /// <remarks/>
        SNDX,
        
        /// <remarks/>
        T,
        
        /// <remarks/>
        DN,
        
        /// <remarks/>
        M,
        
        /// <remarks/>
        NB,
        
        /// <remarks/>
        UI,
        
        /// <remarks/>
        SP,
        
        /// <remarks/>
        ORGU,
        
        /// <remarks/>
        ORGS,
        
        /// <remarks/>
        ORGB,
        
        /// <remarks/>
        ORGL,
        
        /// <remarks/>
        ORGA,
        
        /// <remarks/>
        ORGE,
        
        /// <remarks/>
        ORGX,
        
        /// <remarks/>
        ORGY,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class TN : EN {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum EntityDeterminer {
        
        /// <remarks/>
        INSTANCE,
        
        /// <remarks/>
        KIND,
        
        /// <remarks/>
        QUANTIFIED_KIND,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum x_DocumentSubject {
        
        /// <remarks/>
        PAT,
        
        /// <remarks/>
        PRS,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum ParticipationTargetSubject {
        
        /// <remarks/>
        SBJ,
        
        /// <remarks/>
        SPC,
        
        /// <remarks/>
        COVBY,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum ContextControl {
        
        /// <remarks/>
        AN,
        
        /// <remarks/>
        AP,
        
        /// <remarks/>
        ON,
        
        /// <remarks/>
        OP,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Author", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Author {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private CE functionCodeField;
        
        private TS timeField;
        
        private POCD_MT000040AssignedAuthor assignedAuthorField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ParticipationType typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        private ContextControl contextControlCodeField;
        
        private bool contextControlCodeFieldSpecified;
        
        public POCD_MT000040Author() {
            this.typeCodeField = ParticipationType.AUT;
            this.contextControlCodeField = ContextControl.OP;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public CE functionCode {
            get {
                return this.functionCodeField;
            }
            set {
                this.functionCodeField = value;
            }
        }
        
        /// <remarks/>
        public TS time {
            get {
                return this.timeField;
            }
            set {
                this.timeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040AssignedAuthor assignedAuthor {
            get {
                return this.assignedAuthorField;
            }
            set {
                this.assignedAuthorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ParticipationType typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ContextControl contextControlCode {
            get {
                return this.contextControlCodeField;
            }
            set {
                this.contextControlCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool contextControlCodeSpecified {
            get {
                return this.contextControlCodeFieldSpecified;
            }
            set {
                this.contextControlCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.AssignedAuthor", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040AssignedAuthor {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CE codeField;
        
        private AD[] addrField;
        
        private TEL[] telecomField;
        
        private POCD_MT000040Person assignedPersonField;
        
        private POCD_MT000040AuthoringDevice assignedAuthoringDeviceField;
        
        private POCD_MT000040Organization representedOrganizationField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private RoleClassAssignedEntity classCodeField;
        
        private bool classCodeFieldSpecified;
        
        public POCD_MT000040AssignedAuthor() {
            this.classCodeField = RoleClassAssignedEntity.ASSIGNED;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("addr")]
        public AD[] addr {
            get {
                return this.addrField;
            }
            set {
                this.addrField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("telecom")]
        public TEL[] telecom {
            get {
                return this.telecomField;
            }
            set {
                this.telecomField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Person assignedPerson {
            get {
                return this.assignedPersonField;
            }
            set {
                this.assignedPersonField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040AuthoringDevice assignedAuthoringDevice {
            get {
                return this.assignedAuthoringDeviceField;
            }
            set {
                this.assignedAuthoringDeviceField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Organization representedOrganization {
            get {
                return this.representedOrganizationField;
            }
            set {
                this.representedOrganizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public RoleClassAssignedEntity classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Person", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Person {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private PN[] nameField;
        
        private CE administrativeGenderCodeField;
        
        private TS birthTimeField;
        
        private EntityIdentifier[] asEntityIdentifierField;
        
        private Employment asEmploymentField;
        
        private Qualifications asQualificationsField;
        
        private PersonalRelationship[] personalRelationshipField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private EntityClass classCodeField;
        
        private bool classCodeFieldSpecified;
        
        private EntityDeterminer determinerCodeField;
        
        private bool determinerCodeFieldSpecified;
        
        public POCD_MT000040Person() {
            this.classCodeField = EntityClass.PSN;
            this.determinerCodeField = EntityDeterminer.INSTANCE;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("name")]
        public PN[] name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public CE administrativeGenderCode {
            get {
                return this.administrativeGenderCodeField;
            }
            set {
                this.administrativeGenderCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public TS birthTime {
            get {
                return this.birthTimeField;
            }
            set {
                this.birthTimeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("asEntityIdentifier", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public EntityIdentifier[] asEntityIdentifier {
            get {
                return this.asEntityIdentifierField;
            }
            set {
                this.asEntityIdentifierField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public Employment asEmployment {
            get {
                return this.asEmploymentField;
            }
            set {
                this.asEmploymentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public Qualifications asQualifications {
            get {
                return this.asQualificationsField;
            }
            set {
                this.asQualificationsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("personalRelationship", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public PersonalRelationship[] personalRelationship {
            get {
                return this.personalRelationshipField;
            }
            set {
                this.personalRelationshipField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityDeterminer determinerCode {
            get {
                return this.determinerCodeField;
            }
            set {
                this.determinerCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool determinerCodeSpecified {
            get {
                return this.determinerCodeFieldSpecified;
            }
            set {
                this.determinerCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    [System.Xml.Serialization.XmlRootAttribute("asEntityIdentifier", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class EntityIdentifier {
        
        private II idField;
        
        private CE codeField;
        
        private GeographicArea assigningGeographicAreaField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private EntityClass classCodeField;
        
        public EntityIdentifier() {
            this.classCodeField = EntityClass.IDENT;
        }
        
        /// <remarks/>
        public II id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public GeographicArea assigningGeographicArea {
            get {
                return this.assigningGeographicAreaField;
            }
            set {
                this.assigningGeographicAreaField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    public partial class GeographicArea {
        
        private ST nameField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private EntityClass classCodeField;
        
        private EntityDeterminer determinerCodeField;
        
        private bool determinerCodeFieldSpecified;
        
        public GeographicArea() {
            this.classCodeField = EntityClass.PLC;
            this.determinerCodeField = EntityDeterminer.INSTANCE;
        }
        
        /// <remarks/>
        public ST name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityDeterminer determinerCode {
            get {
                return this.determinerCodeField;
            }
            set {
                this.determinerCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool determinerCodeSpecified {
            get {
                return this.determinerCodeFieldSpecified;
            }
            set {
                this.determinerCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    [System.Xml.Serialization.XmlRootAttribute("asEmployment", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class Employment {
        
        private CE codeField;
        
        private IVL_TS effectiveTimeField;
        
        private CE jobCodeField;
        
        private CE jobClassCodeField;
        
        private POCD_MT000040Organization employerOrganizationField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private EntityClass classCodeField;
        
        public Employment() {
            this.classCodeField = EntityClass.EMP;
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS effectiveTime {
            get {
                return this.effectiveTimeField;
            }
            set {
                this.effectiveTimeField = value;
            }
        }
        
        /// <remarks/>
        public CE jobCode {
            get {
                return this.jobCodeField;
            }
            set {
                this.jobCodeField = value;
            }
        }
        
        /// <remarks/>
        public CE jobClassCode {
            get {
                return this.jobClassCodeField;
            }
            set {
                this.jobClassCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Organization employerOrganization {
            get {
                return this.employerOrganizationField;
            }
            set {
                this.employerOrganizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Organization", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Organization {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private ON[] nameField;
        
        private TEL[] telecomField;
        
        private AD[] addrField;
        
        private CE standardIndustryClassCodeField;
        
        private POCD_MT000040OrganizationPartOf asOrganizationPartOfField;
        
        private EntityIdentifier[] asEntityIdentifierField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private EntityClassOrganization classCodeField;
        
        private bool classCodeFieldSpecified;
        
        private EntityDeterminer determinerCodeField;
        
        private bool determinerCodeFieldSpecified;
        
        public POCD_MT000040Organization() {
            this.classCodeField = EntityClassOrganization.ORG;
            this.determinerCodeField = EntityDeterminer.INSTANCE;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("name")]
        public ON[] name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("telecom")]
        public TEL[] telecom {
            get {
                return this.telecomField;
            }
            set {
                this.telecomField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("addr")]
        public AD[] addr {
            get {
                return this.addrField;
            }
            set {
                this.addrField = value;
            }
        }
        
        /// <remarks/>
        public CE standardIndustryClassCode {
            get {
                return this.standardIndustryClassCodeField;
            }
            set {
                this.standardIndustryClassCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040OrganizationPartOf asOrganizationPartOf {
            get {
                return this.asOrganizationPartOfField;
            }
            set {
                this.asOrganizationPartOfField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("asEntityIdentifier", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public EntityIdentifier[] asEntityIdentifier {
            get {
                return this.asEntityIdentifierField;
            }
            set {
                this.asEntityIdentifierField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityClassOrganization classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityDeterminer determinerCode {
            get {
                return this.determinerCodeField;
            }
            set {
                this.determinerCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool determinerCodeSpecified {
            get {
                return this.determinerCodeFieldSpecified;
            }
            set {
                this.determinerCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    [System.Xml.Serialization.XmlRootAttribute("name", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class ON {
        
        private endelimiter[] delimiterField;
        
        private enprefix[] prefixField;
        
        private ensuffix[] suffixField;
        
        private IVL_TS validTimeField;
        
        private string[] textField;
        
        private EntityNameUse[] useField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("delimiter")]
        public endelimiter[] delimiter {
            get {
                return this.delimiterField;
            }
            set {
                this.delimiterField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("prefix")]
        public enprefix[] prefix {
            get {
                return this.prefixField;
            }
            set {
                this.prefixField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("suffix")]
        public ensuffix[] suffix {
            get {
                return this.suffixField;
            }
            set {
                this.suffixField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS validTime {
            get {
                return this.validTimeField;
            }
            set {
                this.validTimeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityNameUse[] use {
            get {
                return this.useField;
            }
            set {
                this.useField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.OrganizationPartOf", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040OrganizationPartOf {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CE codeField;
        
        private CS statusCodeField;
        
        private IVL_TS effectiveTimeField;
        
        private POCD_MT000040Organization wholeOrganizationField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private RoleClass classCodeField;
        
        private bool classCodeFieldSpecified;
        
        public POCD_MT000040OrganizationPartOf() {
            this.classCodeField = RoleClass.PART;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public CS statusCode {
            get {
                return this.statusCodeField;
            }
            set {
                this.statusCodeField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS effectiveTime {
            get {
                return this.effectiveTimeField;
            }
            set {
                this.effectiveTimeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Organization wholeOrganization {
            get {
                return this.wholeOrganizationField;
            }
            set {
                this.wholeOrganizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public RoleClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum EntityClassOrganization {
        
        /// <remarks/>
        NAT,
        
        /// <remarks/>
        ORG,
        
        /// <remarks/>
        PUB,
        
        /// <remarks/>
        STATE,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    [System.Xml.Serialization.XmlRootAttribute("asQualifications", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class Qualifications {
        
        private CE codeField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private EntityClass classCodeField;
        
        public Qualifications() {
            this.classCodeField = EntityClass.QUAL;
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    [System.Xml.Serialization.XmlRootAttribute("personalRelationship", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class PersonalRelationship {
        
        private II idField;
        
        private CD codeField;
        
        private AD addrField;
        
        private TEL telecomField;
        
        private CS statusCodeField;
        
        private IVL_TS effectiveTimeField;
        
        private POCD_MT000040Patient asPersonalRelationshipField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private RoleClass classCodeField;
        
        private bool classCodeFieldSpecified;
        
        private bool negationIndField;
        
        private bool negationIndFieldSpecified;
        
        public PersonalRelationship() {
            this.classCodeField = RoleClass.PRS;
        }
        
        /// <remarks/>
        public II id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CD code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public AD addr {
            get {
                return this.addrField;
            }
            set {
                this.addrField = value;
            }
        }
        
        /// <remarks/>
        public TEL telecom {
            get {
                return this.telecomField;
            }
            set {
                this.telecomField = value;
            }
        }
        
        /// <remarks/>
        public CS statusCode {
            get {
                return this.statusCodeField;
            }
            set {
                this.statusCodeField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS effectiveTime {
            get {
                return this.effectiveTimeField;
            }
            set {
                this.effectiveTimeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public POCD_MT000040Patient asPersonalRelationship {
            get {
                return this.asPersonalRelationshipField;
            }
            set {
                this.asPersonalRelationshipField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public RoleClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public bool negationInd {
            get {
                return this.negationIndField;
            }
            set {
                this.negationIndField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool negationIndSpecified {
            get {
                return this.negationIndFieldSpecified;
            }
            set {
                this.negationIndFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Patient", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Patient {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II idField;
        
        private PN[] nameField;
        
        private CE administrativeGenderCodeField;
        
        private TS birthTimeField;
        
        private CE maritalStatusCodeField;
        
        private CE religiousAffiliationCodeField;
        
        private CE raceCodeField;
        
        private CE ethnicGroupCodeField;
        
        private BL multipleBirthIndField;
        
        private INT multipleBirthOrderNumberField;
        
        private BL deceasedIndField;
        
        private TS deceasedTimeField;
        
        private POCD_MT000040Guardian[] guardianField;
        
        private POCD_MT000040Birthplace birthplaceField;
        
        private EntityIdentifier[] asEntityIdentifierField;
        
        private Employment asEmploymentField;
        
        private PersonalRelationship[] personalRelationshipField;
        
        private POCD_MT000040LanguageCommunication[] languageCommunicationField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private EntityClass classCodeField;
        
        private bool classCodeFieldSpecified;
        
        private EntityDeterminer determinerCodeField;
        
        private bool determinerCodeFieldSpecified;
        
        public POCD_MT000040Patient() {
            this.classCodeField = EntityClass.PSN;
            this.determinerCodeField = EntityDeterminer.INSTANCE;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public II id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("name")]
        public PN[] name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public CE administrativeGenderCode {
            get {
                return this.administrativeGenderCodeField;
            }
            set {
                this.administrativeGenderCodeField = value;
            }
        }
        
        /// <remarks/>
        public TS birthTime {
            get {
                return this.birthTimeField;
            }
            set {
                this.birthTimeField = value;
            }
        }
        
        /// <remarks/>
        public CE maritalStatusCode {
            get {
                return this.maritalStatusCodeField;
            }
            set {
                this.maritalStatusCodeField = value;
            }
        }
        
        /// <remarks/>
        public CE religiousAffiliationCode {
            get {
                return this.religiousAffiliationCodeField;
            }
            set {
                this.religiousAffiliationCodeField = value;
            }
        }
        
        /// <remarks/>
        public CE raceCode {
            get {
                return this.raceCodeField;
            }
            set {
                this.raceCodeField = value;
            }
        }
        
        /// <remarks/>
        public CE ethnicGroupCode {
            get {
                return this.ethnicGroupCodeField;
            }
            set {
                this.ethnicGroupCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public BL multipleBirthInd {
            get {
                return this.multipleBirthIndField;
            }
            set {
                this.multipleBirthIndField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public INT multipleBirthOrderNumber {
            get {
                return this.multipleBirthOrderNumberField;
            }
            set {
                this.multipleBirthOrderNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public BL deceasedInd {
            get {
                return this.deceasedIndField;
            }
            set {
                this.deceasedIndField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public TS deceasedTime {
            get {
                return this.deceasedTimeField;
            }
            set {
                this.deceasedTimeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("guardian")]
        public POCD_MT000040Guardian[] guardian {
            get {
                return this.guardianField;
            }
            set {
                this.guardianField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Birthplace birthplace {
            get {
                return this.birthplaceField;
            }
            set {
                this.birthplaceField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("asEntityIdentifier", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public EntityIdentifier[] asEntityIdentifier {
            get {
                return this.asEntityIdentifierField;
            }
            set {
                this.asEntityIdentifierField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public Employment asEmployment {
            get {
                return this.asEmploymentField;
            }
            set {
                this.asEmploymentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("personalRelationship", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public PersonalRelationship[] personalRelationship {
            get {
                return this.personalRelationshipField;
            }
            set {
                this.personalRelationshipField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("languageCommunication")]
        public POCD_MT000040LanguageCommunication[] languageCommunication {
            get {
                return this.languageCommunicationField;
            }
            set {
                this.languageCommunicationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityDeterminer determinerCode {
            get {
                return this.determinerCodeField;
            }
            set {
                this.determinerCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool determinerCodeSpecified {
            get {
                return this.determinerCodeFieldSpecified;
            }
            set {
                this.determinerCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    [System.Xml.Serialization.XmlRootAttribute("deceasedInd", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class BL : ANY {
        
        private bool valueField;
        
        private bool valueFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public bool value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool valueSpecified {
            get {
                return this.valueFieldSpecified;
            }
            set {
                this.valueFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(POCD_MT000040RegionOfInterestvalue))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_INT))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_INT))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_INT))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    [System.Xml.Serialization.XmlRootAttribute("multipleBirthOrderNumber", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class INT : QTY {
        
        private string valueField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="integer")]
        public string value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.RegionOfInterest.value", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040RegionOfInterestvalue : INT {
        
        private bool unsortedField;
        
        public POCD_MT000040RegionOfInterestvalue() {
            this.unsortedField = false;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(false)]
        public bool unsorted {
            get {
                return this.unsortedField;
            }
            set {
                this.unsortedField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class IVXB_INT : INT {
        
        private bool inclusiveField;
        
        public IVXB_INT() {
            this.inclusiveField = true;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(true)]
        public bool inclusive {
            get {
                return this.inclusiveField;
            }
            set {
                this.inclusiveField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_INT))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class SXCM_INT : INT {
        
        private SetOperator operatorField;
        
        public SXCM_INT() {
            this.operatorField = SetOperator.I;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(SetOperator.I)]
        public SetOperator @operator {
            get {
                return this.operatorField;
            }
            set {
                this.operatorField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class IVL_INT : SXCM_INT {
        
        private INT[] itemsField;
        
        private ItemsChoiceType5[] itemsElementNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("center", typeof(INT))]
        [System.Xml.Serialization.XmlElementAttribute("high", typeof(IVXB_INT))]
        [System.Xml.Serialization.XmlElementAttribute("low", typeof(IVXB_INT))]
        [System.Xml.Serialization.XmlElementAttribute("width", typeof(INT))]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public INT[] Items {
            get {
                return this.itemsField;
            }
            set {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemsChoiceType5[] ItemsElementName {
            get {
                return this.itemsElementNameField;
            }
            set {
                this.itemsElementNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3", IncludeInSchema=false)]
    public enum ItemsChoiceType5 {
        
        /// <remarks/>
        center,
        
        /// <remarks/>
        high,
        
        /// <remarks/>
        low,
        
        /// <remarks/>
        width,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Guardian", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Guardian {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CE codeField;
        
        private AD[] addrField;
        
        private TEL[] telecomField;
        
        private POCD_MT000040Person guardianPersonField;
        
        private POCD_MT000040Organization guardianOrganizationField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private RoleClass classCodeField;
        
        private bool classCodeFieldSpecified;
        
        public POCD_MT000040Guardian() {
            this.classCodeField = RoleClass.GUARD;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("addr")]
        public AD[] addr {
            get {
                return this.addrField;
            }
            set {
                this.addrField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("telecom")]
        public TEL[] telecom {
            get {
                return this.telecomField;
            }
            set {
                this.telecomField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Person guardianPerson {
            get {
                return this.guardianPersonField;
            }
            set {
                this.guardianPersonField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Organization guardianOrganization {
            get {
                return this.guardianOrganizationField;
            }
            set {
                this.guardianOrganizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public RoleClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Birthplace", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Birthplace {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040Place placeField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private RoleClass classCodeField;
        
        private bool classCodeFieldSpecified;
        
        public POCD_MT000040Birthplace() {
            this.classCodeField = RoleClass.BIRTHPL;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Place place {
            get {
                return this.placeField;
            }
            set {
                this.placeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public RoleClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Place", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Place {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private EN nameField;
        
        private AD addrField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private EntityClassPlace classCodeField;
        
        private bool classCodeFieldSpecified;
        
        private EntityDeterminer determinerCodeField;
        
        private bool determinerCodeFieldSpecified;
        
        public POCD_MT000040Place() {
            this.classCodeField = EntityClassPlace.PLC;
            this.determinerCodeField = EntityDeterminer.INSTANCE;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public EN name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public AD addr {
            get {
                return this.addrField;
            }
            set {
                this.addrField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityClassPlace classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityDeterminer determinerCode {
            get {
                return this.determinerCodeField;
            }
            set {
                this.determinerCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool determinerCodeSpecified {
            get {
                return this.determinerCodeFieldSpecified;
            }
            set {
                this.determinerCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum EntityClassPlace {
        
        /// <remarks/>
        PLC,
        
        /// <remarks/>
        CITY,
        
        /// <remarks/>
        COUNTRY,
        
        /// <remarks/>
        COUNTY,
        
        /// <remarks/>
        PROVINCE,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.LanguageCommunication", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040LanguageCommunication {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private CS languageCodeField;
        
        private CE modeCodeField;
        
        private CE proficiencyLevelCodeField;
        
        private BL preferenceIndField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public CS languageCode {
            get {
                return this.languageCodeField;
            }
            set {
                this.languageCodeField = value;
            }
        }
        
        /// <remarks/>
        public CE modeCode {
            get {
                return this.modeCodeField;
            }
            set {
                this.modeCodeField = value;
            }
        }
        
        /// <remarks/>
        public CE proficiencyLevelCode {
            get {
                return this.proficiencyLevelCodeField;
            }
            set {
                this.proficiencyLevelCodeField = value;
            }
        }
        
        /// <remarks/>
        public BL preferenceInd {
            get {
                return this.preferenceIndField;
            }
            set {
                this.preferenceIndField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.AuthoringDevice", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040AuthoringDevice {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private CE codeField;
        
        private SC manufacturerModelNameField;
        
        private SC softwareNameField;
        
        private POCD_MT000040MaintainedEntity[] asMaintainedEntityField;
        
        private EntityIdentifier[] asEntityIdentifierField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private EntityClassDevice classCodeField;
        
        private bool classCodeFieldSpecified;
        
        private EntityDeterminer determinerCodeField;
        
        private bool determinerCodeFieldSpecified;
        
        public POCD_MT000040AuthoringDevice() {
            this.classCodeField = EntityClassDevice.DEV;
            this.determinerCodeField = EntityDeterminer.INSTANCE;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public SC manufacturerModelName {
            get {
                return this.manufacturerModelNameField;
            }
            set {
                this.manufacturerModelNameField = value;
            }
        }
        
        /// <remarks/>
        public SC softwareName {
            get {
                return this.softwareNameField;
            }
            set {
                this.softwareNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("asMaintainedEntity")]
        public POCD_MT000040MaintainedEntity[] asMaintainedEntity {
            get {
                return this.asMaintainedEntityField;
            }
            set {
                this.asMaintainedEntityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("asEntityIdentifier", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public EntityIdentifier[] asEntityIdentifier {
            get {
                return this.asEntityIdentifierField;
            }
            set {
                this.asEntityIdentifierField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityClassDevice classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityDeterminer determinerCode {
            get {
                return this.determinerCodeField;
            }
            set {
                this.determinerCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool determinerCodeSpecified {
            get {
                return this.determinerCodeFieldSpecified;
            }
            set {
                this.determinerCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.MaintainedEntity", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040MaintainedEntity {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private IVL_TS effectiveTimeField;
        
        private POCD_MT000040Person maintainingPersonField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private RoleClass classCodeField;
        
        private bool classCodeFieldSpecified;
        
        public POCD_MT000040MaintainedEntity() {
            this.classCodeField = RoleClass.MNT;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS effectiveTime {
            get {
                return this.effectiveTimeField;
            }
            set {
                this.effectiveTimeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Person maintainingPerson {
            get {
                return this.maintainingPersonField;
            }
            set {
                this.maintainingPersonField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public RoleClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum EntityClassDevice {
        
        /// <remarks/>
        DEV,
        
        /// <remarks/>
        CER,
        
        /// <remarks/>
        MODDV,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum RoleClassAssignedEntity {
        
        /// <remarks/>
        ASSIGNED,
        
        /// <remarks/>
        COMPAR,
        
        /// <remarks/>
        CON,
        
        /// <remarks/>
        ECON,
        
        /// <remarks/>
        NOK,
        
        /// <remarks/>
        SGNOFF,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Informant12", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Informant12 {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040AssignedEntity assignedEntityField;
        
        private POCD_MT000040RelatedEntity relatedEntityField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ParticipationType typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        private ContextControl contextControlCodeField;
        
        private bool contextControlCodeFieldSpecified;
        
        public POCD_MT000040Informant12() {
            this.typeCodeField = ParticipationType.INF;
            this.contextControlCodeField = ContextControl.OP;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040AssignedEntity assignedEntity {
            get {
                return this.assignedEntityField;
            }
            set {
                this.assignedEntityField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040RelatedEntity relatedEntity {
            get {
                return this.relatedEntityField;
            }
            set {
                this.relatedEntityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ParticipationType typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ContextControl contextControlCode {
            get {
                return this.contextControlCodeField;
            }
            set {
                this.contextControlCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool contextControlCodeSpecified {
            get {
                return this.contextControlCodeFieldSpecified;
            }
            set {
                this.contextControlCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.AssignedEntity", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040AssignedEntity {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CE codeField;
        
        private AD[] addrField;
        
        private TEL[] telecomField;
        
        private POCD_MT000040Person assignedPersonField;
        
        private POCD_MT000040Organization representedOrganizationField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private RoleClassAssignedEntity classCodeField;
        
        private bool classCodeFieldSpecified;
        
        public POCD_MT000040AssignedEntity() {
            this.classCodeField = RoleClassAssignedEntity.ASSIGNED;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("addr")]
        public AD[] addr {
            get {
                return this.addrField;
            }
            set {
                this.addrField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("telecom")]
        public TEL[] telecom {
            get {
                return this.telecomField;
            }
            set {
                this.telecomField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Person assignedPerson {
            get {
                return this.assignedPersonField;
            }
            set {
                this.assignedPersonField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Organization representedOrganization {
            get {
                return this.representedOrganizationField;
            }
            set {
                this.representedOrganizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public RoleClassAssignedEntity classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.RelatedEntity", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040RelatedEntity {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private CE codeField;
        
        private AD[] addrField;
        
        private TEL[] telecomField;
        
        private IVL_TS effectiveTimeField;
        
        private POCD_MT000040Person relatedPersonField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private RoleClassMutualRelationship classCodeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("addr")]
        public AD[] addr {
            get {
                return this.addrField;
            }
            set {
                this.addrField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("telecom")]
        public TEL[] telecom {
            get {
                return this.telecomField;
            }
            set {
                this.telecomField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS effectiveTime {
            get {
                return this.effectiveTimeField;
            }
            set {
                this.effectiveTimeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Person relatedPerson {
            get {
                return this.relatedPersonField;
            }
            set {
                this.relatedPersonField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public RoleClassMutualRelationship classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum RoleClassMutualRelationship {
        
        /// <remarks/>
        AFFL,
        
        /// <remarks/>
        AGNT,
        
        /// <remarks/>
        ASSIGNED,
        
        /// <remarks/>
        CAREGIVER,
        
        /// <remarks/>
        CASEBJ,
        
        /// <remarks/>
        CIT,
        
        /// <remarks/>
        CLAIM,
        
        /// <remarks/>
        COMPAR,
        
        /// <remarks/>
        CON,
        
        /// <remarks/>
        COVPTY,
        
        /// <remarks/>
        CRINV,
        
        /// <remarks/>
        CRSPNSR,
        
        /// <remarks/>
        DEPEN,
        
        /// <remarks/>
        ECON,
        
        /// <remarks/>
        EMP,
        
        /// <remarks/>
        GUAR,
        
        /// <remarks/>
        GUARD,
        
        /// <remarks/>
        INDIV,
        
        /// <remarks/>
        INVSBJ,
        
        /// <remarks/>
        LIC,
        
        /// <remarks/>
        MIL,
        
        /// <remarks/>
        NAMED,
        
        /// <remarks/>
        NOK,
        
        /// <remarks/>
        NOT,
        
        /// <remarks/>
        PAT,
        
        /// <remarks/>
        PAYEE,
        
        /// <remarks/>
        PAYOR,
        
        /// <remarks/>
        POLHOLD,
        
        /// <remarks/>
        PROG,
        
        /// <remarks/>
        PROV,
        
        /// <remarks/>
        PRS,
        
        /// <remarks/>
        QUAL,
        
        /// <remarks/>
        RESBJ,
        
        /// <remarks/>
        SGNOFF,
        
        /// <remarks/>
        SPNSR,
        
        /// <remarks/>
        STD,
        
        /// <remarks/>
        SUBSCR,
        
        /// <remarks/>
        UNDWRT,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Entry", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Entry {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040Act actField;
        
        private POCD_MT000040Encounter encounterField;
        
        private POCD_MT000040Observation observationField;
        
        private POCD_MT000040ObservationMedia observationMediaField;
        
        private POCD_MT000040Organizer organizerField;
        
        private POCD_MT000040Procedure procedureField;
        
        private POCD_MT000040RegionOfInterest regionOfInterestField;
        
        private POCD_MT000040SubstanceAdministration substanceAdministrationField;
        
        private POCD_MT000040Supply supplyField;
        
        private ControlAct controlActField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private x_ActRelationshipEntry typeCodeField;
        
        private bool contextConductionIndField;
        
        private bool contextConductionIndFieldSpecified;
        
        public POCD_MT000040Entry() {
            this.typeCodeField = x_ActRelationshipEntry.COMP;
            this.contextConductionIndField = true;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Act act {
            get {
                return this.actField;
            }
            set {
                this.actField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Encounter encounter {
            get {
                return this.encounterField;
            }
            set {
                this.encounterField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Observation observation {
            get {
                return this.observationField;
            }
            set {
                this.observationField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040ObservationMedia observationMedia {
            get {
                return this.observationMediaField;
            }
            set {
                this.observationMediaField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Organizer organizer {
            get {
                return this.organizerField;
            }
            set {
                this.organizerField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Procedure procedure {
            get {
                return this.procedureField;
            }
            set {
                this.procedureField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040RegionOfInterest regionOfInterest {
            get {
                return this.regionOfInterestField;
            }
            set {
                this.regionOfInterestField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040SubstanceAdministration substanceAdministration {
            get {
                return this.substanceAdministrationField;
            }
            set {
                this.substanceAdministrationField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Supply supply {
            get {
                return this.supplyField;
            }
            set {
                this.supplyField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public ControlAct controlAct {
            get {
                return this.controlActField;
            }
            set {
                this.controlActField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(x_ActRelationshipEntry.COMP)]
        public x_ActRelationshipEntry typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public bool contextConductionInd {
            get {
                return this.contextConductionIndField;
            }
            set {
                this.contextConductionIndField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool contextConductionIndSpecified {
            get {
                return this.contextConductionIndFieldSpecified;
            }
            set {
                this.contextConductionIndFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Act", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Act {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CD codeField;
        
        private ED textField;
        
        private CS statusCodeField;
        
        private IVL_TS effectiveTimeField;
        
        private CE priorityCodeField;
        
        private CS languageCodeField;
        
        private POCD_MT000040Subject subjectField;
        
        private POCD_MT000040Specimen[] specimenField;
        
        private POCD_MT000040Performer2[] performerField;
        
        private POCD_MT000040Author[] authorField;
        
        private POCD_MT000040Informant12[] informantField;
        
        private POCD_MT000040Participant2[] participantField;
        
        private POCD_MT000040EntryRelationship[] entryRelationshipField;
        
        private POCD_MT000040Reference[] referenceField;
        
        private POCD_MT000040Precondition[] preconditionField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private x_ActClassDocumentEntryAct classCodeField;
        
        private x_DocumentActMood moodCodeField;
        
        private bool negationIndField;
        
        private bool negationIndFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CD code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public ED text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        public CS statusCode {
            get {
                return this.statusCodeField;
            }
            set {
                this.statusCodeField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS effectiveTime {
            get {
                return this.effectiveTimeField;
            }
            set {
                this.effectiveTimeField = value;
            }
        }
        
        /// <remarks/>
        public CE priorityCode {
            get {
                return this.priorityCodeField;
            }
            set {
                this.priorityCodeField = value;
            }
        }
        
        /// <remarks/>
        public CS languageCode {
            get {
                return this.languageCodeField;
            }
            set {
                this.languageCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Subject subject {
            get {
                return this.subjectField;
            }
            set {
                this.subjectField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("specimen")]
        public POCD_MT000040Specimen[] specimen {
            get {
                return this.specimenField;
            }
            set {
                this.specimenField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("performer")]
        public POCD_MT000040Performer2[] performer {
            get {
                return this.performerField;
            }
            set {
                this.performerField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("author")]
        public POCD_MT000040Author[] author {
            get {
                return this.authorField;
            }
            set {
                this.authorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("informant")]
        public POCD_MT000040Informant12[] informant {
            get {
                return this.informantField;
            }
            set {
                this.informantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("participant")]
        public POCD_MT000040Participant2[] participant {
            get {
                return this.participantField;
            }
            set {
                this.participantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("entryRelationship")]
        public POCD_MT000040EntryRelationship[] entryRelationship {
            get {
                return this.entryRelationshipField;
            }
            set {
                this.entryRelationshipField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("reference")]
        public POCD_MT000040Reference[] reference {
            get {
                return this.referenceField;
            }
            set {
                this.referenceField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("precondition")]
        public POCD_MT000040Precondition[] precondition {
            get {
                return this.preconditionField;
            }
            set {
                this.preconditionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public x_ActClassDocumentEntryAct classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public x_DocumentActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public bool negationInd {
            get {
                return this.negationIndField;
            }
            set {
                this.negationIndField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool negationIndSpecified {
            get {
                return this.negationIndFieldSpecified;
            }
            set {
                this.negationIndFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Specimen", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Specimen {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040SpecimenRole specimenRoleField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ParticipationType typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        public POCD_MT000040Specimen() {
            this.typeCodeField = ParticipationType.SPC;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040SpecimenRole specimenRole {
            get {
                return this.specimenRoleField;
            }
            set {
                this.specimenRoleField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ParticipationType typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.SpecimenRole", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040SpecimenRole {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private POCD_MT000040PlayingEntity specimenPlayingEntityField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private RoleClassSpecimen classCodeField;
        
        private bool classCodeFieldSpecified;
        
        public POCD_MT000040SpecimenRole() {
            this.classCodeField = RoleClassSpecimen.SPEC;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040PlayingEntity specimenPlayingEntity {
            get {
                return this.specimenPlayingEntityField;
            }
            set {
                this.specimenPlayingEntityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public RoleClassSpecimen classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.PlayingEntity", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040PlayingEntity {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private CE codeField;
        
        private PQ[] quantityField;
        
        private PN[] nameField;
        
        private ED descField;
        
        private CE administrativeGenderCodeField;
        
        private TS birthTimeField;
        
        private EntityIdentifier[] asEntityIdentifierField;
        
        private SpecimenInContainer asSpecimenInContainerField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private EntityClassRoot classCodeField;
        
        private EntityDeterminer determinerCodeField;
        
        private bool determinerCodeFieldSpecified;
        
        public POCD_MT000040PlayingEntity() {
            this.classCodeField = EntityClassRoot.ENT;
            this.determinerCodeField = EntityDeterminer.INSTANCE;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("quantity")]
        public PQ[] quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("name")]
        public PN[] name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public ED desc {
            get {
                return this.descField;
            }
            set {
                this.descField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public CE administrativeGenderCode {
            get {
                return this.administrativeGenderCodeField;
            }
            set {
                this.administrativeGenderCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public TS birthTime {
            get {
                return this.birthTimeField;
            }
            set {
                this.birthTimeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("asEntityIdentifier", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public EntityIdentifier[] asEntityIdentifier {
            get {
                return this.asEntityIdentifierField;
            }
            set {
                this.asEntityIdentifierField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public SpecimenInContainer asSpecimenInContainer {
            get {
                return this.asSpecimenInContainerField;
            }
            set {
                this.asSpecimenInContainerField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(EntityClassRoot.ENT)]
        public EntityClassRoot classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityDeterminer determinerCode {
            get {
                return this.determinerCodeField;
            }
            set {
                this.determinerCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool determinerCodeSpecified {
            get {
                return this.determinerCodeFieldSpecified;
            }
            set {
                this.determinerCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    [System.Xml.Serialization.XmlRootAttribute("asSpecimenInContainer", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class SpecimenInContainer {
        
        private Container containerField;
        
        private EntityClass classCodeField;
        
        public SpecimenInContainer() {
            this.classCodeField = EntityClass.CONT;
        }
        
        /// <remarks/>
        public Container container {
            get {
                return this.containerField;
            }
            set {
                this.containerField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    public partial class Container {
        
        private II idField;
        
        /// <remarks/>
        public II id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum EntityClassRoot {
        
        /// <remarks/>
        ANM,
        
        /// <remarks/>
        CER,
        
        /// <remarks/>
        CHEM,
        
        /// <remarks/>
        CITY,
        
        /// <remarks/>
        CONT,
        
        /// <remarks/>
        COUNTRY,
        
        /// <remarks/>
        COUNTY,
        
        /// <remarks/>
        DEV,
        
        /// <remarks/>
        ENT,
        
        /// <remarks/>
        FOOD,
        
        /// <remarks/>
        HCE,
        
        /// <remarks/>
        HOLD,
        
        /// <remarks/>
        LIV,
        
        /// <remarks/>
        MAT,
        
        /// <remarks/>
        MIC,
        
        /// <remarks/>
        MMAT,
        
        /// <remarks/>
        MODDV,
        
        /// <remarks/>
        NAT,
        
        /// <remarks/>
        NLIV,
        
        /// <remarks/>
        ORG,
        
        /// <remarks/>
        PLC,
        
        /// <remarks/>
        PLNT,
        
        /// <remarks/>
        PROVINCE,
        
        /// <remarks/>
        PSN,
        
        /// <remarks/>
        PUB,
        
        /// <remarks/>
        RGRP,
        
        /// <remarks/>
        STATE,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum RoleClassSpecimen {
        
        /// <remarks/>
        SPEC,
        
        /// <remarks/>
        ALQT,
        
        /// <remarks/>
        ISLT,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Performer2", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Performer2 {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private IVL_TS timeField;
        
        private CE modeCodeField;
        
        private POCD_MT000040AssignedEntity assignedEntityField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ParticipationPhysicalPerformer typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        public POCD_MT000040Performer2() {
            this.typeCodeField = ParticipationPhysicalPerformer.PRF;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS time {
            get {
                return this.timeField;
            }
            set {
                this.timeField = value;
            }
        }
        
        /// <remarks/>
        public CE modeCode {
            get {
                return this.modeCodeField;
            }
            set {
                this.modeCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040AssignedEntity assignedEntity {
            get {
                return this.assignedEntityField;
            }
            set {
                this.assignedEntityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ParticipationPhysicalPerformer typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum ParticipationPhysicalPerformer {
        
        /// <remarks/>
        PRF,
        
        /// <remarks/>
        DIST,
        
        /// <remarks/>
        PPRF,
        
        /// <remarks/>
        SPRF,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Participant2", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Participant2 {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private IVL_TS timeField;
        
        private CE awarenessCodeField;
        
        private POCD_MT000040ParticipantRole participantRoleField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ParticipationType typeCodeField;
        
        private ContextControl contextControlCodeField;
        
        private bool contextControlCodeFieldSpecified;
        
        public POCD_MT000040Participant2() {
            this.contextControlCodeField = ContextControl.OP;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS time {
            get {
                return this.timeField;
            }
            set {
                this.timeField = value;
            }
        }
        
        /// <remarks/>
        public CE awarenessCode {
            get {
                return this.awarenessCodeField;
            }
            set {
                this.awarenessCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040ParticipantRole participantRole {
            get {
                return this.participantRoleField;
            }
            set {
                this.participantRoleField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ParticipationType typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ContextControl contextControlCode {
            get {
                return this.contextControlCodeField;
            }
            set {
                this.contextControlCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool contextControlCodeSpecified {
            get {
                return this.contextControlCodeFieldSpecified;
            }
            set {
                this.contextControlCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.ParticipantRole", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040ParticipantRole {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CE codeField;
        
        private AD[] addrField;
        
        private TEL[] telecomField;
        
        private POCD_MT000040Device playingDeviceField;
        
        private POCD_MT000040PlayingEntity playingEntityField;
        
        private POCD_MT000040Entity scopingEntityField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private RoleClassRoot classCodeField;
        
        public POCD_MT000040ParticipantRole() {
            this.classCodeField = RoleClassRoot.ROL;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("addr")]
        public AD[] addr {
            get {
                return this.addrField;
            }
            set {
                this.addrField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("telecom")]
        public TEL[] telecom {
            get {
                return this.telecomField;
            }
            set {
                this.telecomField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Device playingDevice {
            get {
                return this.playingDeviceField;
            }
            set {
                this.playingDeviceField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040PlayingEntity playingEntity {
            get {
                return this.playingEntityField;
            }
            set {
                this.playingEntityField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Entity scopingEntity {
            get {
                return this.scopingEntityField;
            }
            set {
                this.scopingEntityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(RoleClassRoot.ROL)]
        public RoleClassRoot classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Device", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Device {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private CE codeField;
        
        private SC manufacturerModelNameField;
        
        private SC softwareNameField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private EntityClassDevice classCodeField;
        
        private EntityDeterminer determinerCodeField;
        
        private bool determinerCodeFieldSpecified;
        
        public POCD_MT000040Device() {
            this.classCodeField = EntityClassDevice.DEV;
            this.determinerCodeField = EntityDeterminer.INSTANCE;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public SC manufacturerModelName {
            get {
                return this.manufacturerModelNameField;
            }
            set {
                this.manufacturerModelNameField = value;
            }
        }
        
        /// <remarks/>
        public SC softwareName {
            get {
                return this.softwareNameField;
            }
            set {
                this.softwareNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(EntityClassDevice.DEV)]
        public EntityClassDevice classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityDeterminer determinerCode {
            get {
                return this.determinerCodeField;
            }
            set {
                this.determinerCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool determinerCodeSpecified {
            get {
                return this.determinerCodeFieldSpecified;
            }
            set {
                this.determinerCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Entity", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Entity {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CE codeField;
        
        private ON[] nameField;
        
        private ED descField;
        
        private TEL[] telecomField;
        
        private AD[] addrField;
        
        private OrganizationPartOf asOrganizationPartOfField;
        
        private EntityIdentifier[] asEntityIdentifierField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private EntityClassRoot classCodeField;
        
        private EntityDeterminer determinerCodeField;
        
        private bool determinerCodeFieldSpecified;
        
        public POCD_MT000040Entity() {
            this.classCodeField = EntityClassRoot.ENT;
            this.determinerCodeField = EntityDeterminer.INSTANCE;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("name", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public ON[] name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public ED desc {
            get {
                return this.descField;
            }
            set {
                this.descField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("telecom", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public TEL[] telecom {
            get {
                return this.telecomField;
            }
            set {
                this.telecomField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("addr", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public AD[] addr {
            get {
                return this.addrField;
            }
            set {
                this.addrField = value;
            }
        }
        
        /// <remarks/>
        public OrganizationPartOf asOrganizationPartOf {
            get {
                return this.asOrganizationPartOfField;
            }
            set {
                this.asOrganizationPartOfField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("asEntityIdentifier", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public EntityIdentifier[] asEntityIdentifier {
            get {
                return this.asEntityIdentifierField;
            }
            set {
                this.asEntityIdentifierField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(EntityClassRoot.ENT)]
        public EntityClassRoot classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityDeterminer determinerCode {
            get {
                return this.determinerCodeField;
            }
            set {
                this.determinerCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool determinerCodeSpecified {
            get {
                return this.determinerCodeFieldSpecified;
            }
            set {
                this.determinerCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    [System.Xml.Serialization.XmlRootAttribute("asOrganizationPartOf", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class OrganizationPartOf {
        
        private CS[] realmCodeField;
        
        private typeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CE codeField;
        
        private CS statusCodeField;
        
        private IVL_TS effectiveTimeField;
        
        private Entity wholeEntityField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private RoleClass classCodeField;
        
        private bool classCodeFieldSpecified;
        
        public OrganizationPartOf() {
            this.classCodeField = RoleClass.PART;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public typeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public CS statusCode {
            get {
                return this.statusCodeField;
            }
            set {
                this.statusCodeField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS effectiveTime {
            get {
                return this.effectiveTimeField;
            }
            set {
                this.effectiveTimeField = value;
            }
        }
        
        /// <remarks/>
        public Entity wholeEntity {
            get {
                return this.wholeEntityField;
            }
            set {
                this.wholeEntityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public RoleClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    public partial class Entity {
        
        private CS[] realmCodeField;
        
        private typeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CE codeField;
        
        private ON[] nameField;
        
        private ED descField;
        
        private TEL[] telecomField;
        
        private AD[] addrField;
        
        private OrganizationPartOf asOrganizationPartOfField;
        
        private EntityIdentifier[] asEntityIdentifierField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private EntityClassRoot classCodeField;
        
        private EntityDeterminer determinerCodeField;
        
        private bool determinerCodeFieldSpecified;
        
        public Entity() {
            this.classCodeField = EntityClassRoot.ENT;
            this.determinerCodeField = EntityDeterminer.INSTANCE;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public typeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("name")]
        public ON[] name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public ED desc {
            get {
                return this.descField;
            }
            set {
                this.descField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("telecom")]
        public TEL[] telecom {
            get {
                return this.telecomField;
            }
            set {
                this.telecomField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("addr")]
        public AD[] addr {
            get {
                return this.addrField;
            }
            set {
                this.addrField = value;
            }
        }
        
        /// <remarks/>
        public OrganizationPartOf asOrganizationPartOf {
            get {
                return this.asOrganizationPartOfField;
            }
            set {
                this.asOrganizationPartOfField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("asEntityIdentifier")]
        public EntityIdentifier[] asEntityIdentifier {
            get {
                return this.asEntityIdentifierField;
            }
            set {
                this.asEntityIdentifierField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(EntityClassRoot.ENT)]
        public EntityClassRoot classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityDeterminer determinerCode {
            get {
                return this.determinerCodeField;
            }
            set {
                this.determinerCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool determinerCodeSpecified {
            get {
                return this.determinerCodeFieldSpecified;
            }
            set {
                this.determinerCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum RoleClassRoot {
        
        /// <remarks/>
        ACCESS,
        
        /// <remarks/>
        ACTI,
        
        /// <remarks/>
        ACTIB,
        
        /// <remarks/>
        ACTIM,
        
        /// <remarks/>
        ACTIR,
        
        /// <remarks/>
        ACTM,
        
        /// <remarks/>
        ADMM,
        
        /// <remarks/>
        ADTV,
        
        /// <remarks/>
        AFFL,
        
        /// <remarks/>
        AGNT,
        
        /// <remarks/>
        ALQT,
        
        /// <remarks/>
        ASSIGNED,
        
        /// <remarks/>
        BASE,
        
        /// <remarks/>
        BIRTHPL,
        
        /// <remarks/>
        CAREGIVER,
        
        /// <remarks/>
        CASEBJ,
        
        /// <remarks/>
        CIT,
        
        /// <remarks/>
        CLAIM,
        
        /// <remarks/>
        COLR,
        
        /// <remarks/>
        COMPAR,
        
        /// <remarks/>
        CON,
        
        /// <remarks/>
        CONT,
        
        /// <remarks/>
        COVPTY,
        
        /// <remarks/>
        CRINV,
        
        /// <remarks/>
        CRSPNSR,
        
        /// <remarks/>
        DEATHPLC,
        
        /// <remarks/>
        DEPEN,
        
        /// <remarks/>
        DSDLOC,
        
        /// <remarks/>
        DST,
        
        /// <remarks/>
        ECON,
        
        /// <remarks/>
        EMP,
        
        /// <remarks/>
        EQUIV,
        
        /// <remarks/>
        EXPAGTCAR,
        
        /// <remarks/>
        EXPR,
        
        /// <remarks/>
        EXPVECTOR,
        
        /// <remarks/>
        FLVR,
        
        /// <remarks/>
        FOMITE,
        
        /// <remarks/>
        GEN,
        
        /// <remarks/>
        GRIC,
        
        /// <remarks/>
        GUAR,
        
        /// <remarks/>
        GUARD,
        
        /// <remarks/>
        HLD,
        
        /// <remarks/>
        HLTHCHRT,
        
        /// <remarks/>
        IACT,
        
        /// <remarks/>
        IDENT,
        
        /// <remarks/>
        INDIV,
        
        /// <remarks/>
        INGR,
        
        /// <remarks/>
        INST,
        
        /// <remarks/>
        INVSBJ,
        
        /// <remarks/>
        ISDLOC,
        
        /// <remarks/>
        ISLT,
        
        /// <remarks/>
        LIC,
        
        /// <remarks/>
        LOCE,
        
        /// <remarks/>
        MANU,
        
        /// <remarks/>
        MBR,
        
        /// <remarks/>
        MIL,
        
        /// <remarks/>
        MNT,
        
        /// <remarks/>
        NAMED,
        
        /// <remarks/>
        NOK,
        
        /// <remarks/>
        NOT,
        
        /// <remarks/>
        OWN,
        
        /// <remarks/>
        PART,
        
        /// <remarks/>
        PAT,
        
        /// <remarks/>
        PAYEE,
        
        /// <remarks/>
        PAYOR,
        
        /// <remarks/>
        POLHOLD,
        
        /// <remarks/>
        PROG,
        
        /// <remarks/>
        PROV,
        
        /// <remarks/>
        PRS,
        
        /// <remarks/>
        PRSV,
        
        /// <remarks/>
        QUAL,
        
        /// <remarks/>
        RESBJ,
        
        /// <remarks/>
        RET,
        
        /// <remarks/>
        RGPR,
        
        /// <remarks/>
        ROL,
        
        /// <remarks/>
        SAME,
        
        /// <remarks/>
        SDLOC,
        
        /// <remarks/>
        SGNOFF,
        
        /// <remarks/>
        SPEC,
        
        /// <remarks/>
        SPNSR,
        
        /// <remarks/>
        STBL,
        
        /// <remarks/>
        STD,
        
        /// <remarks/>
        STOR,
        
        /// <remarks/>
        SUBS,
        
        /// <remarks/>
        SUBSCR,
        
        /// <remarks/>
        SUBY,
        
        /// <remarks/>
        TERR,
        
        /// <remarks/>
        THER,
        
        /// <remarks/>
        UNDWRT,
        
        /// <remarks/>
        USED,
        
        /// <remarks/>
        WRTE,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.EntryRelationship", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040EntryRelationship {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private INT sequenceNumberField;
        
        private BL seperatableIndField;
        
        private POCD_MT000040Act actField;
        
        private POCD_MT000040Encounter encounterField;
        
        private POCD_MT000040Observation observationField;
        
        private POCD_MT000040ObservationMedia observationMediaField;
        
        private POCD_MT000040Organizer organizerField;
        
        private POCD_MT000040Procedure procedureField;
        
        private POCD_MT000040RegionOfInterest regionOfInterestField;
        
        private POCD_MT000040SubstanceAdministration substanceAdministrationField;
        
        private POCD_MT000040Supply supplyField;
        
        private ControlAct controlActField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private x_ActRelationshipEntryRelationship typeCodeField;
        
        private bool inversionIndField;
        
        private bool inversionIndFieldSpecified;
        
        private bool contextConductionIndField;
        
        private bool negationIndField;
        
        private bool negationIndFieldSpecified;
        
        public POCD_MT000040EntryRelationship() {
            this.contextConductionIndField = true;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public INT sequenceNumber {
            get {
                return this.sequenceNumberField;
            }
            set {
                this.sequenceNumberField = value;
            }
        }
        
        /// <remarks/>
        public BL seperatableInd {
            get {
                return this.seperatableIndField;
            }
            set {
                this.seperatableIndField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Act act {
            get {
                return this.actField;
            }
            set {
                this.actField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Encounter encounter {
            get {
                return this.encounterField;
            }
            set {
                this.encounterField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Observation observation {
            get {
                return this.observationField;
            }
            set {
                this.observationField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040ObservationMedia observationMedia {
            get {
                return this.observationMediaField;
            }
            set {
                this.observationMediaField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Organizer organizer {
            get {
                return this.organizerField;
            }
            set {
                this.organizerField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Procedure procedure {
            get {
                return this.procedureField;
            }
            set {
                this.procedureField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040RegionOfInterest regionOfInterest {
            get {
                return this.regionOfInterestField;
            }
            set {
                this.regionOfInterestField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040SubstanceAdministration substanceAdministration {
            get {
                return this.substanceAdministrationField;
            }
            set {
                this.substanceAdministrationField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Supply supply {
            get {
                return this.supplyField;
            }
            set {
                this.supplyField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public ControlAct controlAct {
            get {
                return this.controlActField;
            }
            set {
                this.controlActField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public x_ActRelationshipEntryRelationship typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public bool inversionInd {
            get {
                return this.inversionIndField;
            }
            set {
                this.inversionIndField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool inversionIndSpecified {
            get {
                return this.inversionIndFieldSpecified;
            }
            set {
                this.inversionIndFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(true)]
        public bool contextConductionInd {
            get {
                return this.contextConductionIndField;
            }
            set {
                this.contextConductionIndField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public bool negationInd {
            get {
                return this.negationIndField;
            }
            set {
                this.negationIndField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool negationIndSpecified {
            get {
                return this.negationIndFieldSpecified;
            }
            set {
                this.negationIndFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Encounter", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Encounter {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CD codeField;
        
        private ED textField;
        
        private CS statusCodeField;
        
        private IVL_TS effectiveTimeField;
        
        private CE priorityCodeField;
        
        private POCD_MT000040Subject subjectField;
        
        private POCD_MT000040Specimen[] specimenField;
        
        private POCD_MT000040Performer2[] performerField;
        
        private POCD_MT000040Author[] authorField;
        
        private POCD_MT000040Informant12[] informantField;
        
        private POCD_MT000040Participant2[] participantField;
        
        private POCD_MT000040EntryRelationship[] entryRelationshipField;
        
        private POCD_MT000040Reference[] referenceField;
        
        private POCD_MT000040Precondition[] preconditionField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClass classCodeField;
        
        private x_DocumentEncounterMood moodCodeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CD code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public ED text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        public CS statusCode {
            get {
                return this.statusCodeField;
            }
            set {
                this.statusCodeField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS effectiveTime {
            get {
                return this.effectiveTimeField;
            }
            set {
                this.effectiveTimeField = value;
            }
        }
        
        /// <remarks/>
        public CE priorityCode {
            get {
                return this.priorityCodeField;
            }
            set {
                this.priorityCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Subject subject {
            get {
                return this.subjectField;
            }
            set {
                this.subjectField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("specimen")]
        public POCD_MT000040Specimen[] specimen {
            get {
                return this.specimenField;
            }
            set {
                this.specimenField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("performer")]
        public POCD_MT000040Performer2[] performer {
            get {
                return this.performerField;
            }
            set {
                this.performerField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("author")]
        public POCD_MT000040Author[] author {
            get {
                return this.authorField;
            }
            set {
                this.authorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("informant")]
        public POCD_MT000040Informant12[] informant {
            get {
                return this.informantField;
            }
            set {
                this.informantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("participant")]
        public POCD_MT000040Participant2[] participant {
            get {
                return this.participantField;
            }
            set {
                this.participantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("entryRelationship")]
        public POCD_MT000040EntryRelationship[] entryRelationship {
            get {
                return this.entryRelationshipField;
            }
            set {
                this.entryRelationshipField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("reference")]
        public POCD_MT000040Reference[] reference {
            get {
                return this.referenceField;
            }
            set {
                this.referenceField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("precondition")]
        public POCD_MT000040Precondition[] precondition {
            get {
                return this.preconditionField;
            }
            set {
                this.preconditionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public x_DocumentEncounterMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Reference", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Reference {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private BL seperatableIndField;
        
        private POCD_MT000040ExternalAct externalActField;
        
        private POCD_MT000040ExternalObservation externalObservationField;
        
        private POCD_MT000040ExternalProcedure externalProcedureField;
        
        private POCD_MT000040ExternalDocument externalDocumentField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private x_ActRelationshipExternalReference typeCodeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public BL seperatableInd {
            get {
                return this.seperatableIndField;
            }
            set {
                this.seperatableIndField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040ExternalAct externalAct {
            get {
                return this.externalActField;
            }
            set {
                this.externalActField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040ExternalObservation externalObservation {
            get {
                return this.externalObservationField;
            }
            set {
                this.externalObservationField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040ExternalProcedure externalProcedure {
            get {
                return this.externalProcedureField;
            }
            set {
                this.externalProcedureField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040ExternalDocument externalDocument {
            get {
                return this.externalDocumentField;
            }
            set {
                this.externalDocumentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public x_ActRelationshipExternalReference typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.ExternalAct", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040ExternalAct {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CD codeField;
        
        private ED textField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClassRoot classCodeField;
        
        private ActMood moodCodeField;
        
        private bool moodCodeFieldSpecified;
        
        public POCD_MT000040ExternalAct() {
            this.classCodeField = ActClassRoot.ACT;
            this.moodCodeField = ActMood.EVN;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CD code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public ED text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(ActClassRoot.ACT)]
        public ActClassRoot classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool moodCodeSpecified {
            get {
                return this.moodCodeFieldSpecified;
            }
            set {
                this.moodCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum ActClassRoot {
        
        /// <remarks/>
        ACCM,
        
        /// <remarks/>
        ACCT,
        
        /// <remarks/>
        ACSN,
        
        /// <remarks/>
        ACT,
        
        /// <remarks/>
        ACTN,
        
        /// <remarks/>
        ADJUD,
        
        /// <remarks/>
        AEXPOS,
        
        /// <remarks/>
        ALRT,
        
        /// <remarks/>
        BATTERY,
        
        /// <remarks/>
        CACT,
        
        /// <remarks/>
        CASE,
        
        /// <remarks/>
        CATEGORY,
        
        /// <remarks/>
        CDALVLONE,
        
        /// <remarks/>
        CLNTRL,
        
        /// <remarks/>
        CLUSTER,
        
        /// <remarks/>
        CNOD,
        
        /// <remarks/>
        CNTRCT,
        
        /// <remarks/>
        COMPOSITION,
        
        /// <remarks/>
        COND,
        
        /// <remarks/>
        CONS,
        
        /// <remarks/>
        CONTAINER,
        
        /// <remarks/>
        CONTREG,
        
        /// <remarks/>
        COV,
        
        /// <remarks/>
        CTTEVENT,
        
        /// <remarks/>
        DETPOL,
        
        /// <remarks/>
        DGIMG,
        
        /// <remarks/>
        DIET,
        
        /// <remarks/>
        DISPACT,
        
        /// <remarks/>
        DOC,
        
        /// <remarks/>
        DOCBODY,
        
        /// <remarks/>
        DOCCLIN,
        
        /// <remarks/>
        DOCSECT,
        
        /// <remarks/>
        EHR,
        
        /// <remarks/>
        ENC,
        
        /// <remarks/>
        EXP,
        
        /// <remarks/>
        EXPOS,
        
        /// <remarks/>
        EXTRACT,
        
        /// <remarks/>
        FCNTRCT,
        
        /// <remarks/>
        FOLDER,
        
        /// <remarks/>
        GEN,
        
        /// <remarks/>
        GROUPER,
        
        /// <remarks/>
        INC,
        
        /// <remarks/>
        INFO,
        
        /// <remarks/>
        INFRM,
        
        /// <remarks/>
        INVE,
        
        /// <remarks/>
        INVSTG,
        
        /// <remarks/>
        JURISPOL,
        
        /// <remarks/>
        LIST,
        
        /// <remarks/>
        LLD,
        
        /// <remarks/>
        LOC,
        
        /// <remarks/>
        MPROT,
        
        /// <remarks/>
        OBS,
        
        /// <remarks/>
        OBSCOR,
        
        /// <remarks/>
        OBSSER,
        
        /// <remarks/>
        ORGPOL,
        
        /// <remarks/>
        OUTB,
        
        /// <remarks/>
        PCPR,
        
        /// <remarks/>
        PHN,
        
        /// <remarks/>
        POL,
        
        /// <remarks/>
        POLICY,
        
        /// <remarks/>
        POS,
        
        /// <remarks/>
        POSACC,
        
        /// <remarks/>
        POSCOORD,
        
        /// <remarks/>
        PRN,
        
        /// <remarks/>
        PROC,
        
        /// <remarks/>
        REG,
        
        /// <remarks/>
        REV,
        
        /// <remarks/>
        RLD,
        
        /// <remarks/>
        ROIBND,
        
        /// <remarks/>
        ROIOVL,
        
        /// <remarks/>
        RTRD,
        
        /// <remarks/>
        SBADM,
        
        /// <remarks/>
        SCOPOL,
        
        /// <remarks/>
        SEQ,
        
        /// <remarks/>
        SEQVAR,
        
        /// <remarks/>
        SFWL,
        
        /// <remarks/>
        SIT,
        
        /// <remarks/>
        SPCOBS,
        
        /// <remarks/>
        SPCTRT,
        
        /// <remarks/>
        SPECCOLLECT,
        
        /// <remarks/>
        SPLY,
        
        /// <remarks/>
        STC,
        
        /// <remarks/>
        STDPOL,
        
        /// <remarks/>
        STN,
        
        /// <remarks/>
        STORE,
        
        /// <remarks/>
        SUBST,
        
        /// <remarks/>
        SUP,
        
        /// <remarks/>
        TEXPOS,
        
        /// <remarks/>
        TOPIC,
        
        /// <remarks/>
        TRD,
        
        /// <remarks/>
        TRFR,
        
        /// <remarks/>
        TRNS,
        
        /// <remarks/>
        VERIF,
        
        /// <remarks/>
        XACT,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.ExternalObservation", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040ExternalObservation {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CD codeField;
        
        private ED textField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClassObservation classCodeField;
        
        private ActMood moodCodeField;
        
        private bool moodCodeFieldSpecified;
        
        public POCD_MT000040ExternalObservation() {
            this.classCodeField = ActClassObservation.OBS;
            this.moodCodeField = ActMood.EVN;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CD code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public ED text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(ActClassObservation.OBS)]
        public ActClassObservation classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool moodCodeSpecified {
            get {
                return this.moodCodeFieldSpecified;
            }
            set {
                this.moodCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum ActClassObservation {
        
        /// <remarks/>
        ALRT,
        
        /// <remarks/>
        CASE,
        
        /// <remarks/>
        CLNTRL,
        
        /// <remarks/>
        CNOD,
        
        /// <remarks/>
        COND,
        
        /// <remarks/>
        DETPOL,
        
        /// <remarks/>
        DGIMG,
        
        /// <remarks/>
        EXP,
        
        /// <remarks/>
        GEN,
        
        /// <remarks/>
        INVSTG,
        
        /// <remarks/>
        LLD,
        
        /// <remarks/>
        LOC,
        
        /// <remarks/>
        OBS,
        
        /// <remarks/>
        OBSCOR,
        
        /// <remarks/>
        OBSSER,
        
        /// <remarks/>
        OUTB,
        
        /// <remarks/>
        PHN,
        
        /// <remarks/>
        POL,
        
        /// <remarks/>
        POS,
        
        /// <remarks/>
        POSACC,
        
        /// <remarks/>
        POSCOORD,
        
        /// <remarks/>
        PRN,
        
        /// <remarks/>
        RLD,
        
        /// <remarks/>
        ROIBND,
        
        /// <remarks/>
        ROIOVL,
        
        /// <remarks/>
        RTRD,
        
        /// <remarks/>
        SEQ,
        
        /// <remarks/>
        SEQVAR,
        
        /// <remarks/>
        SFWL,
        
        /// <remarks/>
        SIT,
        
        /// <remarks/>
        SPCOBS,
        
        /// <remarks/>
        STN,
        
        /// <remarks/>
        SUP,
        
        /// <remarks/>
        TRD,
        
        /// <remarks/>
        VERIF,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.ExternalProcedure", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040ExternalProcedure {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CD codeField;
        
        private ED textField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClass classCodeField;
        
        private bool classCodeFieldSpecified;
        
        private ActMood moodCodeField;
        
        private bool moodCodeFieldSpecified;
        
        public POCD_MT000040ExternalProcedure() {
            this.classCodeField = ActClass.PROC;
            this.moodCodeField = ActMood.EVN;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CD code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public ED text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool moodCodeSpecified {
            get {
                return this.moodCodeFieldSpecified;
            }
            set {
                this.moodCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum ActClass {
        
        /// <remarks/>
        ACCM,
        
        /// <remarks/>
        ACCT,
        
        /// <remarks/>
        ACSN,
        
        /// <remarks/>
        ACT,
        
        /// <remarks/>
        ACTN,
        
        /// <remarks/>
        ADJUD,
        
        /// <remarks/>
        AEXPOS,
        
        /// <remarks/>
        ALRT,
        
        /// <remarks/>
        BATTERY,
        
        /// <remarks/>
        CACT,
        
        /// <remarks/>
        CASE,
        
        /// <remarks/>
        CATEGORY,
        
        /// <remarks/>
        CDALVLONE,
        
        /// <remarks/>
        CLNTRL,
        
        /// <remarks/>
        CLUSTER,
        
        /// <remarks/>
        CNOD,
        
        /// <remarks/>
        CNTRCT,
        
        /// <remarks/>
        COMPOSITION,
        
        /// <remarks/>
        COND,
        
        /// <remarks/>
        CONS,
        
        /// <remarks/>
        CONTAINER,
        
        /// <remarks/>
        CONTREG,
        
        /// <remarks/>
        COV,
        
        /// <remarks/>
        CTTEVENT,
        
        /// <remarks/>
        DETPOL,
        
        /// <remarks/>
        DGIMG,
        
        /// <remarks/>
        DIET,
        
        /// <remarks/>
        DISPACT,
        
        /// <remarks/>
        DOC,
        
        /// <remarks/>
        DOCBODY,
        
        /// <remarks/>
        DOCCLIN,
        
        /// <remarks/>
        DOCSECT,
        
        /// <remarks/>
        EHR,
        
        /// <remarks/>
        ENC,
        
        /// <remarks/>
        EXP,
        
        /// <remarks/>
        EXPOS,
        
        /// <remarks/>
        EXTRACT,
        
        /// <remarks/>
        FCNTRCT,
        
        /// <remarks/>
        FOLDER,
        
        /// <remarks/>
        GEN,
        
        /// <remarks/>
        GROUPER,
        
        /// <remarks/>
        INC,
        
        /// <remarks/>
        INFO,
        
        /// <remarks/>
        INFRM,
        
        /// <remarks/>
        INVE,
        
        /// <remarks/>
        INVSTG,
        
        /// <remarks/>
        JURISPOL,
        
        /// <remarks/>
        LIST,
        
        /// <remarks/>
        LLD,
        
        /// <remarks/>
        LOC,
        
        /// <remarks/>
        MPROT,
        
        /// <remarks/>
        OBS,
        
        /// <remarks/>
        OBSCOR,
        
        /// <remarks/>
        OBSSER,
        
        /// <remarks/>
        ORGPOL,
        
        /// <remarks/>
        OUTB,
        
        /// <remarks/>
        PCPR,
        
        /// <remarks/>
        PHN,
        
        /// <remarks/>
        POL,
        
        /// <remarks/>
        POLICY,
        
        /// <remarks/>
        POS,
        
        /// <remarks/>
        POSACC,
        
        /// <remarks/>
        POSCOORD,
        
        /// <remarks/>
        PRN,
        
        /// <remarks/>
        PROC,
        
        /// <remarks/>
        REG,
        
        /// <remarks/>
        REV,
        
        /// <remarks/>
        RLD,
        
        /// <remarks/>
        ROIBND,
        
        /// <remarks/>
        ROIOVL,
        
        /// <remarks/>
        RTRD,
        
        /// <remarks/>
        SBADM,
        
        /// <remarks/>
        SCOPOL,
        
        /// <remarks/>
        SEQ,
        
        /// <remarks/>
        SEQVAR,
        
        /// <remarks/>
        SFWL,
        
        /// <remarks/>
        SIT,
        
        /// <remarks/>
        SPCOBS,
        
        /// <remarks/>
        SPCTRT,
        
        /// <remarks/>
        SPECCOLLECT,
        
        /// <remarks/>
        SPLY,
        
        /// <remarks/>
        STC,
        
        /// <remarks/>
        STDPOL,
        
        /// <remarks/>
        STN,
        
        /// <remarks/>
        STORE,
        
        /// <remarks/>
        SUBST,
        
        /// <remarks/>
        SUP,
        
        /// <remarks/>
        TEXPOS,
        
        /// <remarks/>
        TOPIC,
        
        /// <remarks/>
        TRD,
        
        /// <remarks/>
        TRFR,
        
        /// <remarks/>
        TRNS,
        
        /// <remarks/>
        VERIF,
        
        /// <remarks/>
        XACT,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.ExternalDocument", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040ExternalDocument {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CD codeField;
        
        private ED textField;
        
        private II setIdField;
        
        private INT versionNumberField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClassDocument classCodeField;
        
        private ActMood moodCodeField;
        
        private bool moodCodeFieldSpecified;
        
        public POCD_MT000040ExternalDocument() {
            this.classCodeField = ActClassDocument.DOC;
            this.moodCodeField = ActMood.EVN;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CD code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public ED text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        public II setId {
            get {
                return this.setIdField;
            }
            set {
                this.setIdField = value;
            }
        }
        
        /// <remarks/>
        public INT versionNumber {
            get {
                return this.versionNumberField;
            }
            set {
                this.versionNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(ActClassDocument.DOC)]
        public ActClassDocument classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool moodCodeSpecified {
            get {
                return this.moodCodeFieldSpecified;
            }
            set {
                this.moodCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum ActClassDocument {
        
        /// <remarks/>
        DOC,
        
        /// <remarks/>
        DOCCLIN,
        
        /// <remarks/>
        CDALVLONE,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum x_ActRelationshipExternalReference {
        
        /// <remarks/>
        ELNK,
        
        /// <remarks/>
        REFR,
        
        /// <remarks/>
        RPLC,
        
        /// <remarks/>
        SPRT,
        
        /// <remarks/>
        SUBJ,
        
        /// <remarks/>
        XCRPT,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Precondition", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Precondition {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040Criterion criterionField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActRelationshipType typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        public POCD_MT000040Precondition() {
            this.typeCodeField = ActRelationshipType.PRCN;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Criterion criterion {
            get {
                return this.criterionField;
            }
            set {
                this.criterionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActRelationshipType typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Criterion", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Criterion {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private CD codeField;
        
        private ED textField;
        
        private ANY valueField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClassObservation classCodeField;
        
        private ActMood moodCodeField;
        
        private bool moodCodeFieldSpecified;
        
        public POCD_MT000040Criterion() {
            this.classCodeField = ActClassObservation.OBS;
            this.moodCodeField = ActMood.EVNCRT;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public CD code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public ED text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        public ANY value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(ActClassObservation.OBS)]
        public ActClassObservation classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool moodCodeSpecified {
            get {
                return this.moodCodeFieldSpecified;
            }
            set {
                this.moodCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum ActRelationshipType {
        
        /// <remarks/>
        APND,
        
        /// <remarks/>
        ARR,
        
        /// <remarks/>
        AUTH,
        
        /// <remarks/>
        BLOCK,
        
        /// <remarks/>
        CAUS,
        
        /// <remarks/>
        CHRG,
        
        /// <remarks/>
        CIND,
        
        /// <remarks/>
        COMP,
        
        /// <remarks/>
        COMPLY,
        
        /// <remarks/>
        COST,
        
        /// <remarks/>
        COVBY,
        
        /// <remarks/>
        CREDIT,
        
        /// <remarks/>
        CTRLV,
        
        /// <remarks/>
        CURE,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("CURE.ADJ")]
        CUREADJ,
        
        /// <remarks/>
        DEBIT,
        
        /// <remarks/>
        DEP,
        
        /// <remarks/>
        DIAG,
        
        /// <remarks/>
        DOC,
        
        /// <remarks/>
        DRIV,
        
        /// <remarks/>
        ELNK,
        
        /// <remarks/>
        EVID,
        
        /// <remarks/>
        EXPL,
        
        /// <remarks/>
        FLFS,
        
        /// <remarks/>
        GEN,
        
        /// <remarks/>
        GEVL,
        
        /// <remarks/>
        GOAL,
        
        /// <remarks/>
        INST,
        
        /// <remarks/>
        ITEMSLOC,
        
        /// <remarks/>
        LIMIT,
        
        /// <remarks/>
        MFST,
        
        /// <remarks/>
        MITGT,
        
        /// <remarks/>
        MOD,
        
        /// <remarks/>
        MTCH,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("MTGT.ADJ")]
        MTGTADJ,
        
        /// <remarks/>
        NAME,
        
        /// <remarks/>
        OBJC,
        
        /// <remarks/>
        OBJF,
        
        /// <remarks/>
        OCCR,
        
        /// <remarks/>
        OPTN,
        
        /// <remarks/>
        OREF,
        
        /// <remarks/>
        OUTC,
        
        /// <remarks/>
        PERT,
        
        /// <remarks/>
        PRCN,
        
        /// <remarks/>
        PREV,
        
        /// <remarks/>
        RCHAL,
        
        /// <remarks/>
        RCVY,
        
        /// <remarks/>
        REFR,
        
        /// <remarks/>
        REFV,
        
        /// <remarks/>
        REV,
        
        /// <remarks/>
        RISK,
        
        /// <remarks/>
        RPLC,
        
        /// <remarks/>
        RSON,
        
        /// <remarks/>
        SAE,
        
        /// <remarks/>
        SAS,
        
        /// <remarks/>
        SCH,
        
        /// <remarks/>
        SEQL,
        
        /// <remarks/>
        SPRT,
        
        /// <remarks/>
        SPRTBND,
        
        /// <remarks/>
        SUBJ,
        
        /// <remarks/>
        SUCC,
        
        /// <remarks/>
        SUMM,
        
        /// <remarks/>
        SYMP,
        
        /// <remarks/>
        TRIG,
        
        /// <remarks/>
        UPDT,
        
        /// <remarks/>
        VRXCRPT,
        
        /// <remarks/>
        XCRPT,
        
        /// <remarks/>
        XFRM,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum x_DocumentEncounterMood {
        
        /// <remarks/>
        APT,
        
        /// <remarks/>
        ARQ,
        
        /// <remarks/>
        EVN,
        
        /// <remarks/>
        INT,
        
        /// <remarks/>
        PRMS,
        
        /// <remarks/>
        PRP,
        
        /// <remarks/>
        RQO,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Observation", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Observation {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CD codeField;
        
        private ST derivationExprField;
        
        private ED textField;
        
        private CS statusCodeField;
        
        private IVL_TS effectiveTimeField;
        
        private CE priorityCodeField;
        
        private IVL_INT repeatNumberField;
        
        private CS languageCodeField;
        
        private ANY[] valueField;
        
        private CE[] interpretationCodeField;
        
        private CE[] methodCodeField;
        
        private CD[] targetSiteCodeField;
        
        private POCD_MT000040Subject subjectField;
        
        private POCD_MT000040Specimen[] specimenField;
        
        private POCD_MT000040Performer2[] performerField;
        
        private POCD_MT000040Author[] authorField;
        
        private POCD_MT000040Informant12[] informantField;
        
        private POCD_MT000040Participant2[] participantField;
        
        private POCD_MT000040EntryRelationship[] entryRelationshipField;
        
        private POCD_MT000040Reference[] referenceField;
        
        private POCD_MT000040Precondition[] preconditionField;
        
        private POCD_MT000040ReferenceRange[] referenceRangeField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClassObservation classCodeField;
        
        private x_ActMoodDocumentObservation moodCodeField;
        
        private bool negationIndField;
        
        private bool negationIndFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CD code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public ST derivationExpr {
            get {
                return this.derivationExprField;
            }
            set {
                this.derivationExprField = value;
            }
        }
        
        /// <remarks/>
        public ED text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        public CS statusCode {
            get {
                return this.statusCodeField;
            }
            set {
                this.statusCodeField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS effectiveTime {
            get {
                return this.effectiveTimeField;
            }
            set {
                this.effectiveTimeField = value;
            }
        }
        
        /// <remarks/>
        public CE priorityCode {
            get {
                return this.priorityCodeField;
            }
            set {
                this.priorityCodeField = value;
            }
        }
        
        /// <remarks/>
        public IVL_INT repeatNumber {
            get {
                return this.repeatNumberField;
            }
            set {
                this.repeatNumberField = value;
            }
        }
        
        /// <remarks/>
        public CS languageCode {
            get {
                return this.languageCodeField;
            }
            set {
                this.languageCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("value")]
        public ANY[] value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("interpretationCode")]
        public CE[] interpretationCode {
            get {
                return this.interpretationCodeField;
            }
            set {
                this.interpretationCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("methodCode")]
        public CE[] methodCode {
            get {
                return this.methodCodeField;
            }
            set {
                this.methodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("targetSiteCode")]
        public CD[] targetSiteCode {
            get {
                return this.targetSiteCodeField;
            }
            set {
                this.targetSiteCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Subject subject {
            get {
                return this.subjectField;
            }
            set {
                this.subjectField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("specimen")]
        public POCD_MT000040Specimen[] specimen {
            get {
                return this.specimenField;
            }
            set {
                this.specimenField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("performer")]
        public POCD_MT000040Performer2[] performer {
            get {
                return this.performerField;
            }
            set {
                this.performerField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("author")]
        public POCD_MT000040Author[] author {
            get {
                return this.authorField;
            }
            set {
                this.authorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("informant")]
        public POCD_MT000040Informant12[] informant {
            get {
                return this.informantField;
            }
            set {
                this.informantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("participant")]
        public POCD_MT000040Participant2[] participant {
            get {
                return this.participantField;
            }
            set {
                this.participantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("entryRelationship")]
        public POCD_MT000040EntryRelationship[] entryRelationship {
            get {
                return this.entryRelationshipField;
            }
            set {
                this.entryRelationshipField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("reference")]
        public POCD_MT000040Reference[] reference {
            get {
                return this.referenceField;
            }
            set {
                this.referenceField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("precondition")]
        public POCD_MT000040Precondition[] precondition {
            get {
                return this.preconditionField;
            }
            set {
                this.preconditionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("referenceRange")]
        public POCD_MT000040ReferenceRange[] referenceRange {
            get {
                return this.referenceRangeField;
            }
            set {
                this.referenceRangeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActClassObservation classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public x_ActMoodDocumentObservation moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public bool negationInd {
            get {
                return this.negationIndField;
            }
            set {
                this.negationIndField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool negationIndSpecified {
            get {
                return this.negationIndFieldSpecified;
            }
            set {
                this.negationIndFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.ReferenceRange", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040ReferenceRange {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040ObservationRange observationRangeField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActRelationshipType typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        public POCD_MT000040ReferenceRange() {
            this.typeCodeField = ActRelationshipType.REFV;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040ObservationRange observationRange {
            get {
                return this.observationRangeField;
            }
            set {
                this.observationRangeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActRelationshipType typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.ObservationRange", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040ObservationRange {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private CD codeField;
        
        private ED textField;
        
        private ANY valueField;
        
        private CE interpretationCodeField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClassObservation classCodeField;
        
        private ActMood moodCodeField;
        
        private bool moodCodeFieldSpecified;
        
        public POCD_MT000040ObservationRange() {
            this.classCodeField = ActClassObservation.OBS;
            this.moodCodeField = ActMood.EVNCRT;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public CD code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public ED text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        public ANY value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
        
        /// <remarks/>
        public CE interpretationCode {
            get {
                return this.interpretationCodeField;
            }
            set {
                this.interpretationCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(ActClassObservation.OBS)]
        public ActClassObservation classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool moodCodeSpecified {
            get {
                return this.moodCodeFieldSpecified;
            }
            set {
                this.moodCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum x_ActMoodDocumentObservation {
        
        /// <remarks/>
        DEF,
        
        /// <remarks/>
        EVN,
        
        /// <remarks/>
        GOL,
        
        /// <remarks/>
        INT,
        
        /// <remarks/>
        PRMS,
        
        /// <remarks/>
        PRP,
        
        /// <remarks/>
        RQO,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.ObservationMedia", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040ObservationMedia {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CS languageCodeField;
        
        private ED valueField;
        
        private POCD_MT000040Subject subjectField;
        
        private POCD_MT000040Specimen[] specimenField;
        
        private POCD_MT000040Performer2[] performerField;
        
        private POCD_MT000040Author[] authorField;
        
        private POCD_MT000040Informant12[] informantField;
        
        private POCD_MT000040Participant2[] participantField;
        
        private POCD_MT000040EntryRelationship[] entryRelationshipField;
        
        private POCD_MT000040Reference[] referenceField;
        
        private POCD_MT000040Precondition[] preconditionField;
        
        private string idField1;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClassObservation classCodeField;
        
        private ActMood moodCodeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CS languageCode {
            get {
                return this.languageCodeField;
            }
            set {
                this.languageCodeField = value;
            }
        }
        
        /// <remarks/>
        public ED value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Subject subject {
            get {
                return this.subjectField;
            }
            set {
                this.subjectField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("specimen")]
        public POCD_MT000040Specimen[] specimen {
            get {
                return this.specimenField;
            }
            set {
                this.specimenField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("performer")]
        public POCD_MT000040Performer2[] performer {
            get {
                return this.performerField;
            }
            set {
                this.performerField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("author")]
        public POCD_MT000040Author[] author {
            get {
                return this.authorField;
            }
            set {
                this.authorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("informant")]
        public POCD_MT000040Informant12[] informant {
            get {
                return this.informantField;
            }
            set {
                this.informantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("participant")]
        public POCD_MT000040Participant2[] participant {
            get {
                return this.participantField;
            }
            set {
                this.participantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("entryRelationship")]
        public POCD_MT000040EntryRelationship[] entryRelationship {
            get {
                return this.entryRelationshipField;
            }
            set {
                this.entryRelationshipField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("reference")]
        public POCD_MT000040Reference[] reference {
            get {
                return this.referenceField;
            }
            set {
                this.referenceField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("precondition")]
        public POCD_MT000040Precondition[] precondition {
            get {
                return this.preconditionField;
            }
            set {
                this.preconditionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField1;
            }
            set {
                this.idField1 = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActClassObservation classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Organizer", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Organizer {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CD codeField;
        
        private CS statusCodeField;
        
        private IVL_TS effectiveTimeField;
        
        private POCD_MT000040Subject subjectField;
        
        private POCD_MT000040Specimen[] specimenField;
        
        private POCD_MT000040Performer2[] performerField;
        
        private POCD_MT000040Author[] authorField;
        
        private POCD_MT000040Informant12[] informantField;
        
        private POCD_MT000040Participant2[] participantField;
        
        private POCD_MT000040Reference[] referenceField;
        
        private POCD_MT000040Precondition[] preconditionField;
        
        private POCD_MT000040Component4[] componentField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private x_ActClassDocumentEntryOrganizer classCodeField;
        
        private ActMood moodCodeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CD code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public CS statusCode {
            get {
                return this.statusCodeField;
            }
            set {
                this.statusCodeField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS effectiveTime {
            get {
                return this.effectiveTimeField;
            }
            set {
                this.effectiveTimeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Subject subject {
            get {
                return this.subjectField;
            }
            set {
                this.subjectField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("specimen")]
        public POCD_MT000040Specimen[] specimen {
            get {
                return this.specimenField;
            }
            set {
                this.specimenField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("performer")]
        public POCD_MT000040Performer2[] performer {
            get {
                return this.performerField;
            }
            set {
                this.performerField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("author")]
        public POCD_MT000040Author[] author {
            get {
                return this.authorField;
            }
            set {
                this.authorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("informant")]
        public POCD_MT000040Informant12[] informant {
            get {
                return this.informantField;
            }
            set {
                this.informantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("participant")]
        public POCD_MT000040Participant2[] participant {
            get {
                return this.participantField;
            }
            set {
                this.participantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("reference")]
        public POCD_MT000040Reference[] reference {
            get {
                return this.referenceField;
            }
            set {
                this.referenceField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("precondition")]
        public POCD_MT000040Precondition[] precondition {
            get {
                return this.preconditionField;
            }
            set {
                this.preconditionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("component")]
        public POCD_MT000040Component4[] component {
            get {
                return this.componentField;
            }
            set {
                this.componentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public x_ActClassDocumentEntryOrganizer classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Component4", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Component4 {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private INT sequenceNumberField;
        
        private BL seperatableIndField;
        
        private POCD_MT000040Act actField;
        
        private POCD_MT000040Encounter encounterField;
        
        private POCD_MT000040Observation observationField;
        
        private POCD_MT000040ObservationMedia observationMediaField;
        
        private POCD_MT000040Organizer organizerField;
        
        private POCD_MT000040Procedure procedureField;
        
        private POCD_MT000040RegionOfInterest regionOfInterestField;
        
        private POCD_MT000040SubstanceAdministration substanceAdministrationField;
        
        private POCD_MT000040Supply supplyField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActRelationshipHasComponent typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        private bool contextConductionIndField;
        
        private bool contextConductionIndFieldSpecified;
        
        public POCD_MT000040Component4() {
            this.typeCodeField = ActRelationshipHasComponent.COMP;
            this.contextConductionIndField = true;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public INT sequenceNumber {
            get {
                return this.sequenceNumberField;
            }
            set {
                this.sequenceNumberField = value;
            }
        }
        
        /// <remarks/>
        public BL seperatableInd {
            get {
                return this.seperatableIndField;
            }
            set {
                this.seperatableIndField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Act act {
            get {
                return this.actField;
            }
            set {
                this.actField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Encounter encounter {
            get {
                return this.encounterField;
            }
            set {
                this.encounterField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Observation observation {
            get {
                return this.observationField;
            }
            set {
                this.observationField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040ObservationMedia observationMedia {
            get {
                return this.observationMediaField;
            }
            set {
                this.observationMediaField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Organizer organizer {
            get {
                return this.organizerField;
            }
            set {
                this.organizerField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Procedure procedure {
            get {
                return this.procedureField;
            }
            set {
                this.procedureField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040RegionOfInterest regionOfInterest {
            get {
                return this.regionOfInterestField;
            }
            set {
                this.regionOfInterestField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040SubstanceAdministration substanceAdministration {
            get {
                return this.substanceAdministrationField;
            }
            set {
                this.substanceAdministrationField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Supply supply {
            get {
                return this.supplyField;
            }
            set {
                this.supplyField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActRelationshipHasComponent typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public bool contextConductionInd {
            get {
                return this.contextConductionIndField;
            }
            set {
                this.contextConductionIndField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool contextConductionIndSpecified {
            get {
                return this.contextConductionIndFieldSpecified;
            }
            set {
                this.contextConductionIndFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Procedure", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Procedure {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CD codeField;
        
        private ED textField;
        
        private CS statusCodeField;
        
        private IVL_TS effectiveTimeField;
        
        private CE priorityCodeField;
        
        private CS languageCodeField;
        
        private CE[] methodCodeField;
        
        private CD[] approachSiteCodeField;
        
        private CD[] targetSiteCodeField;
        
        private POCD_MT000040Subject subjectField;
        
        private POCD_MT000040Specimen[] specimenField;
        
        private POCD_MT000040Performer2[] performerField;
        
        private POCD_MT000040Author[] authorField;
        
        private POCD_MT000040Informant12[] informantField;
        
        private POCD_MT000040Participant2[] participantField;
        
        private POCD_MT000040EntryRelationship[] entryRelationshipField;
        
        private POCD_MT000040Reference[] referenceField;
        
        private POCD_MT000040Precondition[] preconditionField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClass classCodeField;
        
        private x_DocumentProcedureMood moodCodeField;
        
        private bool negationIndField;
        
        private bool negationIndFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CD code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public ED text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        public CS statusCode {
            get {
                return this.statusCodeField;
            }
            set {
                this.statusCodeField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS effectiveTime {
            get {
                return this.effectiveTimeField;
            }
            set {
                this.effectiveTimeField = value;
            }
        }
        
        /// <remarks/>
        public CE priorityCode {
            get {
                return this.priorityCodeField;
            }
            set {
                this.priorityCodeField = value;
            }
        }
        
        /// <remarks/>
        public CS languageCode {
            get {
                return this.languageCodeField;
            }
            set {
                this.languageCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("methodCode")]
        public CE[] methodCode {
            get {
                return this.methodCodeField;
            }
            set {
                this.methodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("approachSiteCode")]
        public CD[] approachSiteCode {
            get {
                return this.approachSiteCodeField;
            }
            set {
                this.approachSiteCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("targetSiteCode")]
        public CD[] targetSiteCode {
            get {
                return this.targetSiteCodeField;
            }
            set {
                this.targetSiteCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Subject subject {
            get {
                return this.subjectField;
            }
            set {
                this.subjectField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("specimen")]
        public POCD_MT000040Specimen[] specimen {
            get {
                return this.specimenField;
            }
            set {
                this.specimenField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("performer")]
        public POCD_MT000040Performer2[] performer {
            get {
                return this.performerField;
            }
            set {
                this.performerField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("author")]
        public POCD_MT000040Author[] author {
            get {
                return this.authorField;
            }
            set {
                this.authorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("informant")]
        public POCD_MT000040Informant12[] informant {
            get {
                return this.informantField;
            }
            set {
                this.informantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("participant")]
        public POCD_MT000040Participant2[] participant {
            get {
                return this.participantField;
            }
            set {
                this.participantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("entryRelationship")]
        public POCD_MT000040EntryRelationship[] entryRelationship {
            get {
                return this.entryRelationshipField;
            }
            set {
                this.entryRelationshipField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("reference")]
        public POCD_MT000040Reference[] reference {
            get {
                return this.referenceField;
            }
            set {
                this.referenceField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("precondition")]
        public POCD_MT000040Precondition[] precondition {
            get {
                return this.preconditionField;
            }
            set {
                this.preconditionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public x_DocumentProcedureMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public bool negationInd {
            get {
                return this.negationIndField;
            }
            set {
                this.negationIndField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool negationIndSpecified {
            get {
                return this.negationIndFieldSpecified;
            }
            set {
                this.negationIndFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum x_DocumentProcedureMood {
        
        /// <remarks/>
        APT,
        
        /// <remarks/>
        ARQ,
        
        /// <remarks/>
        DEF,
        
        /// <remarks/>
        EVN,
        
        /// <remarks/>
        INT,
        
        /// <remarks/>
        PRMS,
        
        /// <remarks/>
        PRP,
        
        /// <remarks/>
        RQO,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.RegionOfInterest", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040RegionOfInterest {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CS codeField;
        
        private POCD_MT000040RegionOfInterestvalue[] valueField;
        
        private POCD_MT000040Subject subjectField;
        
        private POCD_MT000040Specimen[] specimenField;
        
        private POCD_MT000040Performer2[] performerField;
        
        private POCD_MT000040Author[] authorField;
        
        private POCD_MT000040Informant12[] informantField;
        
        private POCD_MT000040Participant2[] participantField;
        
        private POCD_MT000040EntryRelationship[] entryRelationshipField;
        
        private POCD_MT000040Reference[] referenceField;
        
        private POCD_MT000040Precondition[] preconditionField;
        
        private string idField1;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClass classCodeField;
        
        private ActMood moodCodeField;
        
        public POCD_MT000040RegionOfInterest() {
            this.classCodeField = ActClass.ROIOVL;
            this.moodCodeField = ActMood.EVN;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CS code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("value")]
        public POCD_MT000040RegionOfInterestvalue[] value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Subject subject {
            get {
                return this.subjectField;
            }
            set {
                this.subjectField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("specimen")]
        public POCD_MT000040Specimen[] specimen {
            get {
                return this.specimenField;
            }
            set {
                this.specimenField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("performer")]
        public POCD_MT000040Performer2[] performer {
            get {
                return this.performerField;
            }
            set {
                this.performerField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("author")]
        public POCD_MT000040Author[] author {
            get {
                return this.authorField;
            }
            set {
                this.authorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("informant")]
        public POCD_MT000040Informant12[] informant {
            get {
                return this.informantField;
            }
            set {
                this.informantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("participant")]
        public POCD_MT000040Participant2[] participant {
            get {
                return this.participantField;
            }
            set {
                this.participantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("entryRelationship")]
        public POCD_MT000040EntryRelationship[] entryRelationship {
            get {
                return this.entryRelationshipField;
            }
            set {
                this.entryRelationshipField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("reference")]
        public POCD_MT000040Reference[] reference {
            get {
                return this.referenceField;
            }
            set {
                this.referenceField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("precondition")]
        public POCD_MT000040Precondition[] precondition {
            get {
                return this.preconditionField;
            }
            set {
                this.preconditionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string ID {
            get {
                return this.idField1;
            }
            set {
                this.idField1 = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.SubstanceAdministration", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040SubstanceAdministration {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CD codeField;
        
        private ED textField;
        
        private CS statusCodeField;
        
        private SXCM_TS[] effectiveTimeField;
        
        private CE priorityCodeField;
        
        private IVL_INT repeatNumberField;
        
        private CD methodCodeField;
        
        private CE routeCodeField;
        
        private CD[] approachSiteCodeField;
        
        private IVL_PQ doseQuantityField;
        
        private IVL_PQ rateQuantityField;
        
        private RTO_PQ_PQ maxDoseQuantityField;
        
        private CE administrationUnitCodeField;
        
        private POCD_MT000040Subject subjectField;
        
        private POCD_MT000040Specimen[] specimenField;
        
        private POCD_MT000040Consumable consumableField;
        
        private POCD_MT000040Performer2[] performerField;
        
        private POCD_MT000040Author[] authorField;
        
        private POCD_MT000040Informant12[] informantField;
        
        private POCD_MT000040Participant2[] participantField;
        
        private POCD_MT000040EntryRelationship[] entryRelationshipField;
        
        private POCD_MT000040Reference[] referenceField;
        
        private POCD_MT000040Precondition[] preconditionField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClass classCodeField;
        
        private x_DocumentSubstanceMood moodCodeField;
        
        private bool negationIndField;
        
        private bool negationIndFieldSpecified;
        
        public POCD_MT000040SubstanceAdministration() {
            this.classCodeField = ActClass.SBADM;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CD code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public ED text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        public CS statusCode {
            get {
                return this.statusCodeField;
            }
            set {
                this.statusCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("effectiveTime")]
        public SXCM_TS[] effectiveTime {
            get {
                return this.effectiveTimeField;
            }
            set {
                this.effectiveTimeField = value;
            }
        }
        
        /// <remarks/>
        public CE priorityCode {
            get {
                return this.priorityCodeField;
            }
            set {
                this.priorityCodeField = value;
            }
        }
        
        /// <remarks/>
        public IVL_INT repeatNumber {
            get {
                return this.repeatNumberField;
            }
            set {
                this.repeatNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public CD methodCode {
            get {
                return this.methodCodeField;
            }
            set {
                this.methodCodeField = value;
            }
        }
        
        /// <remarks/>
        public CE routeCode {
            get {
                return this.routeCodeField;
            }
            set {
                this.routeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("approachSiteCode")]
        public CD[] approachSiteCode {
            get {
                return this.approachSiteCodeField;
            }
            set {
                this.approachSiteCodeField = value;
            }
        }
        
        /// <remarks/>
        public IVL_PQ doseQuantity {
            get {
                return this.doseQuantityField;
            }
            set {
                this.doseQuantityField = value;
            }
        }
        
        /// <remarks/>
        public IVL_PQ rateQuantity {
            get {
                return this.rateQuantityField;
            }
            set {
                this.rateQuantityField = value;
            }
        }
        
        /// <remarks/>
        public RTO_PQ_PQ maxDoseQuantity {
            get {
                return this.maxDoseQuantityField;
            }
            set {
                this.maxDoseQuantityField = value;
            }
        }
        
        /// <remarks/>
        public CE administrationUnitCode {
            get {
                return this.administrationUnitCodeField;
            }
            set {
                this.administrationUnitCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Subject subject {
            get {
                return this.subjectField;
            }
            set {
                this.subjectField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("specimen")]
        public POCD_MT000040Specimen[] specimen {
            get {
                return this.specimenField;
            }
            set {
                this.specimenField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Consumable consumable {
            get {
                return this.consumableField;
            }
            set {
                this.consumableField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("performer")]
        public POCD_MT000040Performer2[] performer {
            get {
                return this.performerField;
            }
            set {
                this.performerField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("author")]
        public POCD_MT000040Author[] author {
            get {
                return this.authorField;
            }
            set {
                this.authorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("informant")]
        public POCD_MT000040Informant12[] informant {
            get {
                return this.informantField;
            }
            set {
                this.informantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("participant")]
        public POCD_MT000040Participant2[] participant {
            get {
                return this.participantField;
            }
            set {
                this.participantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("entryRelationship")]
        public POCD_MT000040EntryRelationship[] entryRelationship {
            get {
                return this.entryRelationshipField;
            }
            set {
                this.entryRelationshipField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("reference")]
        public POCD_MT000040Reference[] reference {
            get {
                return this.referenceField;
            }
            set {
                this.referenceField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("precondition")]
        public POCD_MT000040Precondition[] precondition {
            get {
                return this.preconditionField;
            }
            set {
                this.preconditionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public x_DocumentSubstanceMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public bool negationInd {
            get {
                return this.negationIndField;
            }
            set {
                this.negationIndField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool negationIndSpecified {
            get {
                return this.negationIndFieldSpecified;
            }
            set {
                this.negationIndFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class RTO_PQ_PQ : QTY {
        
        private PQ numeratorField;
        
        private PQ denominatorField;
        
        /// <remarks/>
        public PQ numerator {
            get {
                return this.numeratorField;
            }
            set {
                this.numeratorField = value;
            }
        }
        
        /// <remarks/>
        public PQ denominator {
            get {
                return this.denominatorField;
            }
            set {
                this.denominatorField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Consumable", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Consumable {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040ManufacturedProduct manufacturedProductField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ParticipationType typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        public POCD_MT000040Consumable() {
            this.typeCodeField = ParticipationType.CSM;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040ManufacturedProduct manufacturedProduct {
            get {
                return this.manufacturedProductField;
            }
            set {
                this.manufacturedProductField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ParticipationType typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.ManufacturedProduct", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040ManufacturedProduct {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private POCD_MT000040LabeledDrug manufacturedLabeledDrugField;
        
        private POCD_MT000040Material manufacturedMaterialField;
        
        private POCD_MT000040Organization manufacturerOrganizationField;
        
        private Subject1[] subjectOf1Field;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private RoleClassManufacturedProduct classCodeField;
        
        private bool classCodeFieldSpecified;
        
        public POCD_MT000040ManufacturedProduct() {
            this.classCodeField = RoleClassManufacturedProduct.MANU;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040LabeledDrug manufacturedLabeledDrug {
            get {
                return this.manufacturedLabeledDrugField;
            }
            set {
                this.manufacturedLabeledDrugField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Material manufacturedMaterial {
            get {
                return this.manufacturedMaterialField;
            }
            set {
                this.manufacturedMaterialField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Organization manufacturerOrganization {
            get {
                return this.manufacturerOrganizationField;
            }
            set {
                this.manufacturerOrganizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("subjectOf1", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public Subject1[] subjectOf1 {
            get {
                return this.subjectOf1Field;
            }
            set {
                this.subjectOf1Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public RoleClassManufacturedProduct classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.LabeledDrug", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040LabeledDrug {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private CE codeField;
        
        private EN nameField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private EntityClassManufacturedMaterial classCodeField;
        
        private bool classCodeFieldSpecified;
        
        private EntityDeterminerDetermined determinerCodeField;
        
        private bool determinerCodeFieldSpecified;
        
        public POCD_MT000040LabeledDrug() {
            this.classCodeField = EntityClassManufacturedMaterial.MMAT;
            this.determinerCodeField = EntityDeterminerDetermined.KIND;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public EN name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityClassManufacturedMaterial classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityDeterminerDetermined determinerCode {
            get {
                return this.determinerCodeField;
            }
            set {
                this.determinerCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool determinerCodeSpecified {
            get {
                return this.determinerCodeFieldSpecified;
            }
            set {
                this.determinerCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum EntityClassManufacturedMaterial {
        
        /// <remarks/>
        CER,
        
        /// <remarks/>
        CONT,
        
        /// <remarks/>
        DEV,
        
        /// <remarks/>
        HOLD,
        
        /// <remarks/>
        MMAT,
        
        /// <remarks/>
        MODDV,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum EntityDeterminerDetermined {
        
        /// <remarks/>
        KIND,
        
        /// <remarks/>
        QUANTIFIED_KIND,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Material", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Material {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private CE codeField;
        
        private EN nameField;
        
        private ST descField;
        
        private ST lotNumberTextField;
        
        private Ingredient[] asIngredientField;
        
        private CD formCodeField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private EntityClassManufacturedMaterial classCodeField;
        
        private bool classCodeFieldSpecified;
        
        private EntityDeterminerDetermined determinerCodeField;
        
        private bool determinerCodeFieldSpecified;
        
        public POCD_MT000040Material() {
            this.classCodeField = EntityClassManufacturedMaterial.MMAT;
            this.determinerCodeField = EntityDeterminerDetermined.KIND;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public EN name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public ST desc {
            get {
                return this.descField;
            }
            set {
                this.descField = value;
            }
        }
        
        /// <remarks/>
        public ST lotNumberText {
            get {
                return this.lotNumberTextField;
            }
            set {
                this.lotNumberTextField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("asIngredient", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public Ingredient[] asIngredient {
            get {
                return this.asIngredientField;
            }
            set {
                this.asIngredientField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public CD formCode {
            get {
                return this.formCodeField;
            }
            set {
                this.formCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityClassManufacturedMaterial classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityDeterminerDetermined determinerCode {
            get {
                return this.determinerCodeField;
            }
            set {
                this.determinerCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool determinerCodeSpecified {
            get {
                return this.determinerCodeFieldSpecified;
            }
            set {
                this.determinerCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    [System.Xml.Serialization.XmlRootAttribute("asIngredient", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class Ingredient {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private ManufacturedMaterial ingredientManufacturedMaterialField;
        
        private RTO_PQ_PQ quantityField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private RoleClassRoot classCodeField;
        
        public Ingredient() {
            this.classCodeField = RoleClassRoot.INGR;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public ManufacturedMaterial ingredientManufacturedMaterial {
            get {
                return this.ingredientManufacturedMaterialField;
            }
            set {
                this.ingredientManufacturedMaterialField = value;
            }
        }
        
        /// <remarks/>
        public RTO_PQ_PQ quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public RoleClassRoot classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    public partial class ManufacturedMaterial {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CV codeField;
        
        private ED descField;
        
        private IVL_TS expirationTimeField;
        
        private RTO_PQ_PQ quantityField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private EntityClass classCodeField;
        
        private EntityDeterminer determinerCodeField;
        
        public ManufacturedMaterial() {
            this.classCodeField = EntityClass.MMAT;
            this.determinerCodeField = EntityDeterminer.KIND;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CV code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public ED desc {
            get {
                return this.descField;
            }
            set {
                this.descField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS expirationTime {
            get {
                return this.expirationTimeField;
            }
            set {
                this.expirationTimeField = value;
            }
        }
        
        /// <remarks/>
        public RTO_PQ_PQ quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityDeterminer determinerCode {
            get {
                return this.determinerCodeField;
            }
            set {
                this.determinerCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    [System.Xml.Serialization.XmlRootAttribute("subjectOf1", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class Subject1 {
        
        private Policy policyField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ParticipationTargetSubject typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        public Subject1() {
            this.typeCodeField = ParticipationTargetSubject.SBJ;
        }
        
        /// <remarks/>
        public Policy policy {
            get {
                return this.policyField;
            }
            set {
                this.policyField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ParticipationTargetSubject typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    public partial class Policy {
        
        private II idField;
        
        private CD codeField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClass classCodeField;
        
        private ActMood moodCodeField;
        
        public Policy() {
            this.classCodeField = ActClass.JURISPOL;
            this.moodCodeField = ActMood.PERM;
        }
        
        /// <remarks/>
        public II id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CD code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum RoleClassManufacturedProduct {
        
        /// <remarks/>
        MANU,
        
        /// <remarks/>
        THER,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum x_DocumentSubstanceMood {
        
        /// <remarks/>
        EVN,
        
        /// <remarks/>
        INT,
        
        /// <remarks/>
        PRMS,
        
        /// <remarks/>
        PRP,
        
        /// <remarks/>
        RQO,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Supply", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Supply {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CD codeField;
        
        private ED textField;
        
        private CS statusCodeField;
        
        private SXCM_TS[] effectiveTimeField;
        
        private CE[] priorityCodeField;
        
        private IVL_INT repeatNumberField;
        
        private BL independentIndField;
        
        private PQ quantityField;
        
        private IVL_TS expectedUseTimeField;
        
        private POCD_MT000040Subject subjectField;
        
        private POCD_MT000040Specimen[] specimenField;
        
        private POCD_MT000040Product productField;
        
        private POCD_MT000040Performer2[] performerField;
        
        private POCD_MT000040Author[] authorField;
        
        private POCD_MT000040Informant12[] informantField;
        
        private POCD_MT000040Participant2[] participantField;
        
        private POCD_MT000040EntryRelationship[] entryRelationshipField;
        
        private POCD_MT000040Reference[] referenceField;
        
        private POCD_MT000040Precondition[] preconditionField;
        
        private Subject2 subjectOf2Field;
        
        private Coverage[] coverageField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClassSupply classCodeField;
        
        private x_DocumentSubstanceMood moodCodeField;
        
        public POCD_MT000040Supply() {
            this.classCodeField = ActClassSupply.SPLY;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CD code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public ED text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        public CS statusCode {
            get {
                return this.statusCodeField;
            }
            set {
                this.statusCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("effectiveTime")]
        public SXCM_TS[] effectiveTime {
            get {
                return this.effectiveTimeField;
            }
            set {
                this.effectiveTimeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("priorityCode")]
        public CE[] priorityCode {
            get {
                return this.priorityCodeField;
            }
            set {
                this.priorityCodeField = value;
            }
        }
        
        /// <remarks/>
        public IVL_INT repeatNumber {
            get {
                return this.repeatNumberField;
            }
            set {
                this.repeatNumberField = value;
            }
        }
        
        /// <remarks/>
        public BL independentInd {
            get {
                return this.independentIndField;
            }
            set {
                this.independentIndField = value;
            }
        }
        
        /// <remarks/>
        public PQ quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS expectedUseTime {
            get {
                return this.expectedUseTimeField;
            }
            set {
                this.expectedUseTimeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Subject subject {
            get {
                return this.subjectField;
            }
            set {
                this.subjectField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("specimen")]
        public POCD_MT000040Specimen[] specimen {
            get {
                return this.specimenField;
            }
            set {
                this.specimenField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Product product {
            get {
                return this.productField;
            }
            set {
                this.productField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("performer")]
        public POCD_MT000040Performer2[] performer {
            get {
                return this.performerField;
            }
            set {
                this.performerField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("author")]
        public POCD_MT000040Author[] author {
            get {
                return this.authorField;
            }
            set {
                this.authorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("informant")]
        public POCD_MT000040Informant12[] informant {
            get {
                return this.informantField;
            }
            set {
                this.informantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("participant")]
        public POCD_MT000040Participant2[] participant {
            get {
                return this.participantField;
            }
            set {
                this.participantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("entryRelationship")]
        public POCD_MT000040EntryRelationship[] entryRelationship {
            get {
                return this.entryRelationshipField;
            }
            set {
                this.entryRelationshipField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("reference")]
        public POCD_MT000040Reference[] reference {
            get {
                return this.referenceField;
            }
            set {
                this.referenceField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("precondition")]
        public POCD_MT000040Precondition[] precondition {
            get {
                return this.preconditionField;
            }
            set {
                this.preconditionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public Subject2 subjectOf2 {
            get {
                return this.subjectOf2Field;
            }
            set {
                this.subjectOf2Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("coverage", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public Coverage[] coverage {
            get {
                return this.coverageField;
            }
            set {
                this.coverageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActClassSupply classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public x_DocumentSubstanceMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Product", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Product {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040ManufacturedProduct manufacturedProductField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ParticipationType typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        public POCD_MT000040Product() {
            this.typeCodeField = ParticipationType.PRD;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040ManufacturedProduct manufacturedProduct {
            get {
                return this.manufacturedProductField;
            }
            set {
                this.manufacturedProductField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ParticipationType typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    [System.Xml.Serialization.XmlRootAttribute("subjectOf2", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class Subject2 {
        
        private SubstitutionPermission substitutionPermissionField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActRelationshipType typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        public Subject2() {
            this.typeCodeField = ActRelationshipType.SUBJ;
        }
        
        /// <remarks/>
        public SubstitutionPermission substitutionPermission {
            get {
                return this.substitutionPermissionField;
            }
            set {
                this.substitutionPermissionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActRelationshipType typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    public partial class SubstitutionPermission {
        
        private CE codeField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClass classCodeField;
        
        private ActMood moodCodeField;
        
        public SubstitutionPermission() {
            this.classCodeField = ActClass.SUBST;
            this.moodCodeField = ActMood.PERM;
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    [System.Xml.Serialization.XmlRootAttribute("coverage", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class Coverage {
        
        private PolicyOrAccount policyOrAccountField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private string typeCodeField;
        
        public Coverage() {
            this.typeCodeField = "COVBY";
        }
        
        /// <remarks/>
        public PolicyOrAccount policyOrAccount {
            get {
                return this.policyOrAccountField;
            }
            set {
                this.policyOrAccountField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    public partial class PolicyOrAccount {
        
        private II idField;
        
        private CD codeField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClass classCodeField;
        
        private ActMood moodCodeField;
        
        public PolicyOrAccount() {
            this.classCodeField = ActClass.COV;
            this.moodCodeField = ActMood.PERM;
        }
        
        /// <remarks/>
        public II id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CD code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum ActClassSupply {
        
        /// <remarks/>
        SPLY,
        
        /// <remarks/>
        DIET,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum ActRelationshipHasComponent {
        
        /// <remarks/>
        COMP,
        
        /// <remarks/>
        ARR,
        
        /// <remarks/>
        CTRLV,
        
        /// <remarks/>
        DEP,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum x_ActClassDocumentEntryOrganizer {
        
        /// <remarks/>
        BATTERY,
        
        /// <remarks/>
        CLUSTER,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
    [System.Xml.Serialization.XmlRootAttribute("controlAct", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0", IsNullable=false)]
    public partial class ControlAct {
        
        private CS[] realmCodeField;
        
        private typeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CD codeField;
        
        private ED textField;
        
        private CS statusCodeField;
        
        private IVL_TS effectiveTimeField;
        
        private CE priorityCodeField;
        
        private POCD_MT000040Subject subjectField;
        
        private POCD_MT000040Specimen[] specimenField;
        
        private POCD_MT000040Performer2[] performerField;
        
        private POCD_MT000040Author[] authorField;
        
        private POCD_MT000040Informant12[] informantField;
        
        private POCD_MT000040Participant2[] participantField;
        
        private POCD_MT000040EntryRelationship[] entryRelationshipField;
        
        private POCD_MT000040Reference[] referenceField;
        
        private POCD_MT000040Precondition[] preconditionField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClass classCodeField;
        
        private x_DocumentActMood moodCodeField;
        
        private bool negationIndField;
        
        private bool negationIndFieldSpecified;
        
        public ControlAct() {
            this.classCodeField = ActClass.CACT;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public typeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CD code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public ED text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        public CS statusCode {
            get {
                return this.statusCodeField;
            }
            set {
                this.statusCodeField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS effectiveTime {
            get {
                return this.effectiveTimeField;
            }
            set {
                this.effectiveTimeField = value;
            }
        }
        
        /// <remarks/>
        public CE priorityCode {
            get {
                return this.priorityCodeField;
            }
            set {
                this.priorityCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Subject subject {
            get {
                return this.subjectField;
            }
            set {
                this.subjectField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("specimen")]
        public POCD_MT000040Specimen[] specimen {
            get {
                return this.specimenField;
            }
            set {
                this.specimenField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("performer")]
        public POCD_MT000040Performer2[] performer {
            get {
                return this.performerField;
            }
            set {
                this.performerField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("author")]
        public POCD_MT000040Author[] author {
            get {
                return this.authorField;
            }
            set {
                this.authorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("informant")]
        public POCD_MT000040Informant12[] informant {
            get {
                return this.informantField;
            }
            set {
                this.informantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("participant")]
        public POCD_MT000040Participant2[] participant {
            get {
                return this.participantField;
            }
            set {
                this.participantField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("entryRelationship")]
        public POCD_MT000040EntryRelationship[] entryRelationship {
            get {
                return this.entryRelationshipField;
            }
            set {
                this.entryRelationshipField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("reference")]
        public POCD_MT000040Reference[] reference {
            get {
                return this.referenceField;
            }
            set {
                this.referenceField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("precondition")]
        public POCD_MT000040Precondition[] precondition {
            get {
                return this.preconditionField;
            }
            set {
                this.preconditionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public x_DocumentActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public bool negationInd {
            get {
                return this.negationIndField;
            }
            set {
                this.negationIndField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool negationIndSpecified {
            get {
                return this.negationIndFieldSpecified;
            }
            set {
                this.negationIndFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum x_DocumentActMood {
        
        /// <remarks/>
        APT,
        
        /// <remarks/>
        ARQ,
        
        /// <remarks/>
        DEF,
        
        /// <remarks/>
        EVN,
        
        /// <remarks/>
        INT,
        
        /// <remarks/>
        PRMS,
        
        /// <remarks/>
        PRP,
        
        /// <remarks/>
        RQO,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum x_ActRelationshipEntryRelationship {
        
        /// <remarks/>
        CAUS,
        
        /// <remarks/>
        COMP,
        
        /// <remarks/>
        GEVL,
        
        /// <remarks/>
        MFST,
        
        /// <remarks/>
        REFR,
        
        /// <remarks/>
        RSON,
        
        /// <remarks/>
        SAS,
        
        /// <remarks/>
        SPRT,
        
        /// <remarks/>
        SUBJ,
        
        /// <remarks/>
        XCRPT,
        
        /// <remarks/>
        AUTH,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum x_ActClassDocumentEntryAct {
        
        /// <remarks/>
        ACCM,
        
        /// <remarks/>
        ACT,
        
        /// <remarks/>
        CONS,
        
        /// <remarks/>
        CTTEVENT,
        
        /// <remarks/>
        INC,
        
        /// <remarks/>
        INFRM,
        
        /// <remarks/>
        PCPR,
        
        /// <remarks/>
        REG,
        
        /// <remarks/>
        SPCTRT,
        
        /// <remarks/>
        TRNS,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum x_ActRelationshipEntry {
        
        /// <remarks/>
        COMP,
        
        /// <remarks/>
        DRIV,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Component3", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Component3 {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040Section sectionField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActRelationshipHasComponent typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        private bool contextConductionIndField;
        
        private bool contextConductionIndFieldSpecified;
        
        public POCD_MT000040Component3() {
            this.typeCodeField = ActRelationshipHasComponent.COMP;
            this.contextConductionIndField = true;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Section section {
            get {
                return this.sectionField;
            }
            set {
                this.sectionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActRelationshipHasComponent typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public bool contextConductionInd {
            get {
                return this.contextConductionIndField;
            }
            set {
                this.contextConductionIndField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool contextConductionIndSpecified {
            get {
                return this.contextConductionIndFieldSpecified;
            }
            set {
                this.contextConductionIndFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.StructuredBody", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040StructuredBody {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private CE confidentialityCodeField;
        
        private CS languageCodeField;
        
        private POCD_MT000040Component3[] componentField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClass classCodeField;
        
        private bool classCodeFieldSpecified;
        
        private ActMood moodCodeField;
        
        private bool moodCodeFieldSpecified;
        
        public POCD_MT000040StructuredBody() {
            this.classCodeField = ActClass.DOCBODY;
            this.moodCodeField = ActMood.EVN;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public CE confidentialityCode {
            get {
                return this.confidentialityCodeField;
            }
            set {
                this.confidentialityCodeField = value;
            }
        }
        
        /// <remarks/>
        public CS languageCode {
            get {
                return this.languageCodeField;
            }
            set {
                this.languageCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("component")]
        public POCD_MT000040Component3[] component {
            get {
                return this.componentField;
            }
            set {
                this.componentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool moodCodeSpecified {
            get {
                return this.moodCodeFieldSpecified;
            }
            set {
                this.moodCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.NonXMLBody", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040NonXMLBody {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private ED textField;
        
        private CE confidentialityCodeField;
        
        private CS languageCodeField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClass classCodeField;
        
        private bool classCodeFieldSpecified;
        
        private ActMood moodCodeField;
        
        private bool moodCodeFieldSpecified;
        
        public POCD_MT000040NonXMLBody() {
            this.classCodeField = ActClass.DOCBODY;
            this.moodCodeField = ActMood.EVN;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public ED text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        public CE confidentialityCode {
            get {
                return this.confidentialityCodeField;
            }
            set {
                this.confidentialityCodeField = value;
            }
        }
        
        /// <remarks/>
        public CS languageCode {
            get {
                return this.languageCodeField;
            }
            set {
                this.languageCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool moodCodeSpecified {
            get {
                return this.moodCodeFieldSpecified;
            }
            set {
                this.moodCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Component2", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Component2 {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040NonXMLBody nonXMLBodyField;
        
        private POCD_MT000040StructuredBody structuredBodyField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActRelationshipHasComponent typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        private bool contextConductionIndField;
        
        private bool contextConductionIndFieldSpecified;
        
        public POCD_MT000040Component2() {
            this.typeCodeField = ActRelationshipHasComponent.COMP;
            this.contextConductionIndField = true;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040NonXMLBody nonXMLBody {
            get {
                return this.nonXMLBodyField;
            }
            set {
                this.nonXMLBodyField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040StructuredBody structuredBody {
            get {
                return this.structuredBodyField;
            }
            set {
                this.structuredBodyField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActRelationshipHasComponent typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public bool contextConductionInd {
            get {
                return this.contextConductionIndField;
            }
            set {
                this.contextConductionIndField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool contextConductionIndSpecified {
            get {
                return this.contextConductionIndFieldSpecified;
            }
            set {
                this.contextConductionIndFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.HealthCareFacility", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040HealthCareFacility {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CE codeField;
        
        private POCD_MT000040Place locationField;
        
        private POCD_MT000040Organization serviceProviderOrganizationField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private RoleClassServiceDeliveryLocation classCodeField;
        
        public POCD_MT000040HealthCareFacility() {
            this.classCodeField = RoleClassServiceDeliveryLocation.SDLOC;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Place location {
            get {
                return this.locationField;
            }
            set {
                this.locationField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Organization serviceProviderOrganization {
            get {
                return this.serviceProviderOrganizationField;
            }
            set {
                this.serviceProviderOrganizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(RoleClassServiceDeliveryLocation.SDLOC)]
        public RoleClassServiceDeliveryLocation classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum RoleClassServiceDeliveryLocation {
        
        /// <remarks/>
        SDLOC,
        
        /// <remarks/>
        DSDLOC,
        
        /// <remarks/>
        ISDLOC,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Location", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Location {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040HealthCareFacility healthCareFacilityField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ParticipationTargetLocation typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        public POCD_MT000040Location() {
            this.typeCodeField = ParticipationTargetLocation.LOC;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040HealthCareFacility healthCareFacility {
            get {
                return this.healthCareFacilityField;
            }
            set {
                this.healthCareFacilityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ParticipationTargetLocation typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum ParticipationTargetLocation {
        
        /// <remarks/>
        LOC,
        
        /// <remarks/>
        DST,
        
        /// <remarks/>
        ELOC,
        
        /// <remarks/>
        ORG,
        
        /// <remarks/>
        RML,
        
        /// <remarks/>
        VIA,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.EncounterParticipant", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040EncounterParticipant {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private IVL_TS timeField;
        
        private POCD_MT000040AssignedEntity assignedEntityField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private x_EncounterParticipant typeCodeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS time {
            get {
                return this.timeField;
            }
            set {
                this.timeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040AssignedEntity assignedEntity {
            get {
                return this.assignedEntityField;
            }
            set {
                this.assignedEntityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public x_EncounterParticipant typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum x_EncounterParticipant {
        
        /// <remarks/>
        ADM,
        
        /// <remarks/>
        ATND,
        
        /// <remarks/>
        CON,
        
        /// <remarks/>
        DIS,
        
        /// <remarks/>
        REF,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.ResponsibleParty", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040ResponsibleParty {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040AssignedEntity assignedEntityField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ParticipationType typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        public POCD_MT000040ResponsibleParty() {
            this.typeCodeField = ParticipationType.RESP;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040AssignedEntity assignedEntity {
            get {
                return this.assignedEntityField;
            }
            set {
                this.assignedEntityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ParticipationType typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.EncompassingEncounter", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040EncompassingEncounter {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CE codeField;
        
        private IVL_TS effectiveTimeField;
        
        private CE dischargeDispositionCodeField;
        
        private POCD_MT000040ResponsibleParty responsiblePartyField;
        
        private POCD_MT000040EncounterParticipant[] encounterParticipantField;
        
        private POCD_MT000040Location locationField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClass classCodeField;
        
        private bool classCodeFieldSpecified;
        
        private ActMood moodCodeField;
        
        private bool moodCodeFieldSpecified;
        
        public POCD_MT000040EncompassingEncounter() {
            this.classCodeField = ActClass.ENC;
            this.moodCodeField = ActMood.EVN;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS effectiveTime {
            get {
                return this.effectiveTimeField;
            }
            set {
                this.effectiveTimeField = value;
            }
        }
        
        /// <remarks/>
        public CE dischargeDispositionCode {
            get {
                return this.dischargeDispositionCodeField;
            }
            set {
                this.dischargeDispositionCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040ResponsibleParty responsibleParty {
            get {
                return this.responsiblePartyField;
            }
            set {
                this.responsiblePartyField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("encounterParticipant")]
        public POCD_MT000040EncounterParticipant[] encounterParticipant {
            get {
                return this.encounterParticipantField;
            }
            set {
                this.encounterParticipantField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Location location {
            get {
                return this.locationField;
            }
            set {
                this.locationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool moodCodeSpecified {
            get {
                return this.moodCodeFieldSpecified;
            }
            set {
                this.moodCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Component1", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Component1 {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040EncompassingEncounter encompassingEncounterField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActRelationshipHasComponent typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        public POCD_MT000040Component1() {
            this.typeCodeField = ActRelationshipHasComponent.COMP;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040EncompassingEncounter encompassingEncounter {
            get {
                return this.encompassingEncounterField;
            }
            set {
                this.encompassingEncounterField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActRelationshipHasComponent typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Consent", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Consent {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CE codeField;
        
        private CS statusCodeField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClass classCodeField;
        
        private bool classCodeFieldSpecified;
        
        private ActMood moodCodeField;
        
        private bool moodCodeFieldSpecified;
        
        public POCD_MT000040Consent() {
            this.classCodeField = ActClass.CONS;
            this.moodCodeField = ActMood.EVN;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public CS statusCode {
            get {
                return this.statusCodeField;
            }
            set {
                this.statusCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool moodCodeSpecified {
            get {
                return this.moodCodeFieldSpecified;
            }
            set {
                this.moodCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Authorization", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Authorization {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040Consent consentField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActRelationshipType typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        public POCD_MT000040Authorization() {
            this.typeCodeField = ActRelationshipType.AUTH;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Consent consent {
            get {
                return this.consentField;
            }
            set {
                this.consentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActRelationshipType typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.ParentDocument", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040ParentDocument {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CD codeField;
        
        private ED textField;
        
        private II setIdField;
        
        private INT versionNumberField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClassClinicalDocument classCodeField;
        
        private bool classCodeFieldSpecified;
        
        private ActMood moodCodeField;
        
        private bool moodCodeFieldSpecified;
        
        public POCD_MT000040ParentDocument() {
            this.classCodeField = ActClassClinicalDocument.DOCCLIN;
            this.moodCodeField = ActMood.EVN;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CD code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public ED text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        public II setId {
            get {
                return this.setIdField;
            }
            set {
                this.setIdField = value;
            }
        }
        
        /// <remarks/>
        public INT versionNumber {
            get {
                return this.versionNumberField;
            }
            set {
                this.versionNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActClassClinicalDocument classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool moodCodeSpecified {
            get {
                return this.moodCodeFieldSpecified;
            }
            set {
                this.moodCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum ActClassClinicalDocument {
        
        /// <remarks/>
        DOCCLIN,
        
        /// <remarks/>
        CDALVLONE,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.RelatedDocument", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040RelatedDocument {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040ParentDocument parentDocumentField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private x_ActRelationshipDocument typeCodeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040ParentDocument parentDocument {
            get {
                return this.parentDocumentField;
            }
            set {
                this.parentDocumentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public x_ActRelationshipDocument typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum x_ActRelationshipDocument {
        
        /// <remarks/>
        APND,
        
        /// <remarks/>
        RPLC,
        
        /// <remarks/>
        XFRM,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Performer1", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Performer1 {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private CE functionCodeField;
        
        private IVL_TS timeField;
        
        private POCD_MT000040AssignedEntity assignedEntityField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private x_ServiceEventPerformer typeCodeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public CE functionCode {
            get {
                return this.functionCodeField;
            }
            set {
                this.functionCodeField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS time {
            get {
                return this.timeField;
            }
            set {
                this.timeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040AssignedEntity assignedEntity {
            get {
                return this.assignedEntityField;
            }
            set {
                this.assignedEntityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public x_ServiceEventPerformer typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum x_ServiceEventPerformer {
        
        /// <remarks/>
        PRF,
        
        /// <remarks/>
        SPRF,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.ServiceEvent", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040ServiceEvent {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CE codeField;
        
        private IVL_TS effectiveTimeField;
        
        private POCD_MT000040Performer1[] performerField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClassRoot classCodeField;
        
        private ActMood moodCodeField;
        
        private bool moodCodeFieldSpecified;
        
        public POCD_MT000040ServiceEvent() {
            this.classCodeField = ActClassRoot.ACT;
            this.moodCodeField = ActMood.EVN;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS effectiveTime {
            get {
                return this.effectiveTimeField;
            }
            set {
                this.effectiveTimeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("performer")]
        public POCD_MT000040Performer1[] performer {
            get {
                return this.performerField;
            }
            set {
                this.performerField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(ActClassRoot.ACT)]
        public ActClassRoot classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool moodCodeSpecified {
            get {
                return this.moodCodeFieldSpecified;
            }
            set {
                this.moodCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.DocumentationOf", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040DocumentationOf {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040ServiceEvent serviceEventField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActRelationshipType typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        public POCD_MT000040DocumentationOf() {
            this.typeCodeField = ActRelationshipType.DOC;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040ServiceEvent serviceEvent {
            get {
                return this.serviceEventField;
            }
            set {
                this.serviceEventField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActRelationshipType typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Order", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Order {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CE codeField;
        
        private CE priorityCodeField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActClassRoot classCodeField;
        
        private ActMood moodCodeField;
        
        private bool moodCodeFieldSpecified;
        
        public POCD_MT000040Order() {
            this.classCodeField = ActClassRoot.ACT;
            this.moodCodeField = ActMood.RQO;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public CE priorityCode {
            get {
                return this.priorityCodeField;
            }
            set {
                this.priorityCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(ActClassRoot.ACT)]
        public ActClassRoot classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActMood moodCode {
            get {
                return this.moodCodeField;
            }
            set {
                this.moodCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool moodCodeSpecified {
            get {
                return this.moodCodeFieldSpecified;
            }
            set {
                this.moodCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.InFulfillmentOf", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040InFulfillmentOf {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040Order orderField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ActRelationshipFulfills typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        public POCD_MT000040InFulfillmentOf() {
            this.typeCodeField = ActRelationshipFulfills.FLFS;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Order order {
            get {
                return this.orderField;
            }
            set {
                this.orderField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ActRelationshipFulfills typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum ActRelationshipFulfills {
        
        /// <remarks/>
        FLFS,
        
        /// <remarks/>
        OCCR,
        
        /// <remarks/>
        OREF,
        
        /// <remarks/>
        SCH,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.AssociatedEntity", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040AssociatedEntity {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CE codeField;
        
        private AD[] addrField;
        
        private TEL[] telecomField;
        
        private POCD_MT000040Person associatedPersonField;
        
        private POCD_MT000040Organization scopingOrganizationField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private RoleClassAssociative classCodeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("addr")]
        public AD[] addr {
            get {
                return this.addrField;
            }
            set {
                this.addrField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("telecom")]
        public TEL[] telecom {
            get {
                return this.telecomField;
            }
            set {
                this.telecomField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Person associatedPerson {
            get {
                return this.associatedPersonField;
            }
            set {
                this.associatedPersonField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Organization scopingOrganization {
            get {
                return this.scopingOrganizationField;
            }
            set {
                this.scopingOrganizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public RoleClassAssociative classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum RoleClassAssociative {
        
        /// <remarks/>
        ACCESS,
        
        /// <remarks/>
        ADMM,
        
        /// <remarks/>
        AFFL,
        
        /// <remarks/>
        AGNT,
        
        /// <remarks/>
        ASSIGNED,
        
        /// <remarks/>
        BIRTHPL,
        
        /// <remarks/>
        CAREGIVER,
        
        /// <remarks/>
        CASEBJ,
        
        /// <remarks/>
        CIT,
        
        /// <remarks/>
        CLAIM,
        
        /// <remarks/>
        COMPAR,
        
        /// <remarks/>
        CON,
        
        /// <remarks/>
        COVPTY,
        
        /// <remarks/>
        CRINV,
        
        /// <remarks/>
        CRSPNSR,
        
        /// <remarks/>
        DEATHPLC,
        
        /// <remarks/>
        DEPEN,
        
        /// <remarks/>
        DSDLOC,
        
        /// <remarks/>
        DST,
        
        /// <remarks/>
        ECON,
        
        /// <remarks/>
        EMP,
        
        /// <remarks/>
        EXPR,
        
        /// <remarks/>
        GUAR,
        
        /// <remarks/>
        GUARD,
        
        /// <remarks/>
        HLD,
        
        /// <remarks/>
        HLTHCHRT,
        
        /// <remarks/>
        IDENT,
        
        /// <remarks/>
        INDIV,
        
        /// <remarks/>
        INVSBJ,
        
        /// <remarks/>
        ISDLOC,
        
        /// <remarks/>
        LIC,
        
        /// <remarks/>
        MANU,
        
        /// <remarks/>
        MIL,
        
        /// <remarks/>
        MNT,
        
        /// <remarks/>
        NAMED,
        
        /// <remarks/>
        NOK,
        
        /// <remarks/>
        NOT,
        
        /// <remarks/>
        OWN,
        
        /// <remarks/>
        PAT,
        
        /// <remarks/>
        PAYEE,
        
        /// <remarks/>
        PAYOR,
        
        /// <remarks/>
        POLHOLD,
        
        /// <remarks/>
        PROG,
        
        /// <remarks/>
        PROV,
        
        /// <remarks/>
        PRS,
        
        /// <remarks/>
        QUAL,
        
        /// <remarks/>
        RESBJ,
        
        /// <remarks/>
        RET,
        
        /// <remarks/>
        RGPR,
        
        /// <remarks/>
        SDLOC,
        
        /// <remarks/>
        SGNOFF,
        
        /// <remarks/>
        SPNSR,
        
        /// <remarks/>
        STD,
        
        /// <remarks/>
        SUBSCR,
        
        /// <remarks/>
        TERR,
        
        /// <remarks/>
        THER,
        
        /// <remarks/>
        UNDWRT,
        
        /// <remarks/>
        USED,
        
        /// <remarks/>
        WRTE,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Participant1", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Participant1 {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private CE functionCodeField;
        
        private IVL_TS timeField;
        
        private POCD_MT000040AssociatedEntity associatedEntityField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ParticipationType typeCodeField;
        
        private ContextControl contextControlCodeField;
        
        private bool contextControlCodeFieldSpecified;
        
        public POCD_MT000040Participant1() {
            this.contextControlCodeField = ContextControl.OP;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public CE functionCode {
            get {
                return this.functionCodeField;
            }
            set {
                this.functionCodeField = value;
            }
        }
        
        /// <remarks/>
        public IVL_TS time {
            get {
                return this.timeField;
            }
            set {
                this.timeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040AssociatedEntity associatedEntity {
            get {
                return this.associatedEntityField;
            }
            set {
                this.associatedEntityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ParticipationType typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ContextControl contextControlCode {
            get {
                return this.contextControlCodeField;
            }
            set {
                this.contextControlCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool contextControlCodeSpecified {
            get {
                return this.contextControlCodeFieldSpecified;
            }
            set {
                this.contextControlCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Authenticator", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Authenticator {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private TS timeField;
        
        private CS signatureCodeField;
        
        private POCD_MT000040AssignedEntity assignedEntityField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ParticipationType typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        public POCD_MT000040Authenticator() {
            this.typeCodeField = ParticipationType.AUTHEN;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public TS time {
            get {
                return this.timeField;
            }
            set {
                this.timeField = value;
            }
        }
        
        /// <remarks/>
        public CS signatureCode {
            get {
                return this.signatureCodeField;
            }
            set {
                this.signatureCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040AssignedEntity assignedEntity {
            get {
                return this.assignedEntityField;
            }
            set {
                this.assignedEntityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ParticipationType typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.LegalAuthenticator", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040LegalAuthenticator {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private TS timeField;
        
        private CS signatureCodeField;
        
        private POCD_MT000040AssignedEntity assignedEntityField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ParticipationType typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        private ContextControl contextControlCodeField;
        
        private bool contextControlCodeFieldSpecified;
        
        public POCD_MT000040LegalAuthenticator() {
            this.typeCodeField = ParticipationType.LA;
            this.contextControlCodeField = ContextControl.OP;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public TS time {
            get {
                return this.timeField;
            }
            set {
                this.timeField = value;
            }
        }
        
        /// <remarks/>
        public CS signatureCode {
            get {
                return this.signatureCodeField;
            }
            set {
                this.signatureCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040AssignedEntity assignedEntity {
            get {
                return this.assignedEntityField;
            }
            set {
                this.assignedEntityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ParticipationType typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ContextControl contextControlCode {
            get {
                return this.contextControlCodeField;
            }
            set {
                this.contextControlCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool contextControlCodeSpecified {
            get {
                return this.contextControlCodeFieldSpecified;
            }
            set {
                this.contextControlCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.IntendedRecipient", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040IntendedRecipient {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private CE codeField;
        
        private AD[] addrField;
        
        private TEL[] telecomField;
        
        private POCD_MT000040Person informationRecipientField;
        
        private POCD_MT000040Organization receivedOrganizationField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private x_InformationRecipientRole classCodeField;
        
        public POCD_MT000040IntendedRecipient() {
            this.classCodeField = x_InformationRecipientRole.ASSIGNED;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public CE code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("addr")]
        public AD[] addr {
            get {
                return this.addrField;
            }
            set {
                this.addrField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("telecom")]
        public TEL[] telecom {
            get {
                return this.telecomField;
            }
            set {
                this.telecomField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Person informationRecipient {
            get {
                return this.informationRecipientField;
            }
            set {
                this.informationRecipientField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Organization receivedOrganization {
            get {
                return this.receivedOrganizationField;
            }
            set {
                this.receivedOrganizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(x_InformationRecipientRole.ASSIGNED)]
        public x_InformationRecipientRole classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum x_InformationRecipientRole {
        
        /// <remarks/>
        ASSIGNED,
        
        /// <remarks/>
        HLTHCHRT,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.InformationRecipient", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040InformationRecipient {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040IntendedRecipient intendedRecipientField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private x_InformationRecipient typeCodeField;
        
        public POCD_MT000040InformationRecipient() {
            this.typeCodeField = x_InformationRecipient.PRCP;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040IntendedRecipient intendedRecipient {
            get {
                return this.intendedRecipientField;
            }
            set {
                this.intendedRecipientField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(x_InformationRecipient.PRCP)]
        public x_InformationRecipient typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum x_InformationRecipient {
        
        /// <remarks/>
        PRCP,
        
        /// <remarks/>
        TRC,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.CustodianOrganization", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040CustodianOrganization {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private ON nameField;
        
        private TEL telecomField;
        
        private AD addrField;
        
        private EntityIdentifier[] asEntityIdentifierField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private EntityClassOrganization classCodeField;
        
        private bool classCodeFieldSpecified;
        
        private EntityDeterminer determinerCodeField;
        
        private bool determinerCodeFieldSpecified;
        
        public POCD_MT000040CustodianOrganization() {
            this.classCodeField = EntityClassOrganization.ORG;
            this.determinerCodeField = EntityDeterminer.INSTANCE;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public ON name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public TEL telecom {
            get {
                return this.telecomField;
            }
            set {
                this.telecomField = value;
            }
        }
        
        /// <remarks/>
        public AD addr {
            get {
                return this.addrField;
            }
            set {
                this.addrField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("asEntityIdentifier", Namespace="http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0")]
        public EntityIdentifier[] asEntityIdentifier {
            get {
                return this.asEntityIdentifierField;
            }
            set {
                this.asEntityIdentifierField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityClassOrganization classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public EntityDeterminer determinerCode {
            get {
                return this.determinerCodeField;
            }
            set {
                this.determinerCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool determinerCodeSpecified {
            get {
                return this.determinerCodeFieldSpecified;
            }
            set {
                this.determinerCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.AssignedCustodian", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040AssignedCustodian {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040CustodianOrganization representedCustodianOrganizationField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private RoleClassAssignedEntity classCodeField;
        
        private bool classCodeFieldSpecified;
        
        public POCD_MT000040AssignedCustodian() {
            this.classCodeField = RoleClassAssignedEntity.ASSIGNED;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040CustodianOrganization representedCustodianOrganization {
            get {
                return this.representedCustodianOrganizationField;
            }
            set {
                this.representedCustodianOrganizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public RoleClassAssignedEntity classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.Custodian", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040Custodian {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040AssignedCustodian assignedCustodianField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ParticipationType typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        public POCD_MT000040Custodian() {
            this.typeCodeField = ParticipationType.CST;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040AssignedCustodian assignedCustodian {
            get {
                return this.assignedCustodianField;
            }
            set {
                this.assignedCustodianField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ParticipationType typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.DataEnterer", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040DataEnterer {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private TS timeField;
        
        private POCD_MT000040AssignedEntity assignedEntityField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ParticipationType typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        private ContextControl contextControlCodeField;
        
        private bool contextControlCodeFieldSpecified;
        
        public POCD_MT000040DataEnterer() {
            this.typeCodeField = ParticipationType.ENT;
            this.contextControlCodeField = ContextControl.OP;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public TS time {
            get {
                return this.timeField;
            }
            set {
                this.timeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040AssignedEntity assignedEntity {
            get {
                return this.assignedEntityField;
            }
            set {
                this.assignedEntityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ParticipationType typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ContextControl contextControlCode {
            get {
                return this.contextControlCodeField;
            }
            set {
                this.contextControlCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool contextControlCodeSpecified {
            get {
                return this.contextControlCodeFieldSpecified;
            }
            set {
                this.contextControlCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.PatientRole", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040PatientRole {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private II[] idField;
        
        private AD[] addrField;
        
        private TEL[] telecomField;
        
        private POCD_MT000040Patient patientField;
        
        private POCD_MT000040Organization providerOrganizationField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private RoleClass classCodeField;
        
        private bool classCodeFieldSpecified;
        
        public POCD_MT000040PatientRole() {
            this.classCodeField = RoleClass.PAT;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("id")]
        public II[] id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("addr")]
        public AD[] addr {
            get {
                return this.addrField;
            }
            set {
                this.addrField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("telecom")]
        public TEL[] telecom {
            get {
                return this.telecomField;
            }
            set {
                this.telecomField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Patient patient {
            get {
                return this.patientField;
            }
            set {
                this.patientField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040Organization providerOrganization {
            get {
                return this.providerOrganizationField;
            }
            set {
                this.providerOrganizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public RoleClass classCode {
            get {
                return this.classCodeField;
            }
            set {
                this.classCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool classCodeSpecified {
            get {
                return this.classCodeFieldSpecified;
            }
            set {
                this.classCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="POCD_MT000040.RecordTarget", Namespace="urn:hl7-org:v3")]
    public partial class POCD_MT000040RecordTarget {
        
        private CS[] realmCodeField;
        
        private POCD_MT000040InfrastructureRoottypeId typeIdField;
        
        private II[] templateIdField;
        
        private POCD_MT000040PatientRole patientRoleField;
        
        private NullFlavor nullFlavorField;
        
        private bool nullFlavorFieldSpecified;
        
        private ParticipationType typeCodeField;
        
        private bool typeCodeFieldSpecified;
        
        private ContextControl contextControlCodeField;
        
        private bool contextControlCodeFieldSpecified;
        
        public POCD_MT000040RecordTarget() {
            this.typeCodeField = ParticipationType.RCT;
            this.contextControlCodeField = ContextControl.OP;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("realmCode")]
        public CS[] realmCode {
            get {
                return this.realmCodeField;
            }
            set {
                this.realmCodeField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040InfrastructureRoottypeId typeId {
            get {
                return this.typeIdField;
            }
            set {
                this.typeIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("templateId")]
        public II[] templateId {
            get {
                return this.templateIdField;
            }
            set {
                this.templateIdField = value;
            }
        }
        
        /// <remarks/>
        public POCD_MT000040PatientRole patientRole {
            get {
                return this.patientRoleField;
            }
            set {
                this.patientRoleField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public NullFlavor nullFlavor {
            get {
                return this.nullFlavorField;
            }
            set {
                this.nullFlavorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nullFlavorSpecified {
            get {
                return this.nullFlavorFieldSpecified;
            }
            set {
                this.nullFlavorFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ParticipationType typeCode {
            get {
                return this.typeCodeField;
            }
            set {
                this.typeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool typeCodeSpecified {
            get {
                return this.typeCodeFieldSpecified;
            }
            set {
                this.typeCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ContextControl contextControlCode {
            get {
                return this.contextControlCodeField;
            }
            set {
                this.contextControlCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool contextControlCodeSpecified {
            get {
                return this.contextControlCodeFieldSpecified;
            }
            set {
                this.contextControlCodeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class GLIST_PQ : ANY {
        
        private PQ headField;
        
        private PQ incrementField;
        
        private string periodField;
        
        private string denominatorField;
        
        /// <remarks/>
        public PQ head {
            get {
                return this.headField;
            }
            set {
                this.headField = value;
            }
        }
        
        /// <remarks/>
        public PQ increment {
            get {
                return this.incrementField;
            }
            set {
                this.incrementField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="integer")]
        public string period {
            get {
                return this.periodField;
            }
            set {
                this.periodField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="integer")]
        public string denominator {
            get {
                return this.denominatorField;
            }
            set {
                this.denominatorField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class GLIST_TS : ANY {
        
        private TS headField;
        
        private PQ incrementField;
        
        private string periodField;
        
        private string denominatorField;
        
        /// <remarks/>
        public TS head {
            get {
                return this.headField;
            }
            set {
                this.headField = value;
            }
        }
        
        /// <remarks/>
        public PQ increment {
            get {
                return this.incrementField;
            }
            set {
                this.incrementField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="integer")]
        public string period {
            get {
                return this.periodField;
            }
            set {
                this.periodField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="integer")]
        public string denominator {
            get {
                return this.denominatorField;
            }
            set {
                this.denominatorField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class SLIST_TS : ANY {
        
        private TS originField;
        
        private PQ scaleField;
        
        private string digitsField;
        
        /// <remarks/>
        public TS origin {
            get {
                return this.originField;
            }
            set {
                this.originField = value;
            }
        }
        
        /// <remarks/>
        public PQ scale {
            get {
                return this.scaleField;
            }
            set {
                this.scaleField = value;
            }
        }
        
        /// <remarks/>
        public string digits {
            get {
                return this.digitsField;
            }
            set {
                this.digitsField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class SLIST_PQ : ANY {
        
        private PQ originField;
        
        private PQ scaleField;
        
        private string digitsField;
        
        /// <remarks/>
        public PQ origin {
            get {
                return this.originField;
            }
            set {
                this.originField = value;
            }
        }
        
        /// <remarks/>
        public PQ scale {
            get {
                return this.scaleField;
            }
            set {
                this.scaleField = value;
            }
        }
        
        /// <remarks/>
        public string digits {
            get {
                return this.digitsField;
            }
            set {
                this.digitsField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class CR : ANY {
        
        private CV nameField;
        
        private CD valueField;
        
        private bool invertedField;
        
        public CR() {
            this.invertedField = false;
        }
        
        /// <remarks/>
        public CV name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public CD value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(false)]
        public bool inverted {
            get {
                return this.invertedField;
            }
            set {
                this.invertedField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(TEL))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public abstract partial class URL : ANY {
        
        private string valueField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="anyURI")]
        public string value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ED))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ST))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ENXP))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ensuffix))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(enprefix))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(engiven))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(enfamily))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(endelimiter))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ADXP))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpprecinct))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxppostBox))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpbuildingNumberSuffix))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryModeIdentifier))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryMode))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryInstallationQualifier))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryInstallationArea))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryInstallationType))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdeliveryAddressLine))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcensusTract))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcareOf))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpunitType))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpunitID))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpadditionalLocator))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetNameType))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetNameBase))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetName))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdirection))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxphouseNumberNumeric))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxphouseNumber))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstreetAddressLine))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxppostalCode))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcity))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcounty))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpstate))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpcountry))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(adxpdelimiter))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SC))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(thumbnail))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public abstract partial class BIN : ANY {
        
        private BinaryDataEncoding representationField;
        
        private string[] textField;
        
        public BIN() {
            this.representationField = BinaryDataEncoding.TXT;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(BinaryDataEncoding.TXT)]
        public BinaryDataEncoding representation {
            get {
                return this.representationField;
            }
            set {
                this.representationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum BinaryDataEncoding {
        
        /// <remarks/>
        B64,
        
        /// <remarks/>
        TXT,
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(BN))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class ANYNonNull : ANY {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class BN : ANYNonNull {
        
        private bool valueField;
        
        private bool valueFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public bool value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool valueSpecified {
            get {
                return this.valueFieldSpecified;
            }
            set {
                this.valueFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class RTO_MO_PQ : QTY {
        
        private MO numeratorField;
        
        private PQ denominatorField;
        
        /// <remarks/>
        public MO numerator {
            get {
                return this.numeratorField;
            }
            set {
                this.numeratorField = value;
            }
        }
        
        /// <remarks/>
        public PQ denominator {
            get {
                return this.denominatorField;
            }
            set {
                this.denominatorField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_MO))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_MO))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_MO))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class MO : QTY {
        
        private string valueField;
        
        private string currencyField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="token")]
        public string currency {
            get {
                return this.currencyField;
            }
            set {
                this.currencyField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class IVXB_MO : MO {
        
        private bool inclusiveField;
        
        public IVXB_MO() {
            this.inclusiveField = true;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(true)]
        public bool inclusive {
            get {
                return this.inclusiveField;
            }
            set {
                this.inclusiveField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_MO))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class SXCM_MO : MO {
        
        private SetOperator operatorField;
        
        public SXCM_MO() {
            this.operatorField = SetOperator.I;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(SetOperator.I)]
        public SetOperator @operator {
            get {
                return this.operatorField;
            }
            set {
                this.operatorField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class IVL_MO : SXCM_MO {
        
        private MO[] itemsField;
        
        private ItemsChoiceType7[] itemsElementNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("center", typeof(MO))]
        [System.Xml.Serialization.XmlElementAttribute("high", typeof(IVXB_MO))]
        [System.Xml.Serialization.XmlElementAttribute("low", typeof(IVXB_MO))]
        [System.Xml.Serialization.XmlElementAttribute("width", typeof(MO))]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public MO[] Items {
            get {
                return this.itemsField;
            }
            set {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemsChoiceType7[] ItemsElementName {
            get {
                return this.itemsElementNameField;
            }
            set {
                this.itemsElementNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3", IncludeInSchema=false)]
    public enum ItemsChoiceType7 {
        
        /// <remarks/>
        center,
        
        /// <remarks/>
        high,
        
        /// <remarks/>
        low,
        
        /// <remarks/>
        width,
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_REAL))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_REAL))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_REAL))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class REAL : QTY {
        
        private string valueField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class IVXB_REAL : REAL {
        
        private bool inclusiveField;
        
        public IVXB_REAL() {
            this.inclusiveField = true;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(true)]
        public bool inclusive {
            get {
                return this.inclusiveField;
            }
            set {
                this.inclusiveField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_REAL))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class SXCM_REAL : REAL {
        
        private SetOperator operatorField;
        
        public SXCM_REAL() {
            this.operatorField = SetOperator.I;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(SetOperator.I)]
        public SetOperator @operator {
            get {
                return this.operatorField;
            }
            set {
                this.operatorField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class IVL_REAL : SXCM_REAL {
        
        private REAL[] itemsField;
        
        private ItemsChoiceType6[] itemsElementNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("center", typeof(REAL))]
        [System.Xml.Serialization.XmlElementAttribute("high", typeof(IVXB_REAL))]
        [System.Xml.Serialization.XmlElementAttribute("low", typeof(IVXB_REAL))]
        [System.Xml.Serialization.XmlElementAttribute("width", typeof(REAL))]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public REAL[] Items {
            get {
                return this.itemsField;
            }
            set {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemsChoiceType6[] ItemsElementName {
            get {
                return this.itemsElementNameField;
            }
            set {
                this.itemsElementNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3", IncludeInSchema=false)]
    public enum ItemsChoiceType6 {
        
        /// <remarks/>
        center,
        
        /// <remarks/>
        high,
        
        /// <remarks/>
        low,
        
        /// <remarks/>
        width,
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(RTO))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class RTO_QTY_QTY : QTY {
        
        private QTY numeratorField;
        
        private QTY denominatorField;
        
        /// <remarks/>
        public QTY numerator {
            get {
                return this.numeratorField;
            }
            set {
                this.numeratorField = value;
            }
        }
        
        /// <remarks/>
        public QTY denominator {
            get {
                return this.denominatorField;
            }
            set {
                this.denominatorField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class RTO : RTO_QTY_QTY {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class UVP_TS : TS {
        
        private double probabilityField;
        
        private bool probabilityFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public double probability {
            get {
                return this.probabilityField;
            }
            set {
                this.probabilityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool probabilitySpecified {
            get {
                return this.probabilityFieldSpecified;
            }
            set {
                this.probabilityFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVXB_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SXCM_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(EIVL_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PIVL_PPD_TS))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class PPD_TS : TS {
        
        private PQ standardDeviationField;
        
        private ProbabilityDistributionType distributionTypeField;
        
        private bool distributionTypeFieldSpecified;
        
        /// <remarks/>
        public PQ standardDeviation {
            get {
                return this.standardDeviationField;
            }
            set {
                this.standardDeviationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public ProbabilityDistributionType distributionType {
            get {
                return this.distributionTypeField;
            }
            set {
                this.distributionTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool distributionTypeSpecified {
            get {
                return this.distributionTypeFieldSpecified;
            }
            set {
                this.distributionTypeFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class IVXB_PPD_TS : PPD_TS {
        
        private bool inclusiveField;
        
        public IVXB_PPD_TS() {
            this.inclusiveField = true;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(true)]
        public bool inclusive {
            get {
                return this.inclusiveField;
            }
            set {
                this.inclusiveField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(EIVL_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(IVL_PPD_TS))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(PIVL_PPD_TS))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class SXCM_PPD_TS : PPD_TS {
        
        private SetOperator operatorField;
        
        public SXCM_PPD_TS() {
            this.operatorField = SetOperator.I;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(SetOperator.I)]
        public SetOperator @operator {
            get {
                return this.operatorField;
            }
            set {
                this.operatorField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class EIVL_PPD_TS : SXCM_PPD_TS {
        
        private EIVLevent eventField;
        
        private IVL_PPD_PQ offsetField;
        
        /// <remarks/>
        public EIVLevent @event {
            get {
                return this.eventField;
            }
            set {
                this.eventField = value;
            }
        }
        
        /// <remarks/>
        public IVL_PPD_PQ offset {
            get {
                return this.offsetField;
            }
            set {
                this.offsetField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="EIVL.event", Namespace="urn:hl7-org:v3")]
    public partial class EIVLevent : CE {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class IVL_PPD_TS : SXCM_PPD_TS {
        
        private QTY[] itemsField;
        
        private ItemsChoiceType4[] itemsElementNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("center", typeof(PPD_TS))]
        [System.Xml.Serialization.XmlElementAttribute("high", typeof(IVXB_PPD_TS))]
        [System.Xml.Serialization.XmlElementAttribute("low", typeof(IVXB_PPD_TS))]
        [System.Xml.Serialization.XmlElementAttribute("width", typeof(PPD_PQ))]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public QTY[] Items {
            get {
                return this.itemsField;
            }
            set {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemsChoiceType4[] ItemsElementName {
            get {
                return this.itemsElementNameField;
            }
            set {
                this.itemsElementNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3", IncludeInSchema=false)]
    public enum ItemsChoiceType4 {
        
        /// <remarks/>
        center,
        
        /// <remarks/>
        high,
        
        /// <remarks/>
        low,
        
        /// <remarks/>
        width,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class PIVL_PPD_TS : SXCM_PPD_TS {
        
        private IVL_PPD_TS phaseField;
        
        private PPD_PQ periodField;
        
        private CalendarCycle alignmentField;
        
        private bool alignmentFieldSpecified;
        
        private bool institutionSpecified1Field;
        
        public PIVL_PPD_TS() {
            this.institutionSpecified1Field = false;
        }
        
        /// <remarks/>
        public IVL_PPD_TS phase {
            get {
                return this.phaseField;
            }
            set {
                this.phaseField = value;
            }
        }
        
        /// <remarks/>
        public PPD_PQ period {
            get {
                return this.periodField;
            }
            set {
                this.periodField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public CalendarCycle alignment {
            get {
                return this.alignmentField;
            }
            set {
                this.alignmentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool alignmentSpecified {
            get {
                return this.alignmentFieldSpecified;
            }
            set {
                this.alignmentFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute("institutionSpecified")]
        [System.ComponentModel.DefaultValueAttribute(false)]
        public bool institutionSpecified1 {
            get {
                return this.institutionSpecified1Field;
            }
            set {
                this.institutionSpecified1Field = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum CalendarCycle {
        
        /// <remarks/>
        CD,
        
        /// <remarks/>
        CH,
        
        /// <remarks/>
        CM,
        
        /// <remarks/>
        CN,
        
        /// <remarks/>
        CS,
        
        /// <remarks/>
        CW,
        
        /// <remarks/>
        CY,
        
        /// <remarks/>
        D,
        
        /// <remarks/>
        DM,
        
        /// <remarks/>
        DW,
        
        /// <remarks/>
        DY,
        
        /// <remarks/>
        H,
        
        /// <remarks/>
        HD,
        
        /// <remarks/>
        J,
        
        /// <remarks/>
        M,
        
        /// <remarks/>
        MY,
        
        /// <remarks/>
        N,
        
        /// <remarks/>
        NH,
        
        /// <remarks/>
        S,
        
        /// <remarks/>
        SN,
        
        /// <remarks/>
        W,
        
        /// <remarks/>
        WY,
        
        /// <remarks/>
        Y,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class SXPR_TS : SXCM_TS {
        
        private SXCM_TS[] compField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("comp")]
        public SXCM_TS[] comp {
            get {
                return this.compField;
            }
            set {
                this.compField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class EIVL_TS : SXCM_TS {
        
        private EIVLevent eventField;
        
        private IVL_PQ offsetField;
        
        /// <remarks/>
        public EIVLevent @event {
            get {
                return this.eventField;
            }
            set {
                this.eventField = value;
            }
        }
        
        /// <remarks/>
        public IVL_PQ offset {
            get {
                return this.offsetField;
            }
            set {
                this.offsetField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class PIVL_TS : SXCM_TS {
        
        private IVL_TS phaseField;
        
        private PQ periodField;
        
        private RTO frequencyField;
        
        private CalendarCycle alignmentField;
        
        private bool alignmentFieldSpecified;
        
        private bool institutionSpecified1Field;
        
        public PIVL_TS() {
            this.institutionSpecified1Field = false;
        }
        
        /// <remarks/>
        public IVL_TS phase {
            get {
                return this.phaseField;
            }
            set {
                this.phaseField = value;
            }
        }
        
        /// <remarks/>
        public PQ period {
            get {
                return this.periodField;
            }
            set {
                this.periodField = value;
            }
        }
        
        /// <remarks/>
        public RTO frequency {
            get {
                return this.frequencyField;
            }
            set {
                this.frequencyField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public CalendarCycle alignment {
            get {
                return this.alignmentField;
            }
            set {
                this.alignmentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool alignmentSpecified {
            get {
                return this.alignmentFieldSpecified;
            }
            set {
                this.alignmentFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute("institutionSpecified")]
        [System.ComponentModel.DefaultValueAttribute(false)]
        public bool institutionSpecified1 {
            get {
                return this.institutionSpecified1Field;
            }
            set {
                this.institutionSpecified1Field = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum TelecommunicationAddressUse {
        
        /// <remarks/>
        BAD,
        
        /// <remarks/>
        CONF,
        
        /// <remarks/>
        H,
        
        /// <remarks/>
        HP,
        
        /// <remarks/>
        HV,
        
        /// <remarks/>
        TMP,
        
        /// <remarks/>
        WP,
        
        /// <remarks/>
        DIR,
        
        /// <remarks/>
        PUB,
        
        /// <remarks/>
        AS,
        
        /// <remarks/>
        EC,
        
        /// <remarks/>
        MC,
        
        /// <remarks/>
        PG,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class thumbnail : ED {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum CompressionAlgorithm {
        
        /// <remarks/>
        DF,
        
        /// <remarks/>
        GZ,
        
        /// <remarks/>
        Z,
        
        /// <remarks/>
        ZL,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public enum IntegrityCheckAlgorithm {
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("SHA-1")]
        SHA1,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("SHA-256")]
        SHA256,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class BXIT_CD : CD {
        
        private string qtyField;
        
        public BXIT_CD() {
            this.qtyField = "1";
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="integer")]
        [System.ComponentModel.DefaultValueAttribute("1")]
        public string qty {
            get {
                return this.qtyField;
            }
            set {
                this.qtyField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class SXCM_CD : CD {
        
        private SetOperator operatorField;
        
        public SXCM_CD() {
            this.operatorField = SetOperator.I;
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute(SetOperator.I)]
        public SetOperator @operator {
            get {
                return this.operatorField;
            }
            set {
                this.operatorField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class HXIT_CE : CE {
        
        private IVL_TS validTimeField;
        
        /// <remarks/>
        public IVL_TS validTime {
            get {
                return this.validTimeField;
            }
            set {
                this.validTimeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:hl7-org:v3")]
    public partial class CO : CV {
    }
}
