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

namespace Nehta.VendorLibrary.PCEHR.PCEHRProfile
{
    
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/wsp/xsd/StandardError/2010")]
    public partial class StandardErrorType
    {
        
        private StandardErrorCodeType errorCodeField;
        
        private string messageField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public StandardErrorCodeType errorCode
        {
            get
            {
                return this.errorCodeField;
            }
            set
            {
                this.errorCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string message
        {
            get
            {
                return this.messageField;
            }
            set
            {
                this.messageField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/wsp/xsd/StandardError/2010")]
    public enum StandardErrorCodeType
    {
        
        /// <remarks/>
        servicePermanentUnavailable,
        
        /// <remarks/>
        serviceTemporaryUnavailable,
        
        /// <remarks/>
        certificateSkiMissing,
        
        /// <remarks/>
        certificateKeyUsage,
        
        /// <remarks/>
        invalidCredentials,
        
        /// <remarks/>
        notAuthenticated,
        
        /// <remarks/>
        notAuthorised,
        
        /// <remarks/>
        badParam,
        
        /// <remarks/>
        badlyFormedMsg,
        
        /// <remarks/>
        badTimestamp,
        
        /// <remarks/>
        badSignature,
        
        /// <remarks/>
        badEncryption,
        
        /// <remarks/>
        badSigEncOrder,
        
        /// <remarks/>
        badCertificateTransmitted,
        
        /// <remarks/>
        badWsaAction,
        
        /// <remarks/>
        badWsaMessageId,
        
        /// <remarks/>
        badWsaTo,
        
        /// <remarks/>
        badAlgorithmDataEncryption,
        
        /// <remarks/>
        badAlgorithmKeyEncryption,
        
        /// <remarks/>
        badAlgorithmC14N,
        
        /// <remarks/>
        badAlgorithmDigest,
        
        /// <remarks/>
        badAlgorithmSignature,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class contactPersonTypeSupp
    {
        
        private contactPersonTypeSuppType typeField;
        
        private string nameField;
        
        private string phoneNumberField;
        
        private string emailAddressField;
        
        private string relationshipField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public contactPersonTypeSuppType type
        {
            get
            {
                return this.typeField;
            }
            set
            {
                this.typeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string name
        {
            get
            {
                return this.nameField;
            }
            set
            {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=2)]
        public string phoneNumber
        {
            get
            {
                return this.phoneNumberField;
            }
            set
            {
                this.phoneNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=3)]
        public string emailAddress
        {
            get
            {
                return this.emailAddressField;
            }
            set
            {
                this.emailAddressField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=4)]
        public string relationship
        {
            get
            {
                return this.relationshipField;
            }
            set
            {
                this.relationshipField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum contactPersonTypeSuppType
    {
        
        /// <remarks/>
        Emergency,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("Next of Kin")]
        NextofKin,
        
        /// <remarks/>
        Carer,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class individualTypeSupp
    {
        
        private nameTypeSupp nameField;
        
        private sex sexField;
        
        private System.DateTime dateOfBirthField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public nameTypeSupp name
        {
            get
            {
                return this.nameField;
            }
            set
            {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public sex sex
        {
            get
            {
                return this.sexField;
            }
            set
            {
                this.sexField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="date", Order=2)]
        public System.DateTime dateOfBirth
        {
            get
            {
                return this.dateOfBirthField;
            }
            set
            {
                this.dateOfBirthField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class nameTypeSupp
    {
        
        private nameTitle nameTitleField;
        
        private bool nameTitleFieldSpecified;
        
        private string familyNameField;
        
        private string[] givenNameField;
        
        private nameSuffix nameSuffixField;
        
        private bool nameSuffixFieldSpecified;
        
        private usage usageField;
        
        private bool usageFieldSpecified;
        
        private preferred preferredField;
        
        private bool preferredFieldSpecified;
        
        private conditionalUse conditionalUseField;
        
        private bool conditionalUseFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public nameTitle nameTitle
        {
            get
            {
                return this.nameTitleField;
            }
            set
            {
                this.nameTitleField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nameTitleSpecified
        {
            get
            {
                return this.nameTitleFieldSpecified;
            }
            set
            {
                this.nameTitleFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string familyName
        {
            get
            {
                return this.familyNameField;
            }
            set
            {
                this.familyNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("givenName", Order=2)]
        public string[] givenName
        {
            get
            {
                return this.givenNameField;
            }
            set
            {
                this.givenNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=3)]
        public nameSuffix nameSuffix
        {
            get
            {
                return this.nameSuffixField;
            }
            set
            {
                this.nameSuffixField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool nameSuffixSpecified
        {
            get
            {
                return this.nameSuffixFieldSpecified;
            }
            set
            {
                this.nameSuffixFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=4)]
        public usage usage
        {
            get
            {
                return this.usageField;
            }
            set
            {
                this.usageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool usageSpecified
        {
            get
            {
                return this.usageFieldSpecified;
            }
            set
            {
                this.usageFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=5)]
        public preferred preferred
        {
            get
            {
                return this.preferredField;
            }
            set
            {
                this.preferredField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool preferredSpecified
        {
            get
            {
                return this.preferredFieldSpecified;
            }
            set
            {
                this.preferredFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=6)]
        public conditionalUse conditionalUse
        {
            get
            {
                return this.conditionalUseField;
            }
            set
            {
                this.conditionalUseField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool conditionalUseSpecified
        {
            get
            {
                return this.conditionalUseFieldSpecified;
            }
            set
            {
                this.conditionalUseFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum nameTitle
    {
        
        /// <remarks/>
        ABBOT,
        
        /// <remarks/>
        AB,
        
        /// <remarks/>
        ADML,
        
        /// <remarks/>
        ACM,
        
        /// <remarks/>
        AIRCDRE,
        
        /// <remarks/>
        AM,
        
        /// <remarks/>
        AVM,
        
        /// <remarks/>
        AC,
        
        /// <remarks/>
        ACW,
        
        /// <remarks/>
        ALD,
        
        /// <remarks/>
        AMBSR,
        
        /// <remarks/>
        ARCHBISHOP,
        
        /// <remarks/>
        ARCHDEACON,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("ASSOC PROF")]
        ASSOCPROF,
        
        /// <remarks/>
        BARON,
        
        /// <remarks/>
        BARONESS,
        
        /// <remarks/>
        BISHOP,
        
        /// <remarks/>
        BDR,
        
        /// <remarks/>
        BRIG,
        
        /// <remarks/>
        BR,
        
        /// <remarks/>
        CDT,
        
        /// <remarks/>
        CANON,
        
        /// <remarks/>
        CAPT,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("CAPT, RAN")]
        CAPTRAN,
        
        /// <remarks/>
        CARDNL,
        
        /// <remarks/>
        CHAP,
        
        /// <remarks/>
        CPO,
        
        /// <remarks/>
        COL,
        
        /// <remarks/>
        CMDR,
        
        /// <remarks/>
        CMM,
        
        /// <remarks/>
        CDRE,
        
        /// <remarks/>
        CONST,
        
        /// <remarks/>
        CONSUL,
        
        /// <remarks/>
        CPL,
        
        /// <remarks/>
        COUNT,
        
        /// <remarks/>
        COUNTESS,
        
        /// <remarks/>
        DAME,
        
        /// <remarks/>
        DEACON,
        
        /// <remarks/>
        DEACONESS,
        
        /// <remarks/>
        DEAN,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("DEPUTY SUPT")]
        DEPUTYSUPT,
        
        /// <remarks/>
        DIRECTOR,
        
        /// <remarks/>
        DR,
        
        /// <remarks/>
        EARL,
        
        /// <remarks/>
        ENGR,
        
        /// <remarks/>
        FR,
        
        /// <remarks/>
        FLTLT,
        
        /// <remarks/>
        FSGT,
        
        /// <remarks/>
        FLGOFF,
        
        /// <remarks/>
        GEN,
        
        /// <remarks/>
        GOV,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("GP CAPT")]
        GPCAPT,
        
        /// <remarks/>
        HON,
        
        /// <remarks/>
        JUDGE,
        
        /// <remarks/>
        JUSTICE,
        
        /// <remarks/>
        LADY,
        
        /// <remarks/>
        LBDR,
        
        /// <remarks/>
        LCPL,
        
        /// <remarks/>
        LAC,
        
        /// <remarks/>
        LACW,
        
        /// <remarks/>
        LS,
        
        /// <remarks/>
        LT,
        
        /// <remarks/>
        LEUT,
        
        /// <remarks/>
        LTCOL,
        
        /// <remarks/>
        LCDR,
        
        /// <remarks/>
        LTGEN,
        
        /// <remarks/>
        LTGOV,
        
        /// <remarks/>
        LORD,
        
        /// <remarks/>
        MADAM,
        
        /// <remarks/>
        MADAME,
        
        /// <remarks/>
        MAJ,
        
        /// <remarks/>
        MAJGEN,
        
        /// <remarks/>
        MGR,
        
        /// <remarks/>
        MSTR,
        
        /// <remarks/>
        MAYOR,
        
        /// <remarks/>
        MAYORESS,
        
        /// <remarks/>
        MIDN,
        
        /// <remarks/>
        MISS,
        
        /// <remarks/>
        MR,
        
        /// <remarks/>
        MON,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("MOST REV")]
        MOSTREV,
        
        /// <remarks/>
        MTHR,
        
        /// <remarks/>
        MRS,
        
        /// <remarks/>
        MS,
        
        /// <remarks/>
        NURSE,
        
        /// <remarks/>
        OCDT,
        
        /// <remarks/>
        PASTOR,
        
        /// <remarks/>
        PO,
        
        /// <remarks/>
        PLTOFF,
        
        /// <remarks/>
        PTE,
        
        /// <remarks/>
        PROF,
        
        /// <remarks/>
        RABBI,
        
        /// <remarks/>
        RADM,
        
        /// <remarks/>
        RECTOR,
        
        /// <remarks/>
        RSM,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("RSM-A")]
        RSMA,
        
        /// <remarks/>
        REV,
        
        /// <remarks/>
        RTHON,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("RT REV")]
        RTREV,
        
        /// <remarks/>
        SMN,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("2LT")]
        Item2LT,
        
        /// <remarks/>
        SEN,
        
        /// <remarks/>
        SNR,
        
        /// <remarks/>
        SGT,
        
        /// <remarks/>
        SIR,
        
        /// <remarks/>
        SR,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("SISTER SUP")]
        SISTERSUP,
        
        /// <remarks/>
        SQNLDR,
        
        /// <remarks/>
        SCDT,
        
        /// <remarks/>
        SSGT,
        
        /// <remarks/>
        SM,
        
        /// <remarks/>
        SBLT,
        
        /// <remarks/>
        SUPT,
        
        /// <remarks/>
        SWAMI,
        
        /// <remarks/>
        VADM,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("VCE CMNDR")]
        VCECMNDR,
        
        /// <remarks/>
        VISCOUNT,
        
        /// <remarks/>
        WOFF,
        
        /// <remarks/>
        WO,
        
        /// <remarks/>
        WO1,
        
        /// <remarks/>
        WO2,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("WOFF-AF")]
        WOFFAF,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("WO-N")]
        WON,
        
        /// <remarks/>
        WCDR,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum nameSuffix
    {
        
        /// <remarks/>
        BM,
        
        /// <remarks/>
        BEM,
        
        /// <remarks/>
        COMDC,
        
        /// <remarks/>
        CH,
        
        /// <remarks/>
        AC,
        
        /// <remarks/>
        CV,
        
        /// <remarks/>
        DCMG,
        
        /// <remarks/>
        DCB,
        
        /// <remarks/>
        DBE,
        
        /// <remarks/>
        DCVO,
        
        /// <remarks/>
        AD,
        
        /// <remarks/>
        DFM,
        
        /// <remarks/>
        DSC,
        
        /// <remarks/>
        DSM,
        
        /// <remarks/>
        VIII,
        
        /// <remarks/>
        ESQ,
        
        /// <remarks/>
        V,
        
        /// <remarks/>
        I,
        
        /// <remarks/>
        IV,
        
        /// <remarks/>
        GC,
        
        /// <remarks/>
        JNR,
        
        /// <remarks/>
        JP,
        
        /// <remarks/>
        KB,
        
        /// <remarks/>
        KCMG,
        
        /// <remarks/>
        KCB,
        
        /// <remarks/>
        KBE,
        
        /// <remarks/>
        KCVO,
        
        /// <remarks/>
        KG,
        
        /// <remarks/>
        AK,
        
        /// <remarks/>
        KT,
        
        /// <remarks/>
        MD,
        
        /// <remarks/>
        OAM,
        
        /// <remarks/>
        MP,
        
        /// <remarks/>
        MHA,
        
        /// <remarks/>
        MHR,
        
        /// <remarks/>
        MLA,
        
        /// <remarks/>
        MLC,
        
        /// <remarks/>
        AM,
        
        /// <remarks/>
        MBE,
        
        /// <remarks/>
        MC,
        
        /// <remarks/>
        IX,
        
        /// <remarks/>
        OC,
        
        /// <remarks/>
        AO,
        
        /// <remarks/>
        OBE,
        
        /// <remarks/>
        OM,
        
        /// <remarks/>
        QC,
        
        /// <remarks/>
        II,
        
        /// <remarks/>
        SNR,
        
        /// <remarks/>
        VII,
        
        /// <remarks/>
        VI,
        
        /// <remarks/>
        SC,
        
        /// <remarks/>
        X,
        
        /// <remarks/>
        III,
        
        /// <remarks/>
        VC,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum usage
    {
        
        /// <remarks/>
        M,
        
        /// <remarks/>
        N,
        
        /// <remarks/>
        O,
        
        /// <remarks/>
        B,
        
        /// <remarks/>
        L,
        
        /// <remarks/>
        R,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum preferred
    {
        
        /// <remarks/>
        @true,
        
        /// <remarks/>
        @false,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum conditionalUse
    {
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("1")]
        Item1,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("2")]
        Item2,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("3")]
        Item3,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("4")]
        Item4,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum sex
    {
        
        /// <remarks/>
        M,
        
        /// <remarks/>
        F,
        
        /// <remarks/>
        I,
        
        /// <remarks/>
        N,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class organisationTypeSupp
    {
        
        private string hpioNumberField;
        
        private string[] nameField;
        
        private organisationServiceType[] organisationServiceField;
        
        private organisationTypeSuppParticipatingOrganisation[] participatingOrganisationField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public string hpioNumber
        {
            get
            {
                return this.hpioNumberField;
            }
            set
            {
                this.hpioNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("name", Order=1)]
        public string[] name
        {
            get
            {
                return this.nameField;
            }
            set
            {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("organisationService", Order=2)]
        public organisationServiceType[] organisationService
        {
            get
            {
                return this.organisationServiceField;
            }
            set
            {
                this.organisationServiceField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("participatingOrganisation", Order=3)]
        public organisationTypeSuppParticipatingOrganisation[] participatingOrganisation
        {
            get
            {
                return this.participatingOrganisationField;
            }
            set
            {
                this.participatingOrganisationField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class organisationServiceType
    {
        
        private string organisationTypeField;
        
        private string organisationServiceType1Field;
        
        private string organisationServiceUnitField;
        
        private string serviceCommentsField;
        
        private organisationServiceTypeComplexDate[] complexDateField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public string organisationType
        {
            get
            {
                return this.organisationTypeField;
            }
            set
            {
                this.organisationTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("organisationServiceType", Order=1)]
        public string organisationServiceType1
        {
            get
            {
                return this.organisationServiceType1Field;
            }
            set
            {
                this.organisationServiceType1Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=2)]
        public string organisationServiceUnit
        {
            get
            {
                return this.organisationServiceUnitField;
            }
            set
            {
                this.organisationServiceUnitField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=3)]
        public string serviceComments
        {
            get
            {
                return this.serviceCommentsField;
            }
            set
            {
                this.serviceCommentsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("complexDate", Order=4)]
        public organisationServiceTypeComplexDate[] complexDate
        {
            get
            {
                return this.complexDateField;
            }
            set
            {
                this.complexDateField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class organisationServiceTypeComplexDate
    {
        
        private organisationServiceTypeComplexDateType typeField;
        
        private System.DateTime dateField;
        
        private string accuracyIndicatorField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public organisationServiceTypeComplexDateType type
        {
            get
            {
                return this.typeField;
            }
            set
            {
                this.typeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="date", Order=1)]
        public System.DateTime date
        {
            get
            {
                return this.dateField;
            }
            set
            {
                this.dateField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=2)]
        public string accuracyIndicator
        {
            get
            {
                return this.accuracyIndicatorField;
            }
            set
            {
                this.accuracyIndicatorField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum organisationServiceTypeComplexDateType
    {
        
        /// <remarks/>
        StartDate,
        
        /// <remarks/>
        EndDate,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class organisationTypeSuppParticipatingOrganisation
    {
        
        private string hpioNumberField;
        
        private string[] nameField;
        
        private organisationServiceType[] organisationServiceField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public string hpioNumber
        {
            get
            {
                return this.hpioNumberField;
            }
            set
            {
                this.hpioNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("name", Order=1)]
        public string[] name
        {
            get
            {
                return this.nameField;
            }
            set
            {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("organisationService", Order=2)]
        public organisationServiceType[] organisationService
        {
            get
            {
                return this.organisationServiceField;
            }
            set
            {
                this.organisationServiceField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class contactDetailsType
    {
        
        private string mobilePhoneNumberField;
        
        private string emailAddressField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public string mobilePhoneNumber
        {
            get
            {
                return this.mobilePhoneNumberField;
            }
            set
            {
                this.mobilePhoneNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string emailAddress
        {
            get
            {
                return this.emailAddressField;
            }
            set
            {
                this.emailAddressField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class postalDeliveryGroupType
    {
        
        private postalDeliveryType postalDeliveryTypeField;
        
        private string postalDeliveryNumberField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public postalDeliveryType postalDeliveryType
        {
            get
            {
                return this.postalDeliveryTypeField;
            }
            set
            {
                this.postalDeliveryTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string postalDeliveryNumber
        {
            get
            {
                return this.postalDeliveryNumberField;
            }
            set
            {
                this.postalDeliveryNumberField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum postalDeliveryType
    {
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("Care PO")]
        CarePO,
        
        /// <remarks/>
        CMA,
        
        /// <remarks/>
        CMB,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("GPO Box")]
        GPOBox,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("Locked Bag")]
        LockedBag,
        
        /// <remarks/>
        MS,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("PO Box")]
        POBox,
        
        /// <remarks/>
        POR,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("Private Bag")]
        PrivateBag,
        
        /// <remarks/>
        RSD,
        
        /// <remarks/>
        RMB,
        
        /// <remarks/>
        RMS,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class australianPostalAddressType
    {
        
        private stateType stateField;
        
        private string postcodeField;
        
        private string suburbField;
        
        private postalDeliveryGroupType postalDeliveryGroupField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public stateType state
        {
            get
            {
                return this.stateField;
            }
            set
            {
                this.stateField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string postcode
        {
            get
            {
                return this.postcodeField;
            }
            set
            {
                this.postcodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=2)]
        public string suburb
        {
            get
            {
                return this.suburbField;
            }
            set
            {
                this.suburbField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=3)]
        public postalDeliveryGroupType postalDeliveryGroup
        {
            get
            {
                return this.postalDeliveryGroupField;
            }
            set
            {
                this.postalDeliveryGroupField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum stateType
    {
        
        /// <remarks/>
        ACT,
        
        /// <remarks/>
        NSW,
        
        /// <remarks/>
        NT,
        
        /// <remarks/>
        QLD,
        
        /// <remarks/>
        SA,
        
        /// <remarks/>
        TAS,
        
        /// <remarks/>
        VIC,
        
        /// <remarks/>
        WA,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class levelGroupType
    {
        
        private levelType levelTypeField;
        
        private string levelNumberField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public levelType levelType
        {
            get
            {
                return this.levelTypeField;
            }
            set
            {
                this.levelTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string levelNumber
        {
            get
            {
                return this.levelNumberField;
            }
            set
            {
                this.levelNumberField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum levelType
    {
        
        /// <remarks/>
        B,
        
        /// <remarks/>
        FL,
        
        /// <remarks/>
        G,
        
        /// <remarks/>
        L,
        
        /// <remarks/>
        LG,
        
        /// <remarks/>
        M,
        
        /// <remarks/>
        OD,
        
        /// <remarks/>
        P,
        
        /// <remarks/>
        PTHS,
        
        /// <remarks/>
        PLF,
        
        /// <remarks/>
        PLZA,
        
        /// <remarks/>
        PDM,
        
        /// <remarks/>
        RT,
        
        /// <remarks/>
        SB,
        
        /// <remarks/>
        UG,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class unitGroupType
    {
        
        private unitType unitTypeField;
        
        private string unitNumberField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public unitType unitType
        {
            get
            {
                return this.unitTypeField;
            }
            set
            {
                this.unitTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string unitNumber
        {
            get
            {
                return this.unitNumberField;
            }
            set
            {
                this.unitNumberField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum unitType
    {
        
        /// <remarks/>
        ANT,
        
        /// <remarks/>
        APT,
        
        /// <remarks/>
        ATM,
        
        /// <remarks/>
        BBQ,
        
        /// <remarks/>
        BTSD,
        
        /// <remarks/>
        BLDG,
        
        /// <remarks/>
        BNGW,
        
        /// <remarks/>
        CAGE,
        
        /// <remarks/>
        CARP,
        
        /// <remarks/>
        CARS,
        
        /// <remarks/>
        CLUB,
        
        /// <remarks/>
        COOL,
        
        /// <remarks/>
        CTGE,
        
        /// <remarks/>
        DUP,
        
        /// <remarks/>
        FY,
        
        /// <remarks/>
        F,
        
        /// <remarks/>
        GRGE,
        
        /// <remarks/>
        HALL,
        
        /// <remarks/>
        HSE,
        
        /// <remarks/>
        KSK,
        
        /// <remarks/>
        LSE,
        
        /// <remarks/>
        LBBY,
        
        /// <remarks/>
        LOFT,
        
        /// <remarks/>
        LOT,
        
        /// <remarks/>
        MSNT,
        
        /// <remarks/>
        MB,
        
        /// <remarks/>
        OFF,
        
        /// <remarks/>
        PTHS,
        
        /// <remarks/>
        RESV,
        
        /// <remarks/>
        RM,
        
        /// <remarks/>
        SHED,
        
        /// <remarks/>
        SHOP,
        
        /// <remarks/>
        SIGN,
        
        /// <remarks/>
        SITE,
        
        /// <remarks/>
        SL,
        
        /// <remarks/>
        STOR,
        
        /// <remarks/>
        STR,
        
        /// <remarks/>
        STU,
        
        /// <remarks/>
        SUBS,
        
        /// <remarks/>
        SE,
        
        /// <remarks/>
        TNCY,
        
        /// <remarks/>
        TWR,
        
        /// <remarks/>
        TNHS,
        
        /// <remarks/>
        U,
        
        /// <remarks/>
        VLLA,
        
        /// <remarks/>
        WARD,
        
        /// <remarks/>
        WE,
        
        /// <remarks/>
        WKSH,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class australianStreetAddressType
    {
        
        private stateType stateField;
        
        private string postcodeField;
        
        private string suburbField;
        
        private string addressSiteNameField;
        
        private unitGroupType unitGroupField;
        
        private levelGroupType levelGroupField;
        
        private string lotNumberField;
        
        private string streetNumberField;
        
        private string streetNameField;
        
        private streetType streetTypeField;
        
        private bool streetTypeFieldSpecified;
        
        private streetSuffixType streetSuffixField;
        
        private bool streetSuffixFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public stateType state
        {
            get
            {
                return this.stateField;
            }
            set
            {
                this.stateField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string postcode
        {
            get
            {
                return this.postcodeField;
            }
            set
            {
                this.postcodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=2)]
        public string suburb
        {
            get
            {
                return this.suburbField;
            }
            set
            {
                this.suburbField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=3)]
        public string addressSiteName
        {
            get
            {
                return this.addressSiteNameField;
            }
            set
            {
                this.addressSiteNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=4)]
        public unitGroupType unitGroup
        {
            get
            {
                return this.unitGroupField;
            }
            set
            {
                this.unitGroupField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=5)]
        public levelGroupType levelGroup
        {
            get
            {
                return this.levelGroupField;
            }
            set
            {
                this.levelGroupField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=6)]
        public string lotNumber
        {
            get
            {
                return this.lotNumberField;
            }
            set
            {
                this.lotNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=7)]
        public string streetNumber
        {
            get
            {
                return this.streetNumberField;
            }
            set
            {
                this.streetNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=8)]
        public string streetName
        {
            get
            {
                return this.streetNameField;
            }
            set
            {
                this.streetNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=9)]
        public streetType streetType
        {
            get
            {
                return this.streetTypeField;
            }
            set
            {
                this.streetTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool streetTypeSpecified
        {
            get
            {
                return this.streetTypeFieldSpecified;
            }
            set
            {
                this.streetTypeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=10)]
        public streetSuffixType streetSuffix
        {
            get
            {
                return this.streetSuffixField;
            }
            set
            {
                this.streetSuffixField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool streetSuffixSpecified
        {
            get
            {
                return this.streetSuffixFieldSpecified;
            }
            set
            {
                this.streetSuffixFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum streetType
    {
        
        /// <remarks/>
        ACCS,
        
        /// <remarks/>
        ALLY,
        
        /// <remarks/>
        ALWY,
        
        /// <remarks/>
        AMBL,
        
        /// <remarks/>
        ANCG,
        
        /// <remarks/>
        APP,
        
        /// <remarks/>
        ARC,
        
        /// <remarks/>
        ART,
        
        /// <remarks/>
        AVE,
        
        /// <remarks/>
        BASN,
        
        /// <remarks/>
        BCH,
        
        /// <remarks/>
        BEND,
        
        /// <remarks/>
        BLK,
        
        /// <remarks/>
        BWLK,
        
        /// <remarks/>
        BVD,
        
        /// <remarks/>
        BRCE,
        
        /// <remarks/>
        BRAE,
        
        /// <remarks/>
        BRK,
        
        /// <remarks/>
        BDGE,
        
        /// <remarks/>
        BDWY,
        
        /// <remarks/>
        BROW,
        
        /// <remarks/>
        BYPA,
        
        /// <remarks/>
        BYWY,
        
        /// <remarks/>
        CAUS,
        
        /// <remarks/>
        CTR,
        
        /// <remarks/>
        CNWY,
        
        /// <remarks/>
        CH,
        
        /// <remarks/>
        CIR,
        
        /// <remarks/>
        CLT,
        
        /// <remarks/>
        CCT,
        
        /// <remarks/>
        CRCS,
        
        /// <remarks/>
        CL,
        
        /// <remarks/>
        CLDE,
        
        /// <remarks/>
        CMMN,
        
        /// <remarks/>
        CON,
        
        /// <remarks/>
        CPS,
        
        /// <remarks/>
        CNR,
        
        /// <remarks/>
        CSO,
        
        /// <remarks/>
        CT,
        
        /// <remarks/>
        CTYD,
        
        /// <remarks/>
        COVE,
        
        /// <remarks/>
        CRES,
        
        /// <remarks/>
        CRST,
        
        /// <remarks/>
        CRSS,
        
        /// <remarks/>
        CRSG,
        
        /// <remarks/>
        CRD,
        
        /// <remarks/>
        COWY,
        
        /// <remarks/>
        CUWY,
        
        /// <remarks/>
        CDS,
        
        /// <remarks/>
        CTTG,
        
        /// <remarks/>
        DALE,
        
        /// <remarks/>
        DELL,
        
        /// <remarks/>
        DEVN,
        
        /// <remarks/>
        DIP,
        
        /// <remarks/>
        DSTR,
        
        /// <remarks/>
        DR,
        
        /// <remarks/>
        DRWY,
        
        /// <remarks/>
        EDGE,
        
        /// <remarks/>
        ELB,
        
        /// <remarks/>
        END,
        
        /// <remarks/>
        ENT,
        
        /// <remarks/>
        ESP,
        
        /// <remarks/>
        EST,
        
        /// <remarks/>
        EXP,
        
        /// <remarks/>
        EXTN,
        
        /// <remarks/>
        FAWY,
        
        /// <remarks/>
        FTRK,
        
        /// <remarks/>
        FITR,
        
        /// <remarks/>
        FLAT,
        
        /// <remarks/>
        FOLW,
        
        /// <remarks/>
        FTWY,
        
        /// <remarks/>
        FSHR,
        
        /// <remarks/>
        FORM,
        
        /// <remarks/>
        FWY,
        
        /// <remarks/>
        FRNT,
        
        /// <remarks/>
        FRTG,
        
        /// <remarks/>
        GAP,
        
        /// <remarks/>
        GDN,
        
        /// <remarks/>
        GDNS,
        
        /// <remarks/>
        GTE,
        
        /// <remarks/>
        GTES,
        
        /// <remarks/>
        GLD,
        
        /// <remarks/>
        GLEN,
        
        /// <remarks/>
        GRA,
        
        /// <remarks/>
        GRN,
        
        /// <remarks/>
        GRND,
        
        /// <remarks/>
        GR,
        
        /// <remarks/>
        GLY,
        
        /// <remarks/>
        HTS,
        
        /// <remarks/>
        HRD,
        
        /// <remarks/>
        HWY,
        
        /// <remarks/>
        HILL,
        
        /// <remarks/>
        INTG,
        
        /// <remarks/>
        INTN,
        
        /// <remarks/>
        JNC,
        
        /// <remarks/>
        KEY,
        
        /// <remarks/>
        LDG,
        
        /// <remarks/>
        LANE,
        
        /// <remarks/>
        LNWY,
        
        /// <remarks/>
        LEES,
        
        /// <remarks/>
        LINE,
        
        /// <remarks/>
        LINK,
        
        /// <remarks/>
        LT,
        
        /// <remarks/>
        LKT,
        
        /// <remarks/>
        LOOP,
        
        /// <remarks/>
        LWR,
        
        /// <remarks/>
        MALL,
        
        /// <remarks/>
        MNDR,
        
        /// <remarks/>
        MEW,
        
        /// <remarks/>
        MEWS,
        
        /// <remarks/>
        MWY,
        
        /// <remarks/>
        MT,
        
        /// <remarks/>
        NOOK,
        
        /// <remarks/>
        OTLK,
        
        /// <remarks/>
        PDE,
        
        /// <remarks/>
        PARK,
        
        /// <remarks/>
        PKLD,
        
        /// <remarks/>
        PKWY,
        
        /// <remarks/>
        PART,
        
        /// <remarks/>
        PASS,
        
        /// <remarks/>
        PATH,
        
        /// <remarks/>
        PHWY,
        
        /// <remarks/>
        PIAZ,
        
        /// <remarks/>
        PL,
        
        /// <remarks/>
        PLAT,
        
        /// <remarks/>
        PLZA,
        
        /// <remarks/>
        PKT,
        
        /// <remarks/>
        PNT,
        
        /// <remarks/>
        PORT,
        
        /// <remarks/>
        PROM,
        
        /// <remarks/>
        QUAD,
        
        /// <remarks/>
        QDGL,
        
        /// <remarks/>
        QDRT,
        
        /// <remarks/>
        QY,
        
        /// <remarks/>
        QYS,
        
        /// <remarks/>
        RMBL,
        
        /// <remarks/>
        RAMP,
        
        /// <remarks/>
        RNGE,
        
        /// <remarks/>
        RCH,
        
        /// <remarks/>
        RES,
        
        /// <remarks/>
        REST,
        
        /// <remarks/>
        RTT,
        
        /// <remarks/>
        RIDE,
        
        /// <remarks/>
        RDGE,
        
        /// <remarks/>
        RGWY,
        
        /// <remarks/>
        ROWY,
        
        /// <remarks/>
        RING,
        
        /// <remarks/>
        RISE,
        
        /// <remarks/>
        RVR,
        
        /// <remarks/>
        RVWY,
        
        /// <remarks/>
        RVRA,
        
        /// <remarks/>
        RD,
        
        /// <remarks/>
        RDS,
        
        /// <remarks/>
        RDSD,
        
        /// <remarks/>
        RDWY,
        
        /// <remarks/>
        RNDE,
        
        /// <remarks/>
        RSBL,
        
        /// <remarks/>
        RTY,
        
        /// <remarks/>
        RND,
        
        /// <remarks/>
        RTE,
        
        /// <remarks/>
        ROW,
        
        /// <remarks/>
        RUE,
        
        /// <remarks/>
        RUN,
        
        /// <remarks/>
        SWY,
        
        /// <remarks/>
        SHUN,
        
        /// <remarks/>
        SDNG,
        
        /// <remarks/>
        SLPE,
        
        /// <remarks/>
        SND,
        
        /// <remarks/>
        SPUR,
        
        /// <remarks/>
        SQ,
        
        /// <remarks/>
        STRS,
        
        /// <remarks/>
        SHWY,
        
        /// <remarks/>
        STPS,
        
        /// <remarks/>
        STRA,
        
        /// <remarks/>
        ST,
        
        /// <remarks/>
        STRP,
        
        /// <remarks/>
        SBWY,
        
        /// <remarks/>
        TARN,
        
        /// <remarks/>
        TCE,
        
        /// <remarks/>
        THOR,
        
        /// <remarks/>
        TLWY,
        
        /// <remarks/>
        TOP,
        
        /// <remarks/>
        TOR,
        
        /// <remarks/>
        TWRS,
        
        /// <remarks/>
        TRK,
        
        /// <remarks/>
        TRL,
        
        /// <remarks/>
        TRLR,
        
        /// <remarks/>
        TRI,
        
        /// <remarks/>
        TKWY,
        
        /// <remarks/>
        TURN,
        
        /// <remarks/>
        UPAS,
        
        /// <remarks/>
        UPR,
        
        /// <remarks/>
        VALE,
        
        /// <remarks/>
        VDCT,
        
        /// <remarks/>
        VIEW,
        
        /// <remarks/>
        VLLS,
        
        /// <remarks/>
        VSTA,
        
        /// <remarks/>
        WADE,
        
        /// <remarks/>
        WALK,
        
        /// <remarks/>
        WKWY,
        
        /// <remarks/>
        WAY,
        
        /// <remarks/>
        WHRF,
        
        /// <remarks/>
        WYND,
        
        /// <remarks/>
        YARD,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum streetSuffixType
    {
        
        /// <remarks/>
        CN,
        
        /// <remarks/>
        E,
        
        /// <remarks/>
        EX,
        
        /// <remarks/>
        LR,
        
        /// <remarks/>
        N,
        
        /// <remarks/>
        NE,
        
        /// <remarks/>
        NW,
        
        /// <remarks/>
        S,
        
        /// <remarks/>
        SE,
        
        /// <remarks/>
        SW,
        
        /// <remarks/>
        UP,
        
        /// <remarks/>
        W,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class addressTypeSupp
    {
        
        private addressTypeSuppUnstructuredAddress unstructuredAddressField;
        
        private australianStreetAddressType australianStreetAddressField;
        
        private australianPostalAddressType australianPostalAddressField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public addressTypeSuppUnstructuredAddress unstructuredAddress
        {
            get
            {
                return this.unstructuredAddressField;
            }
            set
            {
                this.unstructuredAddressField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public australianStreetAddressType australianStreetAddress
        {
            get
            {
                return this.australianStreetAddressField;
            }
            set
            {
                this.australianStreetAddressField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=2)]
        public australianPostalAddressType australianPostalAddress
        {
            get
            {
                return this.australianPostalAddressField;
            }
            set
            {
                this.australianPostalAddressField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class addressTypeSuppUnstructuredAddress
    {
        
        private string australianAddressLineField;
        
        private string postcodeField;
        
        private string suburbField;
        
        private stateType stateField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public string australianAddressLine
        {
            get
            {
                return this.australianAddressLineField;
            }
            set
            {
                this.australianAddressLineField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string postcode
        {
            get
            {
                return this.postcodeField;
            }
            set
            {
                this.postcodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=2)]
        public string suburb
        {
            get
            {
                return this.suburbField;
            }
            set
            {
                this.suburbField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=3)]
        public stateType state
        {
            get
            {
                return this.stateField;
            }
            set
            {
                this.stateField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class participantActionType
    {
        
        private participantActionTypeActionType actionTypeField;
        
        private bool actionTypeFieldSpecified;
        
        private string operationPerformedField;
        
        private participantActionTypeReason reasonField;
        
        private bool reasonFieldSpecified;
        
        private System.DateTime approvalDateTimeField;
        
        private bool approvalDateTimeFieldSpecified;
        
        private string approvalRoleField;
        
        private string approvalNameField;
        
        private string statusPriorDeactivationField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public participantActionTypeActionType actionType
        {
            get
            {
                return this.actionTypeField;
            }
            set
            {
                this.actionTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool actionTypeSpecified
        {
            get
            {
                return this.actionTypeFieldSpecified;
            }
            set
            {
                this.actionTypeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string operationPerformed
        {
            get
            {
                return this.operationPerformedField;
            }
            set
            {
                this.operationPerformedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=2)]
        public participantActionTypeReason reason
        {
            get
            {
                return this.reasonField;
            }
            set
            {
                this.reasonField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool reasonSpecified
        {
            get
            {
                return this.reasonFieldSpecified;
            }
            set
            {
                this.reasonFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=3)]
        public System.DateTime approvalDateTime
        {
            get
            {
                return this.approvalDateTimeField;
            }
            set
            {
                this.approvalDateTimeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool approvalDateTimeSpecified
        {
            get
            {
                return this.approvalDateTimeFieldSpecified;
            }
            set
            {
                this.approvalDateTimeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=4)]
        public string approvalRole
        {
            get
            {
                return this.approvalRoleField;
            }
            set
            {
                this.approvalRoleField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=5)]
        public string approvalName
        {
            get
            {
                return this.approvalNameField;
            }
            set
            {
                this.approvalNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=6)]
        public string statusPriorDeactivation
        {
            get
            {
                return this.statusPriorDeactivationField;
            }
            set
            {
                this.statusPriorDeactivationField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum participantActionTypeActionType
    {
        
        /// <remarks/>
        Create,
        
        /// <remarks/>
        Read,
        
        /// <remarks/>
        Update,
        
        /// <remarks/>
        Delete,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum participantActionTypeReason
    {
        
        /// <remarks/>
        IncorrectIdentity,
        
        /// <remarks/>
        MedicalInaccuracy,
        
        /// <remarks/>
        ElectToRemove,
        
        /// <remarks/>
        IHIStatusIsDeceased,
        
        /// <remarks/>
        NoLegallyAppointmentAuthorised,
        
        /// <remarks/>
        NoOwnershipOfPCEHR,
        
        /// <remarks/>
        IHINotActive,
        
        /// <remarks/>
        IHINotVerified,
        
        /// <remarks/>
        TermsAndConditionsWereNotAccepted,
        
        /// <remarks/>
        Death,
        
        /// <remarks/>
        WithdrawalFromParticipation,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class accessedEntityType
    {
        
        private string ihiNumberField;
        
        private string ihiNameField;
        
        private string subjectTypeField;
        
        private string subjectField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public string ihiNumber
        {
            get
            {
                return this.ihiNumberField;
            }
            set
            {
                this.ihiNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string ihiName
        {
            get
            {
                return this.ihiNameField;
            }
            set
            {
                this.ihiNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=2)]
        public string subjectType
        {
            get
            {
                return this.subjectTypeField;
            }
            set
            {
                this.subjectTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=3)]
        public string subject
        {
            get
            {
                return this.subjectField;
            }
            set
            {
                this.subjectField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class participantDetailsType
    {
        
        private string providerIDField;
        
        private string providerNameField;
        
        private string accessingHPIOField;
        
        private string accessingHPIONameField;
        
        private string participatingHPIOField;
        
        private string participatingHPIONameField;
        
        private string userIDField;
        
        private string userNameField;
        
        private string displayRoleField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public string providerID
        {
            get
            {
                return this.providerIDField;
            }
            set
            {
                this.providerIDField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string providerName
        {
            get
            {
                return this.providerNameField;
            }
            set
            {
                this.providerNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=2)]
        public string accessingHPIO
        {
            get
            {
                return this.accessingHPIOField;
            }
            set
            {
                this.accessingHPIOField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=3)]
        public string accessingHPIOName
        {
            get
            {
                return this.accessingHPIONameField;
            }
            set
            {
                this.accessingHPIONameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=4)]
        public string participatingHPIO
        {
            get
            {
                return this.participatingHPIOField;
            }
            set
            {
                this.participatingHPIOField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=5)]
        public string participatingHPIOName
        {
            get
            {
                return this.participatingHPIONameField;
            }
            set
            {
                this.participatingHPIONameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=6)]
        public string userID
        {
            get
            {
                return this.userIDField;
            }
            set
            {
                this.userIDField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=7)]
        public string userName
        {
            get
            {
                return this.userNameField;
            }
            set
            {
                this.userNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=8)]
        public string displayRole
        {
            get
            {
                return this.displayRoleField;
            }
            set
            {
                this.displayRoleField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class organisationType
    {
        
        private string ihiNumberField;
        
        private string[] nameField;
        
        private organisationServiceType[] organisationServiceField;
        
        private organisationTypeParticipatingOrganisation[] participatingOrganisationField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public string ihiNumber
        {
            get
            {
                return this.ihiNumberField;
            }
            set
            {
                this.ihiNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("name", Order=1)]
        public string[] name
        {
            get
            {
                return this.nameField;
            }
            set
            {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("organisationService", Order=2)]
        public organisationServiceType[] organisationService
        {
            get
            {
                return this.organisationServiceField;
            }
            set
            {
                this.organisationServiceField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("participatingOrganisation", Order=3)]
        public organisationTypeParticipatingOrganisation[] participatingOrganisation
        {
            get
            {
                return this.participatingOrganisationField;
            }
            set
            {
                this.participatingOrganisationField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class organisationTypeParticipatingOrganisation
    {
        
        private string ihiNumberField;
        
        private string[] nameField;
        
        private organisationServiceType[] organisationServiceField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public string ihiNumber
        {
            get
            {
                return this.ihiNumberField;
            }
            set
            {
                this.ihiNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("name", Order=1)]
        public string[] name
        {
            get
            {
                return this.nameField;
            }
            set
            {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("organisationService", Order=2)]
        public organisationServiceType[] organisationService
        {
            get
            {
                return this.organisationServiceField;
            }
            set
            {
                this.organisationServiceField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class accessConditionsType
    {
        
        private accessConditionsTypeAccessLevel accessLevelField;
        
        private bool accessLevelFieldSpecified;
        
        private accessConditionsTypeAccessPermission accessPermissionField;
        
        private bool accessPermissionFieldSpecified;
        
        private accessConditionsTypeAccessConditions accessConditionsField;
        
        private bool accessConditionsFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public accessConditionsTypeAccessLevel accessLevel
        {
            get
            {
                return this.accessLevelField;
            }
            set
            {
                this.accessLevelField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool accessLevelSpecified
        {
            get
            {
                return this.accessLevelFieldSpecified;
            }
            set
            {
                this.accessLevelFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public accessConditionsTypeAccessPermission accessPermission
        {
            get
            {
                return this.accessPermissionField;
            }
            set
            {
                this.accessPermissionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool accessPermissionSpecified
        {
            get
            {
                return this.accessPermissionFieldSpecified;
            }
            set
            {
                this.accessPermissionFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=2)]
        public accessConditionsTypeAccessConditions accessConditions
        {
            get
            {
                return this.accessConditionsField;
            }
            set
            {
                this.accessConditionsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool accessConditionsSpecified
        {
            get
            {
                return this.accessConditionsFieldSpecified;
            }
            set
            {
                this.accessConditionsFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum accessConditionsTypeAccessLevel
    {
        
        /// <remarks/>
        Self,
        
        /// <remarks/>
        General,
        
        /// <remarks/>
        Limited,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum accessConditionsTypeAccessPermission
    {
        
        /// <remarks/>
        Permit,
        
        /// <remarks/>
        Deny,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum accessConditionsTypeAccessConditions
    {
        
        /// <remarks/>
        OpenAccess,
        
        /// <remarks/>
        AccessRevoked,
        
        /// <remarks/>
        PACAccess,
        
        /// <remarks/>
        PACXAccess,
        
        /// <remarks/>
        EmergencyAccess,
        
        /// <remarks/>
        LocalConsentAccess,
        
        /// <remarks/>
        AuthorisedRepresentativeAccess,
        
        /// <remarks/>
        NominatedRepresentativeAccess,
        
        /// <remarks/>
        IncorrectCode,
        
        /// <remarks/>
        LocalConsentAccessDenied,
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("AccessRevoked")]
        AccessRevoked1,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class responseStatusType
    {
        
        private string codeField;
        
        private string descriptionField;
        
        private string detailsField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public string code
        {
            get
            {
                return this.codeField;
            }
            set
            {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string description
        {
            get
            {
                return this.descriptionField;
            }
            set
            {
                this.descriptionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=2)]
        public string details
        {
            get
            {
                return this.detailsField;
            }
            set
            {
                this.detailsField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class addressType
    {
        
        private addressTypeType typeField;
        
        private string stateField;
        
        private string postCodeField;
        
        private string suburbField;
        
        private addressTypePostalDeliveryGroup postalDeliveryGroupField;
        
        private string addressSiteNameField;
        
        private addressTypeUnitGroup unitGroupField;
        
        private addressTypeLevelGroup levelGroupField;
        
        private string lotNumberField;
        
        private string streetNumberField;
        
        private string streetNameField;
        
        private string streetTypeField;
        
        private string streetSuffixField;
        
        private string countryField;
        
        private string internationalAddressLineField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public addressTypeType type
        {
            get
            {
                return this.typeField;
            }
            set
            {
                this.typeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string state
        {
            get
            {
                return this.stateField;
            }
            set
            {
                this.stateField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=2)]
        public string postCode
        {
            get
            {
                return this.postCodeField;
            }
            set
            {
                this.postCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=3)]
        public string suburb
        {
            get
            {
                return this.suburbField;
            }
            set
            {
                this.suburbField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=4)]
        public addressTypePostalDeliveryGroup postalDeliveryGroup
        {
            get
            {
                return this.postalDeliveryGroupField;
            }
            set
            {
                this.postalDeliveryGroupField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=5)]
        public string addressSiteName
        {
            get
            {
                return this.addressSiteNameField;
            }
            set
            {
                this.addressSiteNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=6)]
        public addressTypeUnitGroup unitGroup
        {
            get
            {
                return this.unitGroupField;
            }
            set
            {
                this.unitGroupField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=7)]
        public addressTypeLevelGroup levelGroup
        {
            get
            {
                return this.levelGroupField;
            }
            set
            {
                this.levelGroupField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=8)]
        public string lotNumber
        {
            get
            {
                return this.lotNumberField;
            }
            set
            {
                this.lotNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=9)]
        public string streetNumber
        {
            get
            {
                return this.streetNumberField;
            }
            set
            {
                this.streetNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=10)]
        public string streetName
        {
            get
            {
                return this.streetNameField;
            }
            set
            {
                this.streetNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=11)]
        public string streetType
        {
            get
            {
                return this.streetTypeField;
            }
            set
            {
                this.streetTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=12)]
        public string streetSuffix
        {
            get
            {
                return this.streetSuffixField;
            }
            set
            {
                this.streetSuffixField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=13)]
        public string country
        {
            get
            {
                return this.countryField;
            }
            set
            {
                this.countryField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=14)]
        public string internationalAddressLine
        {
            get
            {
                return this.internationalAddressLineField;
            }
            set
            {
                this.internationalAddressLineField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum addressTypeType
    {
        
        /// <remarks/>
        International,
        
        /// <remarks/>
        AustralianStreet,
        
        /// <remarks/>
        AustralianPostal,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class addressTypePostalDeliveryGroup
    {
        
        private string postalDeliveryTypeField;
        
        private string postalDeliveryNumberField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public string postalDeliveryType
        {
            get
            {
                return this.postalDeliveryTypeField;
            }
            set
            {
                this.postalDeliveryTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string postalDeliveryNumber
        {
            get
            {
                return this.postalDeliveryNumberField;
            }
            set
            {
                this.postalDeliveryNumberField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class addressTypeUnitGroup
    {
        
        private string unitTypeField;
        
        private string unitNumberField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public string unitType
        {
            get
            {
                return this.unitTypeField;
            }
            set
            {
                this.unitTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string unitNumber
        {
            get
            {
                return this.unitNumberField;
            }
            set
            {
                this.unitNumberField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class addressTypeLevelGroup
    {
        
        private string levelTypeField;
        
        private string levelNumberField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public string levelType
        {
            get
            {
                return this.levelTypeField;
            }
            set
            {
                this.levelTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string levelNumber
        {
            get
            {
                return this.levelNumberField;
            }
            set
            {
                this.levelNumberField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class nameType
    {
        
        private string nameTitleField;
        
        private string familyNameField;
        
        private string[] givenNameField;
        
        private string nameSuffixField;
        
        private string nameAliasField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public string nameTitle
        {
            get
            {
                return this.nameTitleField;
            }
            set
            {
                this.nameTitleField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string familyName
        {
            get
            {
                return this.familyNameField;
            }
            set
            {
                this.familyNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("givenName", Order=2)]
        public string[] givenName
        {
            get
            {
                return this.givenNameField;
            }
            set
            {
                this.givenNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=3)]
        public string nameSuffix
        {
            get
            {
                return this.nameSuffixField;
            }
            set
            {
                this.nameSuffixField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=4)]
        public string nameAlias
        {
            get
            {
                return this.nameAliasField;
            }
            set
            {
                this.nameAliasField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class signatureContainerType
    {
        
        private SignatureType signatureField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#", Order=0)]
        public SignatureType Signature
        {
            get
            {
                return this.signatureField;
            }
            set
            {
                this.signatureField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class SignatureType
    {
        
        private SignedInfoType signedInfoField;
        
        private SignatureValueType signatureValueField;
        
        private KeyInfoType keyInfoField;
        
        private ObjectType[] objectField;
        
        private string idField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public SignedInfoType SignedInfo
        {
            get
            {
                return this.signedInfoField;
            }
            set
            {
                this.signedInfoField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public SignatureValueType SignatureValue
        {
            get
            {
                return this.signatureValueField;
            }
            set
            {
                this.signatureValueField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=2)]
        public KeyInfoType KeyInfo
        {
            get
            {
                return this.keyInfoField;
            }
            set
            {
                this.keyInfoField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Object", Order=3)]
        public ObjectType[] Object
        {
            get
            {
                return this.objectField;
            }
            set
            {
                this.objectField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string Id
        {
            get
            {
                return this.idField;
            }
            set
            {
                this.idField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class SignedInfoType
    {
        
        private CanonicalizationMethodType canonicalizationMethodField;
        
        private SignatureMethodType signatureMethodField;
        
        private ReferenceType[] referenceField;
        
        private string idField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public CanonicalizationMethodType CanonicalizationMethod
        {
            get
            {
                return this.canonicalizationMethodField;
            }
            set
            {
                this.canonicalizationMethodField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public SignatureMethodType SignatureMethod
        {
            get
            {
                return this.signatureMethodField;
            }
            set
            {
                this.signatureMethodField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Reference", Order=2)]
        public ReferenceType[] Reference
        {
            get
            {
                return this.referenceField;
            }
            set
            {
                this.referenceField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string Id
        {
            get
            {
                return this.idField;
            }
            set
            {
                this.idField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class CanonicalizationMethodType
    {
        
        private System.Xml.XmlNode[] anyField;
        
        private string algorithmField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        [System.Xml.Serialization.XmlAnyElementAttribute(Order=0)]
        public System.Xml.XmlNode[] Any
        {
            get
            {
                return this.anyField;
            }
            set
            {
                this.anyField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="anyURI")]
        public string Algorithm
        {
            get
            {
                return this.algorithmField;
            }
            set
            {
                this.algorithmField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class SignatureMethodType
    {
        
        private string hMACOutputLengthField;
        
        private System.Xml.XmlNode[] anyField;
        
        private string algorithmField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="integer", Order=0)]
        public string HMACOutputLength
        {
            get
            {
                return this.hMACOutputLengthField;
            }
            set
            {
                this.hMACOutputLengthField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        [System.Xml.Serialization.XmlAnyElementAttribute(Order=1)]
        public System.Xml.XmlNode[] Any
        {
            get
            {
                return this.anyField;
            }
            set
            {
                this.anyField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="anyURI")]
        public string Algorithm
        {
            get
            {
                return this.algorithmField;
            }
            set
            {
                this.algorithmField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class ReferenceType
    {
        
        private TransformType[] transformsField;
        
        private DigestMethodType digestMethodField;
        
        private byte[] digestValueField;
        
        private string idField;
        
        private string uRIField;
        
        private string typeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayAttribute(Order=0)]
        [System.Xml.Serialization.XmlArrayItemAttribute("Transform", IsNullable=false)]
        public TransformType[] Transforms
        {
            get
            {
                return this.transformsField;
            }
            set
            {
                this.transformsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public DigestMethodType DigestMethod
        {
            get
            {
                return this.digestMethodField;
            }
            set
            {
                this.digestMethodField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary", Order=2)]
        public byte[] DigestValue
        {
            get
            {
                return this.digestValueField;
            }
            set
            {
                this.digestValueField = 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="anyURI")]
        public string URI
        {
            get
            {
                return this.uRIField;
            }
            set
            {
                this.uRIField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="anyURI")]
        public string Type
        {
            get
            {
                return this.typeField;
            }
            set
            {
                this.typeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class TransformType
    {
        
        private object[] itemsField;
        
        private string[] textField;
        
        private string algorithmField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAnyElementAttribute(Order=0)]
        [System.Xml.Serialization.XmlElementAttribute("XPath", typeof(string), Order=0)]
        public object[] Items
        {
            get
            {
                return this.itemsField;
            }
            set
            {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text
        {
            get
            {
                return this.textField;
            }
            set
            {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="anyURI")]
        public string Algorithm
        {
            get
            {
                return this.algorithmField;
            }
            set
            {
                this.algorithmField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class DigestMethodType
    {
        
        private System.Xml.XmlNode[] anyField;
        
        private string algorithmField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        [System.Xml.Serialization.XmlAnyElementAttribute(Order=0)]
        public System.Xml.XmlNode[] Any
        {
            get
            {
                return this.anyField;
            }
            set
            {
                this.anyField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="anyURI")]
        public string Algorithm
        {
            get
            {
                return this.algorithmField;
            }
            set
            {
                this.algorithmField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class SignatureValueType
    {
        
        private string idField;
        
        private byte[] valueField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string Id
        {
            get
            {
                return this.idField;
            }
            set
            {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute(DataType="base64Binary")]
        public byte[] Value
        {
            get
            {
                return this.valueField;
            }
            set
            {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class KeyInfoType
    {
        
        private object[] itemsField;
        
        private ItemsChoiceType2[] itemsElementNameField;
        
        private string[] textField;
        
        private string idField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAnyElementAttribute(Order=0)]
        [System.Xml.Serialization.XmlElementAttribute("KeyName", typeof(string), Order=0)]
        [System.Xml.Serialization.XmlElementAttribute("KeyValue", typeof(KeyValueType), Order=0)]
        [System.Xml.Serialization.XmlElementAttribute("MgmtData", typeof(string), Order=0)]
        [System.Xml.Serialization.XmlElementAttribute("PGPData", typeof(PGPDataType), Order=0)]
        [System.Xml.Serialization.XmlElementAttribute("RetrievalMethod", typeof(RetrievalMethodType), Order=0)]
        [System.Xml.Serialization.XmlElementAttribute("SPKIData", typeof(SPKIDataType), Order=0)]
        [System.Xml.Serialization.XmlElementAttribute("X509Data", typeof(X509DataType), Order=0)]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public object[] Items
        {
            get
            {
                return this.itemsField;
            }
            set
            {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName", Order=1)]
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemsChoiceType2[] ItemsElementName
        {
            get
            {
                return this.itemsElementNameField;
            }
            set
            {
                this.itemsElementNameField = 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.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class KeyValueType
    {
        
        private object itemField;
        
        private string[] textField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAnyElementAttribute(Order=0)]
        [System.Xml.Serialization.XmlElementAttribute("DSAKeyValue", typeof(DSAKeyValueType), Order=0)]
        [System.Xml.Serialization.XmlElementAttribute("RSAKeyValue", typeof(RSAKeyValueType), Order=0)]
        public object Item
        {
            get
            {
                return this.itemField;
            }
            set
            {
                this.itemField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text
        {
            get
            {
                return this.textField;
            }
            set
            {
                this.textField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class DSAKeyValueType
    {
        
        private byte[] pField;
        
        private byte[] qField;
        
        private byte[] gField;
        
        private byte[] yField;
        
        private byte[] jField;
        
        private byte[] seedField;
        
        private byte[] pgenCounterField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary", Order=0)]
        public byte[] P
        {
            get
            {
                return this.pField;
            }
            set
            {
                this.pField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary", Order=1)]
        public byte[] Q
        {
            get
            {
                return this.qField;
            }
            set
            {
                this.qField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary", Order=2)]
        public byte[] G
        {
            get
            {
                return this.gField;
            }
            set
            {
                this.gField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary", Order=3)]
        public byte[] Y
        {
            get
            {
                return this.yField;
            }
            set
            {
                this.yField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary", Order=4)]
        public byte[] J
        {
            get
            {
                return this.jField;
            }
            set
            {
                this.jField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary", Order=5)]
        public byte[] Seed
        {
            get
            {
                return this.seedField;
            }
            set
            {
                this.seedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary", Order=6)]
        public byte[] PgenCounter
        {
            get
            {
                return this.pgenCounterField;
            }
            set
            {
                this.pgenCounterField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class RSAKeyValueType
    {
        
        private byte[] modulusField;
        
        private byte[] exponentField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary", Order=0)]
        public byte[] Modulus
        {
            get
            {
                return this.modulusField;
            }
            set
            {
                this.modulusField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary", Order=1)]
        public byte[] Exponent
        {
            get
            {
                return this.exponentField;
            }
            set
            {
                this.exponentField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class PGPDataType
    {
        
        private object[] itemsField;
        
        private ItemsChoiceType1[] itemsElementNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAnyElementAttribute(Order=0)]
        [System.Xml.Serialization.XmlElementAttribute("PGPKeyID", typeof(byte[]), DataType="base64Binary", Order=0)]
        [System.Xml.Serialization.XmlElementAttribute("PGPKeyPacket", typeof(byte[]), DataType="base64Binary", Order=0)]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public object[] Items
        {
            get
            {
                return this.itemsField;
            }
            set
            {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName", Order=1)]
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemsChoiceType1[] ItemsElementName
        {
            get
            {
                return this.itemsElementNameField;
            }
            set
            {
                this.itemsElementNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#", IncludeInSchema=false)]
    public enum ItemsChoiceType1
    {
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("##any:")]
        Item,
        
        /// <remarks/>
        PGPKeyID,
        
        /// <remarks/>
        PGPKeyPacket,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class RetrievalMethodType
    {
        
        private TransformType[] transformsField;
        
        private string uRIField;
        
        private string typeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayAttribute(Order=0)]
        [System.Xml.Serialization.XmlArrayItemAttribute("Transform", IsNullable=false)]
        public TransformType[] Transforms
        {
            get
            {
                return this.transformsField;
            }
            set
            {
                this.transformsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="anyURI")]
        public string URI
        {
            get
            {
                return this.uRIField;
            }
            set
            {
                this.uRIField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="anyURI")]
        public string Type
        {
            get
            {
                return this.typeField;
            }
            set
            {
                this.typeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class SPKIDataType
    {
        
        private object[] itemsField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAnyElementAttribute(Order=0)]
        [System.Xml.Serialization.XmlElementAttribute("SPKISexp", typeof(byte[]), DataType="base64Binary", Order=0)]
        public object[] Items
        {
            get
            {
                return this.itemsField;
            }
            set
            {
                this.itemsField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class X509DataType
    {
        
        private object[] itemsField;
        
        private ItemsChoiceType[] itemsElementNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAnyElementAttribute(Order=0)]
        [System.Xml.Serialization.XmlElementAttribute("X509CRL", typeof(byte[]), DataType="base64Binary", Order=0)]
        [System.Xml.Serialization.XmlElementAttribute("X509Certificate", typeof(byte[]), DataType="base64Binary", Order=0)]
        [System.Xml.Serialization.XmlElementAttribute("X509IssuerSerial", typeof(X509IssuerSerialType), Order=0)]
        [System.Xml.Serialization.XmlElementAttribute("X509SKI", typeof(byte[]), DataType="base64Binary", Order=0)]
        [System.Xml.Serialization.XmlElementAttribute("X509SubjectName", typeof(string), Order=0)]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public object[] Items
        {
            get
            {
                return this.itemsField;
            }
            set
            {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName", Order=1)]
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemsChoiceType[] ItemsElementName
        {
            get
            {
                return this.itemsElementNameField;
            }
            set
            {
                this.itemsElementNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class X509IssuerSerialType
    {
        
        private string x509IssuerNameField;
        
        private string x509SerialNumberField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public string X509IssuerName
        {
            get
            {
                return this.x509IssuerNameField;
            }
            set
            {
                this.x509IssuerNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="integer", Order=1)]
        public string X509SerialNumber
        {
            get
            {
                return this.x509SerialNumberField;
            }
            set
            {
                this.x509SerialNumberField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#", IncludeInSchema=false)]
    public enum ItemsChoiceType
    {
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("##any:")]
        Item,
        
        /// <remarks/>
        X509CRL,
        
        /// <remarks/>
        X509Certificate,
        
        /// <remarks/>
        X509IssuerSerial,
        
        /// <remarks/>
        X509SKI,
        
        /// <remarks/>
        X509SubjectName,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#", IncludeInSchema=false)]
    public enum ItemsChoiceType2
    {
        
        /// <remarks/>
        [System.Xml.Serialization.XmlEnumAttribute("##any:")]
        Item,
        
        /// <remarks/>
        KeyName,
        
        /// <remarks/>
        KeyValue,
        
        /// <remarks/>
        MgmtData,
        
        /// <remarks/>
        PGPData,
        
        /// <remarks/>
        RetrievalMethod,
        
        /// <remarks/>
        SPKIData,
        
        /// <remarks/>
        X509Data,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class ObjectType
    {
        
        private System.Xml.XmlNode[] anyField;
        
        private string idField;
        
        private string mimeTypeField;
        
        private string encodingField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        [System.Xml.Serialization.XmlAnyElementAttribute(Order=0)]
        public System.Xml.XmlNode[] Any
        {
            get
            {
                return this.anyField;
            }
            set
            {
                this.anyField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string Id
        {
            get
            {
                return this.idField;
            }
            set
            {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string MimeType
        {
            get
            {
                return this.mimeTypeField;
            }
            set
            {
                this.mimeTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="anyURI")]
        public string Encoding
        {
            get
            {
                return this.encodingField;
            }
            set
            {
                this.encodingField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class timestampType
    {
        
        private System.DateTime createdField;
        
        private System.DateTime expiresField;
        
        private bool expiresFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public System.DateTime created
        {
            get
            {
                return this.createdField;
            }
            set
            {
                this.createdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public System.DateTime expires
        {
            get
            {
                return this.expiresField;
            }
            set
            {
                this.expiresField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool expiresSpecified
        {
            get
            {
                return this.expiresFieldSpecified;
            }
            set
            {
                this.expiresFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class SignaturePropertyType
    {
        
        private System.Xml.XmlElement[] itemsField;
        
        private string[] textField;
        
        private string targetField;
        
        private string idField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAnyElementAttribute(Order=0)]
        public System.Xml.XmlElement[] Items
        {
            get
            {
                return this.itemsField;
            }
            set
            {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text
        {
            get
            {
                return this.textField;
            }
            set
            {
                this.textField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="anyURI")]
        public string Target
        {
            get
            {
                return this.targetField;
            }
            set
            {
                this.targetField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string Id
        {
            get
            {
                return this.idField;
            }
            set
            {
                this.idField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class SignaturePropertiesType
    {
        
        private SignaturePropertyType[] signaturePropertyField;
        
        private string idField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("SignatureProperty", Order=0)]
        public SignaturePropertyType[] SignatureProperty
        {
            get
            {
                return this.signaturePropertyField;
            }
            set
            {
                this.signaturePropertyField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string Id
        {
            get
            {
                return this.idField;
            }
            set
            {
                this.idField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2000/09/xmldsig#")]
    public partial class ManifestType
    {
        
        private ReferenceType[] referenceField;
        
        private string idField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Reference", Order=0)]
        public ReferenceType[] Reference
        {
            get
            {
                return this.referenceField;
            }
            set
            {
                this.referenceField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="ID")]
        public string Id
        {
            get
            {
                return this.idField;
            }
            set
            {
                this.idField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/tplt/xsd/common/TemplatesCoreElements/1.0")]
    public partial class templateUsageMetadataType
    {
        
        private System.DateTime pCEHRAcceptedStartDateField;
        
        private System.DateTime pCEHRAcceptedEndDateField;
        
        private bool pCEHRAcceptedEndDateFieldSpecified;
        
        private bool containsPCEHRAtomicDataField;
        
        private bool containsPCEHRAtomicDataFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public System.DateTime PCEHRAcceptedStartDate
        {
            get
            {
                return this.pCEHRAcceptedStartDateField;
            }
            set
            {
                this.pCEHRAcceptedStartDateField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public System.DateTime PCEHRAcceptedEndDate
        {
            get
            {
                return this.pCEHRAcceptedEndDateField;
            }
            set
            {
                this.pCEHRAcceptedEndDateField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool PCEHRAcceptedEndDateSpecified
        {
            get
            {
                return this.pCEHRAcceptedEndDateFieldSpecified;
            }
            set
            {
                this.pCEHRAcceptedEndDateFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=2)]
        public bool containsPCEHRAtomicData
        {
            get
            {
                return this.containsPCEHRAtomicDataField;
            }
            set
            {
                this.containsPCEHRAtomicDataField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool containsPCEHRAtomicDataSpecified
        {
            get
            {
                return this.containsPCEHRAtomicDataFieldSpecified;
            }
            set
            {
                this.containsPCEHRAtomicDataFieldSpecified = value;
            }
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.ServiceContractAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/b2b/svc/PCEHRProfile/1.1", ConfigurationName="Nehta.VendorLibrary.PCEHR.PCEHRProfile.PCEHRProfilePortType")]
    public interface PCEHRProfilePortType
    {
        
        // CODEGEN: Generating message contract since the operation doesPCEHRExist is neither RPC nor document wrapped.
        [System.ServiceModel.OperationContractAttribute(Action="http://ns.electronichealth.net.au/pcehr/svc/PCEHRProfile/1.1/PCEHRProfilePortType" +
            "/doesPCEHRExistRequest", ReplyAction="http://ns.electronichealth.net.au/pcehr/svc/PCEHRProfile/1.1/PCEHRProfilePortType" +
            "/doesPCEHRExistResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(Nehta.VendorLibrary.PCEHR.PCEHRProfile.StandardErrorType), Action="http://ns.electronichealth.net.au/pcehr/svc/PCEHRProfile/1.1/PCEHRProfilePortType" +
            "/Fault/standardError", Name="standardError", Namespace="http://ns.electronichealth.net.au/wsp/xsd/StandardError/2010")]
        [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(contactPersonTypeSupp))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(individualTypeSupp))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(organisationTypeSupp))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(contactDetailsType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(addressTypeSupp))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(participantActionType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(accessedEntityType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(participantDetailsType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(organisationType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(accessConditionsType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(responseStatusType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(addressType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(nameType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(signatureContainerType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(timestampType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(SignaturePropertiesType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ManifestType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(templateUsageMetadataType))]
        Nehta.VendorLibrary.PCEHR.PCEHRProfile.doesPCEHRExistResponse1 doesPCEHRExist(Nehta.VendorLibrary.PCEHR.PCEHRProfile.doesPCEHRExistRequest request);
        
        // CODEGEN: Generating message contract since the wrapper namespace (http://ns.electronichealth.net.au/pcehr/xsd/interfaces/PCEHRProfile/1.0) of message gainPCEHRAccessRequest does not match the default value (http://ns.electronichealth.net.au/pcehr/b2b/svc/PCEHRProfile/1.1)
        [System.ServiceModel.OperationContractAttribute(Action="http://ns.electronichealth.net.au/pcehr/svc/PCEHRProfile/1.1/PCEHRProfilePortType" +
            "/gainPCEHRAccessRequest", ReplyAction="http://ns.electronichealth.net.au/pcehr/svc/PCEHRProfile/1.1/PCEHRProfilePortType" +
            "/gainPCEHRAccessResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(Nehta.VendorLibrary.PCEHR.PCEHRProfile.StandardErrorType), Action="http://ns.electronichealth.net.au/pcehr/svc/PCEHRProfile/1.1/PCEHRProfilePortType" +
            "/Fault/standardError", Name="standardError", Namespace="http://ns.electronichealth.net.au/wsp/xsd/StandardError/2010")]
        [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(contactPersonTypeSupp))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(individualTypeSupp))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(organisationTypeSupp))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(contactDetailsType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(addressTypeSupp))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(participantActionType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(accessedEntityType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(participantDetailsType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(organisationType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(accessConditionsType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(responseStatusType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(addressType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(nameType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(signatureContainerType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(timestampType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(SignaturePropertiesType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(ManifestType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(templateUsageMetadataType))]
        Nehta.VendorLibrary.PCEHR.PCEHRProfile.gainPCEHRAccessResponse gainPCEHRAccess(Nehta.VendorLibrary.PCEHR.PCEHRProfile.gainPCEHRAccessRequest request);
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class PCEHRHeader
    {
        
        private PCEHRHeaderUser userField;
        
        private string ihiNumberField;
        
        private PCEHRHeaderProductType productTypeField;
        
        private PCEHRHeaderClientSystemType clientSystemTypeField;
        
        private PCEHRHeaderAccessingOrganisation accessingOrganisationField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public PCEHRHeaderUser User
        {
            get
            {
                return this.userField;
            }
            set
            {
                this.userField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string ihiNumber
        {
            get
            {
                return this.ihiNumberField;
            }
            set
            {
                this.ihiNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=2)]
        public PCEHRHeaderProductType productType
        {
            get
            {
                return this.productTypeField;
            }
            set
            {
                this.productTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=3)]
        public PCEHRHeaderClientSystemType clientSystemType
        {
            get
            {
                return this.clientSystemTypeField;
            }
            set
            {
                this.clientSystemTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=4)]
        public PCEHRHeaderAccessingOrganisation accessingOrganisation
        {
            get
            {
                return this.accessingOrganisationField;
            }
            set
            {
                this.accessingOrganisationField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class PCEHRHeaderUser
    {
        
        private PCEHRHeaderUserIDType iDTypeField;
        
        private string idField;
        
        private string roleField;
        
        private string userNameField;
        
        private bool useRoleForAuditField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public PCEHRHeaderUserIDType IDType
        {
            get
            {
                return this.iDTypeField;
            }
            set
            {
                this.iDTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string ID
        {
            get
            {
                return this.idField;
            }
            set
            {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=2)]
        public string role
        {
            get
            {
                return this.roleField;
            }
            set
            {
                this.roleField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=3)]
        public string userName
        {
            get
            {
                return this.userNameField;
            }
            set
            {
                this.userNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=4)]
        public bool useRoleForAudit
        {
            get
            {
                return this.useRoleForAuditField;
            }
            set
            {
                this.useRoleForAuditField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum PCEHRHeaderUserIDType
    {
        
        /// <remarks/>
        HPII,
        
        /// <remarks/>
        PortalUserIdentifier,
        
        /// <remarks/>
        LocalSystemIdentifier,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class PCEHRHeaderProductType
    {
        
        private string vendorField;
        
        private string productNameField;
        
        private string productVersionField;
        
        private string platformField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public string vendor
        {
            get
            {
                return this.vendorField;
            }
            set
            {
                this.vendorField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string productName
        {
            get
            {
                return this.productNameField;
            }
            set
            {
                this.productNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=2)]
        public string productVersion
        {
            get
            {
                return this.productVersionField;
            }
            set
            {
                this.productVersionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=3)]
        public string platform
        {
            get
            {
                return this.platformField;
            }
            set
            {
                this.platformField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum PCEHRHeaderClientSystemType
    {
        
        /// <remarks/>
        CIS,
        
        /// <remarks/>
        CSP,
        
        /// <remarks/>
        CRP,
        
        /// <remarks/>
        HI,
        
        /// <remarks/>
        Medicare,
        
        /// <remarks/>
        CPP,
        
        /// <remarks/>
        CCP,
        
        /// <remarks/>
        Other,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public partial class PCEHRHeaderAccessingOrganisation
    {
        
        private string organisationIDField;
        
        private string organisationNameField;
        
        private string alternateOrganisationNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public string organisationID
        {
            get
            {
                return this.organisationIDField;
            }
            set
            {
                this.organisationIDField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string organisationName
        {
            get
            {
                return this.organisationNameField;
            }
            set
            {
                this.organisationNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=2)]
        public string alternateOrganisationName
        {
            get
            {
                return this.alternateOrganisationNameField;
            }
            set
            {
                this.alternateOrganisationNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/interfaces/PCEHRProfile/1.0")]
    public partial class doesPCEHRExistResponse
    {
        
        private bool pCEHRExistsField;
        
        private doesPCEHRExistResponseAccessCodeRequired accessCodeRequiredField;
        
        private bool accessCodeRequiredFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public bool PCEHRExists
        {
            get
            {
                return this.pCEHRExistsField;
            }
            set
            {
                this.pCEHRExistsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public doesPCEHRExistResponseAccessCodeRequired accessCodeRequired
        {
            get
            {
                return this.accessCodeRequiredField;
            }
            set
            {
                this.accessCodeRequiredField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool accessCodeRequiredSpecified
        {
            get
            {
                return this.accessCodeRequiredFieldSpecified;
            }
            set
            {
                this.accessCodeRequiredFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/interfaces/PCEHRProfile/1.0")]
    public enum doesPCEHRExistResponseAccessCodeRequired
    {
        
        /// <remarks/>
        WithCode,
        
        /// <remarks/>
        WithoutCode,
        
        /// <remarks/>
        AccessGranted,
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class doesPCEHRExistRequest
    {
        
        [System.ServiceModel.MessageHeaderAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
        public Nehta.VendorLibrary.PCEHR.PCEHRProfile.timestampType timestamp;
        
        [System.ServiceModel.MessageHeaderAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
        public Nehta.VendorLibrary.PCEHR.PCEHRProfile.signatureContainerType signature;
        
        [System.ServiceModel.MessageHeaderAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
        public Nehta.VendorLibrary.PCEHR.PCEHRProfile.PCEHRHeader PCEHRHeader;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/interfaces/PCEHRProfile/1.0", Order=0)]
        public object doesPCEHRExist;
        
        public doesPCEHRExistRequest()
        {
        }
        
        public doesPCEHRExistRequest(Nehta.VendorLibrary.PCEHR.PCEHRProfile.timestampType timestamp, Nehta.VendorLibrary.PCEHR.PCEHRProfile.signatureContainerType signature, Nehta.VendorLibrary.PCEHR.PCEHRProfile.PCEHRHeader PCEHRHeader, object doesPCEHRExist)
        {
            this.timestamp = timestamp;
            this.signature = signature;
            this.PCEHRHeader = PCEHRHeader;
            this.doesPCEHRExist = doesPCEHRExist;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class doesPCEHRExistResponse1
    {
        
        [System.ServiceModel.MessageHeaderAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
        public Nehta.VendorLibrary.PCEHR.PCEHRProfile.signatureContainerType signature;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/interfaces/PCEHRProfile/1.0", Order=0)]
        public Nehta.VendorLibrary.PCEHR.PCEHRProfile.doesPCEHRExistResponse doesPCEHRExistResponse;
        
        public doesPCEHRExistResponse1()
        {
        }
        
        public doesPCEHRExistResponse1(Nehta.VendorLibrary.PCEHR.PCEHRProfile.signatureContainerType signature, Nehta.VendorLibrary.PCEHR.PCEHRProfile.doesPCEHRExistResponse doesPCEHRExistResponse)
        {
            this.signature = signature;
            this.doesPCEHRExistResponse = doesPCEHRExistResponse;
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/interfaces/PCEHRProfile/1.0")]
    public partial class gainPCEHRAccessPCEHRRecord
    {
        
        private gainPCEHRAccessPCEHRRecordAuthorisationDetails authorisationDetailsField;
        
        private gainPCEHRAccessPCEHRRecordIndividual individualField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public gainPCEHRAccessPCEHRRecordAuthorisationDetails authorisationDetails
        {
            get
            {
                return this.authorisationDetailsField;
            }
            set
            {
                this.authorisationDetailsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public gainPCEHRAccessPCEHRRecordIndividual individual
        {
            get
            {
                return this.individualField;
            }
            set
            {
                this.individualField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/interfaces/PCEHRProfile/1.0")]
    public partial class gainPCEHRAccessPCEHRRecordAuthorisationDetails
    {
        
        private gainPCEHRAccessPCEHRRecordAuthorisationDetailsAccessType accessTypeField;
        
        private string accessCodeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public gainPCEHRAccessPCEHRRecordAuthorisationDetailsAccessType accessType
        {
            get
            {
                return this.accessTypeField;
            }
            set
            {
                this.accessTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=1)]
        public string accessCode
        {
            get
            {
                return this.accessCodeField;
            }
            set
            {
                this.accessCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/interfaces/PCEHRProfile/1.0")]
    public enum gainPCEHRAccessPCEHRRecordAuthorisationDetailsAccessType
    {
        
        /// <remarks/>
        AccessCode,
        
        /// <remarks/>
        EmergencyAccess,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/interfaces/PCEHRProfile/1.0")]
    public partial class gainPCEHRAccessPCEHRRecordIndividual
    {
        
        private string medicareCardNumberField;
        
        private string medicareIRNField;
        
        private string dvaFileNumberField;
        
        private string militaryHealthNumberField;
        
        private System.DateTime dateOfBirthField;
        
        private sex sexField;
        
        private nameType nameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0", DataType="token", Order=0)]
        public string medicareCardNumber
        {
            get
            {
                return this.medicareCardNumberField;
            }
            set
            {
                this.medicareCardNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0", DataType="integer", Order=1)]
        public string medicareIRN
        {
            get
            {
                return this.medicareIRNField;
            }
            set
            {
                this.medicareIRNField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0", DataType="token", Order=2)]
        public string dvaFileNumber
        {
            get
            {
                return this.dvaFileNumberField;
            }
            set
            {
                this.dvaFileNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0", Order=3)]
        public string militaryHealthNumber
        {
            get
            {
                return this.militaryHealthNumberField;
            }
            set
            {
                this.militaryHealthNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="date", Order=4)]
        public System.DateTime dateOfBirth
        {
            get
            {
                return this.dateOfBirthField;
            }
            set
            {
                this.dateOfBirthField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0", Order=5)]
        public sex sex
        {
            get
            {
                return this.sexField;
            }
            set
            {
                this.sexField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=6)]
        public nameType name
        {
            get
            {
                return this.nameField;
            }
            set
            {
                this.nameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/interfaces/PCEHRProfile/1.0")]
    public partial class gainPCEHRAccessResponseIndividual
    {
        
        private string ihiNumberField;
        
        private string medicareCardNumberField;
        
        private string medicareIRNField;
        
        private string dvaFileNumberField;
        
        private string militaryHealthNumberField;
        
        private recordStatusType ihiRecordStatusField;
        
        private statusType ihiStatusField;
        
        private System.DateTime dateOfBirthField;
        
        private dateAccuracyIndicatorType dateAccuracyIndicatorTypeField;
        
        private sex sexField;
        
        private nameType nameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0", Order=0)]
        public string ihiNumber
        {
            get
            {
                return this.ihiNumberField;
            }
            set
            {
                this.ihiNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0", DataType="token", Order=1)]
        public string medicareCardNumber
        {
            get
            {
                return this.medicareCardNumberField;
            }
            set
            {
                this.medicareCardNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0", DataType="integer", Order=2)]
        public string medicareIRN
        {
            get
            {
                return this.medicareIRNField;
            }
            set
            {
                this.medicareIRNField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0", DataType="token", Order=3)]
        public string dvaFileNumber
        {
            get
            {
                return this.dvaFileNumberField;
            }
            set
            {
                this.dvaFileNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0", Order=4)]
        public string militaryHealthNumber
        {
            get
            {
                return this.militaryHealthNumberField;
            }
            set
            {
                this.militaryHealthNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=5)]
        public recordStatusType ihiRecordStatus
        {
            get
            {
                return this.ihiRecordStatusField;
            }
            set
            {
                this.ihiRecordStatusField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=6)]
        public statusType ihiStatus
        {
            get
            {
                return this.ihiStatusField;
            }
            set
            {
                this.ihiStatusField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="date", Order=7)]
        public System.DateTime dateOfBirth
        {
            get
            {
                return this.dateOfBirthField;
            }
            set
            {
                this.dateOfBirthField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0", Order=8)]
        public dateAccuracyIndicatorType dateAccuracyIndicatorType
        {
            get
            {
                return this.dateAccuracyIndicatorTypeField;
            }
            set
            {
                this.dateAccuracyIndicatorTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0", Order=9)]
        public sex sex
        {
            get
            {
                return this.sexField;
            }
            set
            {
                this.sexField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=10)]
        public nameType name
        {
            get
            {
                return this.nameField;
            }
            set
            {
                this.nameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum recordStatusType
    {
        
        /// <remarks/>
        Verified,
        
        /// <remarks/>
        Unverified,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum statusType
    {
        
        /// <remarks/>
        Active,
        
        /// <remarks/>
        Deceased,
        
        /// <remarks/>
        Retired,
        
        /// <remarks/>
        Resolved,
        
        /// <remarks/>
        Expired,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
    public enum dateAccuracyIndicatorType
    {
        
        /// <remarks/>
        AAA,
        
        /// <remarks/>
        AAE,
        
        /// <remarks/>
        AAU,
        
        /// <remarks/>
        AEA,
        
        /// <remarks/>
        AEE,
        
        /// <remarks/>
        AEU,
        
        /// <remarks/>
        AUA,
        
        /// <remarks/>
        AUE,
        
        /// <remarks/>
        AUU,
        
        /// <remarks/>
        EAA,
        
        /// <remarks/>
        EAE,
        
        /// <remarks/>
        EAU,
        
        /// <remarks/>
        EEA,
        
        /// <remarks/>
        EEE,
        
        /// <remarks/>
        EEU,
        
        /// <remarks/>
        EUA,
        
        /// <remarks/>
        EUE,
        
        /// <remarks/>
        EUU,
        
        /// <remarks/>
        UAA,
        
        /// <remarks/>
        UAE,
        
        /// <remarks/>
        UAU,
        
        /// <remarks/>
        UEA,
        
        /// <remarks/>
        UEE,
        
        /// <remarks/>
        UEU,
        
        /// <remarks/>
        UUA,
        
        /// <remarks/>
        UUE,
        
        /// <remarks/>
        UUU,
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="gainPCEHRAccess", WrapperNamespace="http://ns.electronichealth.net.au/pcehr/xsd/interfaces/PCEHRProfile/1.0", IsWrapped=true)]
    public partial class gainPCEHRAccessRequest
    {
        
        [System.ServiceModel.MessageHeaderAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
        public Nehta.VendorLibrary.PCEHR.PCEHRProfile.timestampType timestamp;
        
        [System.ServiceModel.MessageHeaderAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
        public Nehta.VendorLibrary.PCEHR.PCEHRProfile.signatureContainerType signature;
        
        [System.ServiceModel.MessageHeaderAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
        public Nehta.VendorLibrary.PCEHR.PCEHRProfile.PCEHRHeader PCEHRHeader;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/interfaces/PCEHRProfile/1.0", Order=0)]
        public Nehta.VendorLibrary.PCEHR.PCEHRProfile.gainPCEHRAccessPCEHRRecord PCEHRRecord;
        
        public gainPCEHRAccessRequest()
        {
        }
        
        public gainPCEHRAccessRequest(Nehta.VendorLibrary.PCEHR.PCEHRProfile.timestampType timestamp, Nehta.VendorLibrary.PCEHR.PCEHRProfile.signatureContainerType signature, Nehta.VendorLibrary.PCEHR.PCEHRProfile.PCEHRHeader PCEHRHeader, Nehta.VendorLibrary.PCEHR.PCEHRProfile.gainPCEHRAccessPCEHRRecord PCEHRRecord)
        {
            this.timestamp = timestamp;
            this.signature = signature;
            this.PCEHRHeader = PCEHRHeader;
            this.PCEHRRecord = PCEHRRecord;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="gainPCEHRAccessResponse", WrapperNamespace="http://ns.electronichealth.net.au/pcehr/xsd/interfaces/PCEHRProfile/1.0", IsWrapped=true)]
    public partial class gainPCEHRAccessResponse
    {
        
        [System.ServiceModel.MessageHeaderAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0")]
        public Nehta.VendorLibrary.PCEHR.PCEHRProfile.signatureContainerType signature;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/interfaces/PCEHRProfile/1.0", Order=0)]
        public Nehta.VendorLibrary.PCEHR.PCEHRProfile.responseStatusType responseStatus;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://ns.electronichealth.net.au/pcehr/xsd/interfaces/PCEHRProfile/1.0", Order=1)]
        public Nehta.VendorLibrary.PCEHR.PCEHRProfile.gainPCEHRAccessResponseIndividual individual;
        
        public gainPCEHRAccessResponse()
        {
        }
        
        public gainPCEHRAccessResponse(Nehta.VendorLibrary.PCEHR.PCEHRProfile.signatureContainerType signature, Nehta.VendorLibrary.PCEHR.PCEHRProfile.responseStatusType responseStatus, Nehta.VendorLibrary.PCEHR.PCEHRProfile.gainPCEHRAccessResponseIndividual individual)
        {
            this.signature = signature;
            this.responseStatus = responseStatus;
            this.individual = individual;
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    public interface PCEHRProfilePortTypeChannel : Nehta.VendorLibrary.PCEHR.PCEHRProfile.PCEHRProfilePortType, System.ServiceModel.IClientChannel
    {
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    public partial class PCEHRProfilePortTypeClient : System.ServiceModel.ClientBase<Nehta.VendorLibrary.PCEHR.PCEHRProfile.PCEHRProfilePortType>, Nehta.VendorLibrary.PCEHR.PCEHRProfile.PCEHRProfilePortType
    {
        
        public PCEHRProfilePortTypeClient()
        {
        }
        
        public PCEHRProfilePortTypeClient(string endpointConfigurationName) : 
                base(endpointConfigurationName)
        {
        }
        
        public PCEHRProfilePortTypeClient(string endpointConfigurationName, string remoteAddress) : 
                base(endpointConfigurationName, remoteAddress)
        {
        }
        
        public PCEHRProfilePortTypeClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(endpointConfigurationName, remoteAddress)
        {
        }
        
        public PCEHRProfilePortTypeClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(binding, remoteAddress)
        {
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        Nehta.VendorLibrary.PCEHR.PCEHRProfile.doesPCEHRExistResponse1 Nehta.VendorLibrary.PCEHR.PCEHRProfile.PCEHRProfilePortType.doesPCEHRExist(Nehta.VendorLibrary.PCEHR.PCEHRProfile.doesPCEHRExistRequest request)
        {
            return base.Channel.doesPCEHRExist(request);
        }
        
        public Nehta.VendorLibrary.PCEHR.PCEHRProfile.doesPCEHRExistResponse doesPCEHRExist(Nehta.VendorLibrary.PCEHR.PCEHRProfile.timestampType timestamp, ref Nehta.VendorLibrary.PCEHR.PCEHRProfile.signatureContainerType signature, Nehta.VendorLibrary.PCEHR.PCEHRProfile.PCEHRHeader PCEHRHeader, object doesPCEHRExist1)
        {
            Nehta.VendorLibrary.PCEHR.PCEHRProfile.doesPCEHRExistRequest inValue = new Nehta.VendorLibrary.PCEHR.PCEHRProfile.doesPCEHRExistRequest();
            inValue.timestamp = timestamp;
            inValue.signature = signature;
            inValue.PCEHRHeader = PCEHRHeader;
            inValue.doesPCEHRExist = doesPCEHRExist1;
            Nehta.VendorLibrary.PCEHR.PCEHRProfile.doesPCEHRExistResponse1 retVal = ((Nehta.VendorLibrary.PCEHR.PCEHRProfile.PCEHRProfilePortType)(this)).doesPCEHRExist(inValue);
            signature = retVal.signature;
            return retVal.doesPCEHRExistResponse;
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        Nehta.VendorLibrary.PCEHR.PCEHRProfile.gainPCEHRAccessResponse Nehta.VendorLibrary.PCEHR.PCEHRProfile.PCEHRProfilePortType.gainPCEHRAccess(Nehta.VendorLibrary.PCEHR.PCEHRProfile.gainPCEHRAccessRequest request)
        {
            return base.Channel.gainPCEHRAccess(request);
        }
        
        public Nehta.VendorLibrary.PCEHR.PCEHRProfile.responseStatusType gainPCEHRAccess(Nehta.VendorLibrary.PCEHR.PCEHRProfile.timestampType timestamp, ref Nehta.VendorLibrary.PCEHR.PCEHRProfile.signatureContainerType signature, Nehta.VendorLibrary.PCEHR.PCEHRProfile.PCEHRHeader PCEHRHeader, Nehta.VendorLibrary.PCEHR.PCEHRProfile.gainPCEHRAccessPCEHRRecord PCEHRRecord, out Nehta.VendorLibrary.PCEHR.PCEHRProfile.gainPCEHRAccessResponseIndividual individual)
        {
            Nehta.VendorLibrary.PCEHR.PCEHRProfile.gainPCEHRAccessRequest inValue = new Nehta.VendorLibrary.PCEHR.PCEHRProfile.gainPCEHRAccessRequest();
            inValue.timestamp = timestamp;
            inValue.signature = signature;
            inValue.PCEHRHeader = PCEHRHeader;
            inValue.PCEHRRecord = PCEHRRecord;
            Nehta.VendorLibrary.PCEHR.PCEHRProfile.gainPCEHRAccessResponse retVal = ((Nehta.VendorLibrary.PCEHR.PCEHRProfile.PCEHRProfilePortType)(this)).gainPCEHRAccess(inValue);
            signature = retVal.signature;
            individual = retVal.individual;
            return retVal.responseStatus;
        }
    }
}
