Solved

Reference .xsd file within C# project code

Posted on 2013-06-15
13
620 Views
Last Modified: 2013-07-10
Hey guys!!

I have an .xsd file that has considerable xml inside.  How would I go about being able to reference it from inside the program.  I have added it through the add existing item but still can't access it in the code.


Any ideas,

Jerry
0
Comment
Question by:JDL129
  • 9
  • 4
13 Comments
 
LVL 74

Expert Comment

by:käµfm³d 👽
ID: 39250767
Reference it how? As an .xsd file? As a class that represents something similar to what the XSD defines? Please expand your explanation.
0
 

Author Comment

by:JDL129
ID: 39251310
kaufmed!!!  Thanks for the post!!

I am trying to parse incoming xml files and the .xsd contains all of the node names that will be in the incoming and I would like to use the .xsd to compare node name and extract the node information.  I don't know if you've figured it out yet but I am dumber than a stump about xml stuff but am trying to learn.

Thanks again,

Jerry
SS-SCRIPT-XML-10-6.xsd
0
 
LVL 74

Expert Comment

by:käµfm³d 👽
ID: 39252304
You can use XML serialization to deserialize your XML into classes. This will give you an easy way to access your data, as opposed to XML parsing, which you could still do if you like. You can use the xsd.exe utility (my article , "Making a Class from a Schema") to generate one or more classes--depending on how the XSD is structured--that would be capable of holding the data. For example, running the tool against your schema using this command line:

xsd /c /n:XmlClasses SS-SCRIPT-XML-10-6.xsd

...generates this file:

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

// 
// This source code was auto-generated by xsd, Version=4.0.30319.17929.
// 
namespace XmlClasses {
    using System.Xml.Serialization;
    
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute("Message", Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class MessageType {
        
        private HeaderType headerField;
        
        private BodyType bodyField;
        
        private string versionField;
        
        private string releaseField;
        
        private string highestVersionSupportedField;
        
        /// <remarks/>
        public HeaderType Header {
            get {
                return this.headerField;
            }
            set {
                this.headerField = value;
            }
        }
        
        /// <remarks/>
        public BodyType Body {
            get {
                return this.bodyField;
            }
            set {
                this.bodyField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string version {
            get {
                return this.versionField;
            }
            set {
                this.versionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string release {
            get {
                return this.releaseField;
            }
            set {
                this.releaseField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string HighestVersionSupported {
            get {
                return this.highestVersionSupportedField;
            }
            set {
                this.highestVersionSupportedField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class HeaderType {
        
        private HeaderTypeTO toField;
        
        private HeaderTypeFrom fromField;
        
        private string messageIDField;
        
        private string relatesToMessageIDField;
        
        private System.DateTime sentTimeField;
        
        private SecurityType securityField;
        
        private SenderSoftwareType senderSoftwareField;
        
        private MailboxType mailboxField;
        
        private string testMessageField;
        
        private string rxReferenceNumberField;
        
        private string tertiaryIdentifierField;
        
        private string prescriberOrderNumberField;
        
        private HeaderTypeDigitalSignature digitalSignatureField;
        
        /// <remarks/>
        public HeaderTypeTO To {
            get {
                return this.toField;
            }
            set {
                this.toField = value;
            }
        }
        
        /// <remarks/>
        public HeaderTypeFrom From {
            get {
                return this.fromField;
            }
            set {
                this.fromField = value;
            }
        }
        
        /// <remarks/>
        public string MessageID {
            get {
                return this.messageIDField;
            }
            set {
                this.messageIDField = value;
            }
        }
        
        /// <remarks/>
        public string RelatesToMessageID {
            get {
                return this.relatesToMessageIDField;
            }
            set {
                this.relatesToMessageIDField = value;
            }
        }
        
        /// <remarks/>
        public System.DateTime SentTime {
            get {
                return this.sentTimeField;
            }
            set {
                this.sentTimeField = value;
            }
        }
        
        /// <remarks/>
        public SecurityType Security {
            get {
                return this.securityField;
            }
            set {
                this.securityField = value;
            }
        }
        
        /// <remarks/>
        public SenderSoftwareType SenderSoftware {
            get {
                return this.senderSoftwareField;
            }
            set {
                this.senderSoftwareField = value;
            }
        }
        
        /// <remarks/>
        public MailboxType Mailbox {
            get {
                return this.mailboxField;
            }
            set {
                this.mailboxField = value;
            }
        }
        
        /// <remarks/>
        public string TestMessage {
            get {
                return this.testMessageField;
            }
            set {
                this.testMessageField = value;
            }
        }
        
        /// <remarks/>
        public string RxReferenceNumber {
            get {
                return this.rxReferenceNumberField;
            }
            set {
                this.rxReferenceNumberField = value;
            }
        }
        
        /// <remarks/>
        public string TertiaryIdentifier {
            get {
                return this.tertiaryIdentifierField;
            }
            set {
                this.tertiaryIdentifierField = value;
            }
        }
        
        /// <remarks/>
        public string PrescriberOrderNumber {
            get {
                return this.prescriberOrderNumberField;
            }
            set {
                this.prescriberOrderNumberField = value;
            }
        }
        
        /// <remarks/>
        public HeaderTypeDigitalSignature DigitalSignature {
            get {
                return this.digitalSignatureField;
            }
            set {
                this.digitalSignatureField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class HeaderTypeTO {
        
        private string qualifierField;
        
        private string valueField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string Qualifier {
            get {
                return this.qualifierField;
            }
            set {
                this.qualifierField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class PasswordRequestType {
        
        private object itemField;
        
        private ItemChoiceType2 itemElementNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("NewPassword", typeof(object))]
        [System.Xml.Serialization.XmlElementAttribute("OldPassword", typeof(object))]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")]
        public object Item {
            get {
                return this.itemField;
            }
            set {
                this.itemField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemChoiceType2 ItemElementName {
            get {
                return this.itemElementNameField;
            }
            set {
                this.itemElementNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging", IncludeInSchema=false)]
    public enum ItemChoiceType2 {
        
        /// <remarks/>
        NewPassword,
        
        /// <remarks/>
        OldPassword,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class HistoryResponseType {
        
        private object itemField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Approved", typeof(ApprovedType))]
        [System.Xml.Serialization.XmlElementAttribute("Denied", typeof(DeniedType))]
        public object Item {
            get {
                return this.itemField;
            }
            set {
                this.itemField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class ApprovedType {
        
        private string[] approvalReasonCodeField;
        
        private string referenceNumberField;
        
        private string noteField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ApprovalReasonCode")]
        public string[] ApprovalReasonCode {
            get {
                return this.approvalReasonCodeField;
            }
            set {
                this.approvalReasonCodeField = value;
            }
        }
        
        /// <remarks/>
        public string ReferenceNumber {
            get {
                return this.referenceNumberField;
            }
            set {
                this.referenceNumberField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class DeniedType {
        
        private string[] denialReasonCodeField;
        
        private string referenceNumberField;
        
        private string denialReasonField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DenialReasonCode")]
        public string[] DenialReasonCode {
            get {
                return this.denialReasonCodeField;
            }
            set {
                this.denialReasonCodeField = value;
            }
        }
        
        /// <remarks/>
        public string ReferenceNumber {
            get {
                return this.referenceNumberField;
            }
            set {
                this.referenceNumberField = value;
            }
        }
        
        /// <remarks/>
        public string DenialReason {
            get {
                return this.denialReasonField;
            }
            set {
                this.denialReasonField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class HistoryPrescribedMedicationType {
        
        private string drugDescriptionField;
        
        private DrugCodedType drugCodedField;
        
        private QuantityType quantityField;
        
        private string daysSupplyField;
        
        private string directionsField;
        
        private string noteField;
        
        private MedicationHistoryRefillsType refillsField;
        
        private string substitutionsField;
        
        private DateType writtenDateField;
        
        private DateType lastFillDateField;
        
        private DateType expirationDateField;
        
        private DateType effectiveDateField;
        
        private DateType periodEndField;
        
        private DateType deliveredOnDateField;
        
        private DateType dateValidatedField;
        
        private Diagnosis[] diagnosisField;
        
        private PriorAuthorizationType priorAuthorizationField;
        
        private OptionalPharmacyType pharmacyField;
        
        private HistoryPrescriberType prescriberField;
        
        private DrugUseEvaluationType[] drugUseEvaluationField;
        
        private string[] drugCoverageStatusCodeField;
        
        private string priorAuthorizationStatusField;
        
        private SIGType[] structuredSIGField;
        
        private HistorySourceType historySourceField;
        
        /// <remarks/>
        public string DrugDescription {
            get {
                return this.drugDescriptionField;
            }
            set {
                this.drugDescriptionField = value;
            }
        }
        
        /// <remarks/>
        public DrugCodedType DrugCoded {
            get {
                return this.drugCodedField;
            }
            set {
                this.drugCodedField = value;
            }
        }
        
        /// <remarks/>
        public QuantityType Quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        public string DaysSupply {
            get {
                return this.daysSupplyField;
            }
            set {
                this.daysSupplyField = value;
            }
        }
        
        /// <remarks/>
        public string Directions {
            get {
                return this.directionsField;
            }
            set {
                this.directionsField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
        
        /// <remarks/>
        public MedicationHistoryRefillsType Refills {
            get {
                return this.refillsField;
            }
            set {
                this.refillsField = value;
            }
        }
        
        /// <remarks/>
        public string Substitutions {
            get {
                return this.substitutionsField;
            }
            set {
                this.substitutionsField = value;
            }
        }
        
        /// <remarks/>
        public DateType WrittenDate {
            get {
                return this.writtenDateField;
            }
            set {
                this.writtenDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType LastFillDate {
            get {
                return this.lastFillDateField;
            }
            set {
                this.lastFillDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType ExpirationDate {
            get {
                return this.expirationDateField;
            }
            set {
                this.expirationDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType EffectiveDate {
            get {
                return this.effectiveDateField;
            }
            set {
                this.effectiveDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType PeriodEnd {
            get {
                return this.periodEndField;
            }
            set {
                this.periodEndField = value;
            }
        }
        
        /// <remarks/>
        public DateType DeliveredOnDate {
            get {
                return this.deliveredOnDateField;
            }
            set {
                this.deliveredOnDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateValidated {
            get {
                return this.dateValidatedField;
            }
            set {
                this.dateValidatedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Diagnosis")]
        public Diagnosis[] Diagnosis {
            get {
                return this.diagnosisField;
            }
            set {
                this.diagnosisField = value;
            }
        }
        
        /// <remarks/>
        public PriorAuthorizationType PriorAuthorization {
            get {
                return this.priorAuthorizationField;
            }
            set {
                this.priorAuthorizationField = value;
            }
        }
        
        /// <remarks/>
        public OptionalPharmacyType Pharmacy {
            get {
                return this.pharmacyField;
            }
            set {
                this.pharmacyField = value;
            }
        }
        
        /// <remarks/>
        public HistoryPrescriberType Prescriber {
            get {
                return this.prescriberField;
            }
            set {
                this.prescriberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugUseEvaluation")]
        public DrugUseEvaluationType[] DrugUseEvaluation {
            get {
                return this.drugUseEvaluationField;
            }
            set {
                this.drugUseEvaluationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugCoverageStatusCode")]
        public string[] DrugCoverageStatusCode {
            get {
                return this.drugCoverageStatusCodeField;
            }
            set {
                this.drugCoverageStatusCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PriorAuthorizationStatus {
            get {
                return this.priorAuthorizationStatusField;
            }
            set {
                this.priorAuthorizationStatusField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("StructuredSIG")]
        public SIGType[] StructuredSIG {
            get {
                return this.structuredSIGField;
            }
            set {
                this.structuredSIGField = value;
            }
        }
        
        /// <remarks/>
        public HistorySourceType HistorySource {
            get {
                return this.historySourceField;
            }
            set {
                this.historySourceField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute("DrugCoded", Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class DrugCodedType {
        
        private string productCodeField;
        
        private string productCodeQualifierField;
        
        private string strengthField;
        
        private string drugDBCodeField;
        
        private string drugDBCodeQualifierField;
        
        private string formSourceCodeField;
        
        private string formCodeField;
        
        private string strengthSourceCodeField;
        
        private string strengthCodeField;
        
        private DrugCodedTypeDEASchedule dEAScheduleField;
        
        private bool dEAScheduleFieldSpecified;
        
        /// <remarks/>
        public string ProductCode {
            get {
                return this.productCodeField;
            }
            set {
                this.productCodeField = value;
            }
        }
        
        /// <remarks/>
        public string ProductCodeQualifier {
            get {
                return this.productCodeQualifierField;
            }
            set {
                this.productCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string Strength {
            get {
                return this.strengthField;
            }
            set {
                this.strengthField = value;
            }
        }
        
        /// <remarks/>
        public string DrugDBCode {
            get {
                return this.drugDBCodeField;
            }
            set {
                this.drugDBCodeField = value;
            }
        }
        
        /// <remarks/>
        public string DrugDBCodeQualifier {
            get {
                return this.drugDBCodeQualifierField;
            }
            set {
                this.drugDBCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string FormSourceCode {
            get {
                return this.formSourceCodeField;
            }
            set {
                this.formSourceCodeField = value;
            }
        }
        
        /// <remarks/>
        public string FormCode {
            get {
                return this.formCodeField;
            }
            set {
                this.formCodeField = value;
            }
        }
        
        /// <remarks/>
        public string StrengthSourceCode {
            get {
                return this.strengthSourceCodeField;
            }
            set {
                this.strengthSourceCodeField = value;
            }
        }
        
        /// <remarks/>
        public string StrengthCode {
            get {
                return this.strengthCodeField;
            }
            set {
                this.strengthCodeField = value;
            }
        }
        
        /// <remarks/>
        public DrugCodedTypeDEASchedule DEASchedule {
            get {
                return this.dEAScheduleField;
            }
            set {
                this.dEAScheduleField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool DEAScheduleSpecified {
            get {
                return this.dEAScheduleFieldSpecified;
            }
            set {
                this.dEAScheduleFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public enum DrugCodedTypeDEASchedule {
        
        /// <remarks/>
        C38046,
        
        /// <remarks/>
        C48672,
        
        /// <remarks/>
        C48675,
        
        /// <remarks/>
        C48676,
        
        /// <remarks/>
        C48677,
        
        /// <remarks/>
        C48679,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute("Quantity", Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class QuantityType {
        
        private string valueField;
        
        private string codeListQualifierField;
        
        private string unitSourceCodeField;
        
        private string potencyUnitCodeField;
        
        /// <remarks/>
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
        
        /// <remarks/>
        public string CodeListQualifier {
            get {
                return this.codeListQualifierField;
            }
            set {
                this.codeListQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string UnitSourceCode {
            get {
                return this.unitSourceCodeField;
            }
            set {
                this.unitSourceCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PotencyUnitCode {
            get {
                return this.potencyUnitCodeField;
            }
            set {
                this.potencyUnitCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class MedicationHistoryRefillsType {
        
        private string qualifierField;
        
        private string valueField;
        
        /// <remarks/>
        public string Qualifier {
            get {
                return this.qualifierField;
            }
            set {
                this.qualifierField = value;
            }
        }
        
        /// <remarks/>
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute("DateOfBirth", Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class DateType {
        
        private System.DateTime itemField;
        
        private ItemChoiceType itemElementNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Date", typeof(System.DateTime), DataType="date")]
        [System.Xml.Serialization.XmlElementAttribute("DateTime", typeof(System.DateTime))]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")]
        public System.DateTime Item {
            get {
                return this.itemField;
            }
            set {
                this.itemField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemChoiceType ItemElementName {
            get {
                return this.itemElementNameField;
            }
            set {
                this.itemElementNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging", IncludeInSchema=false)]
    public enum ItemChoiceType {
        
        /// <remarks/>
        Date,
        
        /// <remarks/>
        DateTime,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class Diagnosis {
        
        private string clinicalInformationQualifierField;
        
        private PrimaryDiagnosisType primaryField;
        
        private DiagnosisType secondaryField;
        
        /// <remarks/>
        public string ClinicalInformationQualifier {
            get {
                return this.clinicalInformationQualifierField;
            }
            set {
                this.clinicalInformationQualifierField = value;
            }
        }
        
        /// <remarks/>
        public PrimaryDiagnosisType Primary {
            get {
                return this.primaryField;
            }
            set {
                this.primaryField = value;
            }
        }
        
        /// <remarks/>
        public DiagnosisType Secondary {
            get {
                return this.secondaryField;
            }
            set {
                this.secondaryField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class PrimaryDiagnosisType {
        
        private string qualifierField;
        
        private string valueField;
        
        /// <remarks/>
        public string Qualifier {
            get {
                return this.qualifierField;
            }
            set {
                this.qualifierField = value;
            }
        }
        
        /// <remarks/>
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class DiagnosisType {
        
        private string qualifierField;
        
        private string valueField;
        
        /// <remarks/>
        public string Qualifier {
            get {
                return this.qualifierField;
            }
            set {
                this.qualifierField = value;
            }
        }
        
        /// <remarks/>
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class PriorAuthorizationType {
        
        private string qualifierField;
        
        private string valueField;
        
        /// <remarks/>
        public string Qualifier {
            get {
                return this.qualifierField;
            }
            set {
                this.qualifierField = value;
            }
        }
        
        /// <remarks/>
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class OptionalPharmacyType {
        
        private OptionalProviderIDType identificationField;
        
        private string specialtyField;
        
        private NameType pharmacistField;
        
        private string storeNameField;
        
        private AddressType addressField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public OptionalProviderIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public string Specialty {
            get {
                return this.specialtyField;
            }
            set {
                this.specialtyField = value;
            }
        }
        
        /// <remarks/>
        public NameType Pharmacist {
            get {
                return this.pharmacistField;
            }
            set {
                this.pharmacistField = value;
            }
        }
        
        /// <remarks/>
        public string StoreName {
            get {
                return this.storeNameField;
            }
            set {
                this.storeNameField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class OptionalProviderIDType {
        
        private string[] itemsField;
        
        private ItemsChoiceType4[] itemsElementNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("BINLocationNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("Commercial", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("DEANumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("DentistLicenseNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("FacilityID", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("FileID", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("HIN", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("IndividualPolicyNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("MedicaidNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("MedicalRecordIdentificationNumberEHR", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("MedicareNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("MutuallyDefined", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("NAICCode", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("NCPDPID", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("NPI", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PPONumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PatientAccountNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PayerID", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PriorAuthorization", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("ProcessorIdentificationNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PromotionNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("SecondaryCoverage", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("SocialSecurity", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("StateLicenseNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("UPIN", typeof(string))]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public string[] Items {
            get {
                return this.itemsField;
            }
            set {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemsChoiceType4[] ItemsElementName {
            get {
                return this.itemsElementNameField;
            }
            set {
                this.itemsElementNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging", IncludeInSchema=false)]
    public enum ItemsChoiceType4 {
        
        /// <remarks/>
        BINLocationNumber,
        
        /// <remarks/>
        Commercial,
        
        /// <remarks/>
        DEANumber,
        
        /// <remarks/>
        DentistLicenseNumber,
        
        /// <remarks/>
        FacilityID,
        
        /// <remarks/>
        FileID,
        
        /// <remarks/>
        HIN,
        
        /// <remarks/>
        IndividualPolicyNumber,
        
        /// <remarks/>
        MedicaidNumber,
        
        /// <remarks/>
        MedicalRecordIdentificationNumberEHR,
        
        /// <remarks/>
        MedicareNumber,
        
        /// <remarks/>
        MutuallyDefined,
        
        /// <remarks/>
        NAICCode,
        
        /// <remarks/>
        NCPDPID,
        
        /// <remarks/>
        NPI,
        
        /// <remarks/>
        PPONumber,
        
        /// <remarks/>
        PatientAccountNumber,
        
        /// <remarks/>
        PayerID,
        
        /// <remarks/>
        PriorAuthorization,
        
        /// <remarks/>
        ProcessorIdentificationNumber,
        
        /// <remarks/>
        PromotionNumber,
        
        /// <remarks/>
        SecondaryCoverage,
        
        /// <remarks/>
        SocialSecurity,
        
        /// <remarks/>
        StateLicenseNumber,
        
        /// <remarks/>
        UPIN,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute("Pharmacist", Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class NameType {
        
        private string lastNameField;
        
        private string firstNameField;
        
        private string middleNameField;
        
        private string suffixField;
        
        private string prefixField;
        
        /// <remarks/>
        public string LastName {
            get {
                return this.lastNameField;
            }
            set {
                this.lastNameField = value;
            }
        }
        
        /// <remarks/>
        public string FirstName {
            get {
                return this.firstNameField;
            }
            set {
                this.firstNameField = value;
            }
        }
        
        /// <remarks/>
        public string MiddleName {
            get {
                return this.middleNameField;
            }
            set {
                this.middleNameField = value;
            }
        }
        
        /// <remarks/>
        public string Suffix {
            get {
                return this.suffixField;
            }
            set {
                this.suffixField = value;
            }
        }
        
        /// <remarks/>
        public string Prefix {
            get {
                return this.prefixField;
            }
            set {
                this.prefixField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute("Address", Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class AddressType {
        
        private string addressLine1Field;
        
        private string addressLine2Field;
        
        private string cityField;
        
        private string stateField;
        
        private string zipCodeField;
        
        private string placeLocationQualifierField;
        
        /// <remarks/>
        public string AddressLine1 {
            get {
                return this.addressLine1Field;
            }
            set {
                this.addressLine1Field = value;
            }
        }
        
        /// <remarks/>
        public string AddressLine2 {
            get {
                return this.addressLine2Field;
            }
            set {
                this.addressLine2Field = value;
            }
        }
        
        /// <remarks/>
        public string City {
            get {
                return this.cityField;
            }
            set {
                this.cityField = value;
            }
        }
        
        /// <remarks/>
        public string State {
            get {
                return this.stateField;
            }
            set {
                this.stateField = value;
            }
        }
        
        /// <remarks/>
        public string ZipCode {
            get {
                return this.zipCodeField;
            }
            set {
                this.zipCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PlaceLocationQualifier {
            get {
                return this.placeLocationQualifierField;
            }
            set {
                this.placeLocationQualifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class CommunicationType {
        
        private string numberField;
        
        private string qualifierField;
        
        /// <remarks/>
        public string Number {
            get {
                return this.numberField;
            }
            set {
                this.numberField = value;
            }
        }
        
        /// <remarks/>
        public string Qualifier {
            get {
                return this.qualifierField;
            }
            set {
                this.qualifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class HistoryPrescriberType {
        
        private OptionalProviderIDType identificationField;
        
        private string specialtyField;
        
        private string clinicNameField;
        
        private NameType nameField;
        
        private AddressType addressField;
        
        private NameType prescriberAgentField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public OptionalProviderIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public string Specialty {
            get {
                return this.specialtyField;
            }
            set {
                this.specialtyField = value;
            }
        }
        
        /// <remarks/>
        public string ClinicName {
            get {
                return this.clinicNameField;
            }
            set {
                this.clinicNameField = value;
            }
        }
        
        /// <remarks/>
        public NameType Name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        public NameType PrescriberAgent {
            get {
                return this.prescriberAgentField;
            }
            set {
                this.prescriberAgentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute("DrugUseEvaluation", Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class DrugUseEvaluationType {
        
        private string serviceReasonCodeField;
        
        private string professionalServiceCodeField;
        
        private string serviceResultCodeField;
        
        private CoAgentType coAgentField;
        
        private string clinicalSignificanceCodeField;
        
        private string acknowledgementReasonField;
        
        /// <remarks/>
        public string ServiceReasonCode {
            get {
                return this.serviceReasonCodeField;
            }
            set {
                this.serviceReasonCodeField = value;
            }
        }
        
        /// <remarks/>
        public string ProfessionalServiceCode {
            get {
                return this.professionalServiceCodeField;
            }
            set {
                this.professionalServiceCodeField = value;
            }
        }
        
        /// <remarks/>
        public string ServiceResultCode {
            get {
                return this.serviceResultCodeField;
            }
            set {
                this.serviceResultCodeField = value;
            }
        }
        
        /// <remarks/>
        public CoAgentType CoAgent {
            get {
                return this.coAgentField;
            }
            set {
                this.coAgentField = value;
            }
        }
        
        /// <remarks/>
        public string ClinicalSignificanceCode {
            get {
                return this.clinicalSignificanceCodeField;
            }
            set {
                this.clinicalSignificanceCodeField = value;
            }
        }
        
        /// <remarks/>
        public string AcknowledgementReason {
            get {
                return this.acknowledgementReasonField;
            }
            set {
                this.acknowledgementReasonField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class CoAgentType {
        
        private string coAgentIDField;
        
        private string coAgentQualifierField;
        
        /// <remarks/>
        public string CoAgentID {
            get {
                return this.coAgentIDField;
            }
            set {
                this.coAgentIDField = value;
            }
        }
        
        /// <remarks/>
        public string CoAgentQualifier {
            get {
                return this.coAgentQualifierField;
            }
            set {
                this.coAgentQualifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute("StructuredSIG", Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class SIGType {
        
        private SIGTypeRepeatingSIG repeatingSIGField;
        
        private SIGTypeCodeSystem codeSystemField;
        
        private SIGTypeFreeText freeTextField;
        
        private SIGTypeDose doseField;
        
        private SIGTypeDoseCalculation doseCalculationField;
        
        private SIGTypeVehicle vehicleField;
        
        private RouteofAdministration routeofAdministrationField;
        
        private SIGTypeSiteofAdministration siteofAdministrationField;
        
        private SIGTypeTiming timingField;
        
        private SIGTypeDuration durationField;
        
        private SIGTypeMaximumDoseRestriction maximumDoseRestrictionField;
        
        private SIGTypeIndication indicationField;
        
        private SIGTypeStop stopField;
        
        /// <remarks/>
        public SIGTypeRepeatingSIG RepeatingSIG {
            get {
                return this.repeatingSIGField;
            }
            set {
                this.repeatingSIGField = value;
            }
        }
        
        /// <remarks/>
        public SIGTypeCodeSystem CodeSystem {
            get {
                return this.codeSystemField;
            }
            set {
                this.codeSystemField = value;
            }
        }
        
        /// <remarks/>
        public SIGTypeFreeText FreeText {
            get {
                return this.freeTextField;
            }
            set {
                this.freeTextField = value;
            }
        }
        
        /// <remarks/>
        public SIGTypeDose Dose {
            get {
                return this.doseField;
            }
            set {
                this.doseField = value;
            }
        }
        
        /// <remarks/>
        public SIGTypeDoseCalculation DoseCalculation {
            get {
                return this.doseCalculationField;
            }
            set {
                this.doseCalculationField = value;
            }
        }
        
        /// <remarks/>
        public SIGTypeVehicle Vehicle {
            get {
                return this.vehicleField;
            }
            set {
                this.vehicleField = value;
            }
        }
        
        /// <remarks/>
        public RouteofAdministration RouteofAdministration {
            get {
                return this.routeofAdministrationField;
            }
            set {
                this.routeofAdministrationField = value;
            }
        }
        
        /// <remarks/>
        public SIGTypeSiteofAdministration SiteofAdministration {
            get {
                return this.siteofAdministrationField;
            }
            set {
                this.siteofAdministrationField = value;
            }
        }
        
        /// <remarks/>
        public SIGTypeTiming Timing {
            get {
                return this.timingField;
            }
            set {
                this.timingField = value;
            }
        }
        
        /// <remarks/>
        public SIGTypeDuration Duration {
            get {
                return this.durationField;
            }
            set {
                this.durationField = value;
            }
        }
        
        /// <remarks/>
        public SIGTypeMaximumDoseRestriction MaximumDoseRestriction {
            get {
                return this.maximumDoseRestrictionField;
            }
            set {
                this.maximumDoseRestrictionField = value;
            }
        }
        
        /// <remarks/>
        public SIGTypeIndication Indication {
            get {
                return this.indicationField;
            }
            set {
                this.indicationField = value;
            }
        }
        
        /// <remarks/>
        public SIGTypeStop Stop {
            get {
                return this.stopField;
            }
            set {
                this.stopField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class SIGTypeRepeatingSIG {
        
        private string sigSequencePositionNumberField;
        
        private string multipleSigModifierField;
        
        /// <remarks/>
        public string SigSequencePositionNumber {
            get {
                return this.sigSequencePositionNumberField;
            }
            set {
                this.sigSequencePositionNumberField = value;
            }
        }
        
        /// <remarks/>
        public string MultipleSigModifier {
            get {
                return this.multipleSigModifierField;
            }
            set {
                this.multipleSigModifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class SIGTypeCodeSystem {
        
        private string[] itemsField;
        
        private ItemsChoiceType2[] itemsElementNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("FMTVersion", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("SNOMEDVersion", typeof(string))]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public string[] Items {
            get {
                return this.itemsField;
            }
            set {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemsChoiceType2[] ItemsElementName {
            get {
                return this.itemsElementNameField;
            }
            set {
                this.itemsElementNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging", IncludeInSchema=false)]
    public enum ItemsChoiceType2 {
        
        /// <remarks/>
        FMTVersion,
        
        /// <remarks/>
        SNOMEDVersion,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class SIGTypeFreeText {
        
        private string sigFreeTextStringIndicatorField;
        
        private string sigFreeTextField;
        
        /// <remarks/>
        public string SigFreeTextStringIndicator {
            get {
                return this.sigFreeTextStringIndicatorField;
            }
            set {
                this.sigFreeTextStringIndicatorField = value;
            }
        }
        
        /// <remarks/>
        public string SigFreeText {
            get {
                return this.sigFreeTextField;
            }
            set {
                this.sigFreeTextField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class SIGTypeDose {
        
        private string doseCompositeIndicatorField;
        
        private string doseDeliveryMethodTextField;
        
        private string doseDeliveryMethodCodeQualifierField;
        
        private string doseDeliveryMethodCodeField;
        
        private string doseDeliveryMethodModifierTextField;
        
        private string doseDeliveryMethodModifierCodeQualifierField;
        
        private string doseDeliveryMethodModifierCodeField;
        
        private string doseQuantityField;
        
        private string doseFormTextField;
        
        private string doseFormCodeQualifierField;
        
        private string doseFormCodeField;
        
        private string doseRangeModifierField;
        
        /// <remarks/>
        public string DoseCompositeIndicator {
            get {
                return this.doseCompositeIndicatorField;
            }
            set {
                this.doseCompositeIndicatorField = value;
            }
        }
        
        /// <remarks/>
        public string DoseDeliveryMethodText {
            get {
                return this.doseDeliveryMethodTextField;
            }
            set {
                this.doseDeliveryMethodTextField = value;
            }
        }
        
        /// <remarks/>
        public string DoseDeliveryMethodCodeQualifier {
            get {
                return this.doseDeliveryMethodCodeQualifierField;
            }
            set {
                this.doseDeliveryMethodCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string DoseDeliveryMethodCode {
            get {
                return this.doseDeliveryMethodCodeField;
            }
            set {
                this.doseDeliveryMethodCodeField = value;
            }
        }
        
        /// <remarks/>
        public string DoseDeliveryMethodModifierText {
            get {
                return this.doseDeliveryMethodModifierTextField;
            }
            set {
                this.doseDeliveryMethodModifierTextField = value;
            }
        }
        
        /// <remarks/>
        public string DoseDeliveryMethodModifierCodeQualifier {
            get {
                return this.doseDeliveryMethodModifierCodeQualifierField;
            }
            set {
                this.doseDeliveryMethodModifierCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string DoseDeliveryMethodModifierCode {
            get {
                return this.doseDeliveryMethodModifierCodeField;
            }
            set {
                this.doseDeliveryMethodModifierCodeField = value;
            }
        }
        
        /// <remarks/>
        public string DoseQuantity {
            get {
                return this.doseQuantityField;
            }
            set {
                this.doseQuantityField = value;
            }
        }
        
        /// <remarks/>
        public string DoseFormText {
            get {
                return this.doseFormTextField;
            }
            set {
                this.doseFormTextField = value;
            }
        }
        
        /// <remarks/>
        public string DoseFormCodeQualifier {
            get {
                return this.doseFormCodeQualifierField;
            }
            set {
                this.doseFormCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string DoseFormCode {
            get {
                return this.doseFormCodeField;
            }
            set {
                this.doseFormCodeField = value;
            }
        }
        
        /// <remarks/>
        public string DoseRangeModifier {
            get {
                return this.doseRangeModifierField;
            }
            set {
                this.doseRangeModifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class SIGTypeDoseCalculation {
        
        private string dosingBasisNumericValueField;
        
        private string dosingBasisUnitofMeasureTextField;
        
        private string dosingBasisUnitofMeasureCodeQualifierField;
        
        private string dosingBasisUnitofMeasureCodeField;
        
        private string bodyMetricQualifierField;
        
        private string bodyMetricValueField;
        
        private string calculatedDoseNumericField;
        
        private string calculatedDoseUnitofMeasureTextField;
        
        private string calculatedDoseUnitofMeasureCodeQualifierField;
        
        private string calculatedDoseUnitofMeasureCodeField;
        
        private string dosingBasisRangeModifierField;
        
        /// <remarks/>
        public string DosingBasisNumericValue {
            get {
                return this.dosingBasisNumericValueField;
            }
            set {
                this.dosingBasisNumericValueField = value;
            }
        }
        
        /// <remarks/>
        public string DosingBasisUnitofMeasureText {
            get {
                return this.dosingBasisUnitofMeasureTextField;
            }
            set {
                this.dosingBasisUnitofMeasureTextField = value;
            }
        }
        
        /// <remarks/>
        public string DosingBasisUnitofMeasureCodeQualifier {
            get {
                return this.dosingBasisUnitofMeasureCodeQualifierField;
            }
            set {
                this.dosingBasisUnitofMeasureCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string DosingBasisUnitofMeasureCode {
            get {
                return this.dosingBasisUnitofMeasureCodeField;
            }
            set {
                this.dosingBasisUnitofMeasureCodeField = value;
            }
        }
        
        /// <remarks/>
        public string BodyMetricQualifier {
            get {
                return this.bodyMetricQualifierField;
            }
            set {
                this.bodyMetricQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string BodyMetricValue {
            get {
                return this.bodyMetricValueField;
            }
            set {
                this.bodyMetricValueField = value;
            }
        }
        
        /// <remarks/>
        public string CalculatedDoseNumeric {
            get {
                return this.calculatedDoseNumericField;
            }
            set {
                this.calculatedDoseNumericField = value;
            }
        }
        
        /// <remarks/>
        public string CalculatedDoseUnitofMeasureText {
            get {
                return this.calculatedDoseUnitofMeasureTextField;
            }
            set {
                this.calculatedDoseUnitofMeasureTextField = value;
            }
        }
        
        /// <remarks/>
        public string CalculatedDoseUnitofMeasureCodeQualifier {
            get {
                return this.calculatedDoseUnitofMeasureCodeQualifierField;
            }
            set {
                this.calculatedDoseUnitofMeasureCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string CalculatedDoseUnitofMeasureCode {
            get {
                return this.calculatedDoseUnitofMeasureCodeField;
            }
            set {
                this.calculatedDoseUnitofMeasureCodeField = value;
            }
        }
        
        /// <remarks/>
        public string DosingBasisRangeModifier {
            get {
                return this.dosingBasisRangeModifierField;
            }
            set {
                this.dosingBasisRangeModifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class SIGTypeVehicle {
        
        private string vehicleNameField;
        
        private string vehicleNameCodeQualifierField;
        
        private string vehicleNameCodeField;
        
        private string vehicleQuantityField;
        
        private string vehicleUnitOfMeasureTextField;
        
        private string vehicleUnitOfMeasureCodeQualifierField;
        
        private string vehicleUnitOfMeasureCodeField;
        
        private string multipleVehicleModifierField;
        
        /// <remarks/>
        public string VehicleName {
            get {
                return this.vehicleNameField;
            }
            set {
                this.vehicleNameField = value;
            }
        }
        
        /// <remarks/>
        public string VehicleNameCodeQualifier {
            get {
                return this.vehicleNameCodeQualifierField;
            }
            set {
                this.vehicleNameCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string VehicleNameCode {
            get {
                return this.vehicleNameCodeField;
            }
            set {
                this.vehicleNameCodeField = value;
            }
        }
        
        /// <remarks/>
        public string VehicleQuantity {
            get {
                return this.vehicleQuantityField;
            }
            set {
                this.vehicleQuantityField = value;
            }
        }
        
        /// <remarks/>
        public string VehicleUnitOfMeasureText {
            get {
                return this.vehicleUnitOfMeasureTextField;
            }
            set {
                this.vehicleUnitOfMeasureTextField = value;
            }
        }
        
        /// <remarks/>
        public string VehicleUnitOfMeasureCodeQualifier {
            get {
                return this.vehicleUnitOfMeasureCodeQualifierField;
            }
            set {
                this.vehicleUnitOfMeasureCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string VehicleUnitOfMeasureCode {
            get {
                return this.vehicleUnitOfMeasureCodeField;
            }
            set {
                this.vehicleUnitOfMeasureCodeField = value;
            }
        }
        
        /// <remarks/>
        public string MultipleVehicleModifier {
            get {
                return this.multipleVehicleModifierField;
            }
            set {
                this.multipleVehicleModifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class RouteofAdministration {
        
        private string routeofAdministrationTextField;
        
        private string routeofAdministrationCodeQualifierField;
        
        private string routeofAdministrationCodeField;
        
        private string multipleRouteofAdministrationModifierField;
        
        /// <remarks/>
        public string RouteofAdministrationText {
            get {
                return this.routeofAdministrationTextField;
            }
            set {
                this.routeofAdministrationTextField = value;
            }
        }
        
        /// <remarks/>
        public string RouteofAdministrationCodeQualifier {
            get {
                return this.routeofAdministrationCodeQualifierField;
            }
            set {
                this.routeofAdministrationCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string RouteofAdministrationCode {
            get {
                return this.routeofAdministrationCodeField;
            }
            set {
                this.routeofAdministrationCodeField = value;
            }
        }
        
        /// <remarks/>
        public string MultipleRouteofAdministrationModifier {
            get {
                return this.multipleRouteofAdministrationModifierField;
            }
            set {
                this.multipleRouteofAdministrationModifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class SIGTypeSiteofAdministration {
        
        private string siteofAdministrationTextField;
        
        private string siteofAdministrationCodeQualifierField;
        
        private string siteofAdministrationCodeField;
        
        private string multipleAdministrationTimingModifierField;
        
        /// <remarks/>
        public string SiteofAdministrationText {
            get {
                return this.siteofAdministrationTextField;
            }
            set {
                this.siteofAdministrationTextField = value;
            }
        }
        
        /// <remarks/>
        public string SiteofAdministrationCodeQualifier {
            get {
                return this.siteofAdministrationCodeQualifierField;
            }
            set {
                this.siteofAdministrationCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string SiteofAdministrationCode {
            get {
                return this.siteofAdministrationCodeField;
            }
            set {
                this.siteofAdministrationCodeField = value;
            }
        }
        
        /// <remarks/>
        public string MultipleAdministrationTimingModifier {
            get {
                return this.multipleAdministrationTimingModifierField;
            }
            set {
                this.multipleAdministrationTimingModifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class SIGTypeTiming {
        
        private string administrationTimingTextField;
        
        private string administrationTimingCodeQualifierField;
        
        private string administrationTimingCodeField;
        
        private string multipleAdministrationTimingModifierField;
        
        private string rateofAdministrationField;
        
        private string rateUnitofMeasureTextField;
        
        private string rateUnitofMeasureCodeQualifierField;
        
        private string rateUnitofMeasureCodeField;
        
        private string timePeriodBasisTextField;
        
        private string timePeriodBasisCodeQualifierField;
        
        private string timePeriodBasisCodeField;
        
        private string frequencyNumericValueField;
        
        private string frequencyUnitsTextField;
        
        private string frequencyUnitsCodeQualifierField;
        
        private string frequencyUnitsCodeField;
        
        private string variableFrequencyModifierField;
        
        private string intervalNumericValueField;
        
        private string intervalUnitsTextField;
        
        private string intervalUnitsCodeQualifierField;
        
        private string intervalUnitsCodeField;
        
        private string variableIntervalModifierField;
        
        /// <remarks/>
        public string AdministrationTimingText {
            get {
                return this.administrationTimingTextField;
            }
            set {
                this.administrationTimingTextField = value;
            }
        }
        
        /// <remarks/>
        public string AdministrationTimingCodeQualifier {
            get {
                return this.administrationTimingCodeQualifierField;
            }
            set {
                this.administrationTimingCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string AdministrationTimingCode {
            get {
                return this.administrationTimingCodeField;
            }
            set {
                this.administrationTimingCodeField = value;
            }
        }
        
        /// <remarks/>
        public string MultipleAdministrationTimingModifier {
            get {
                return this.multipleAdministrationTimingModifierField;
            }
            set {
                this.multipleAdministrationTimingModifierField = value;
            }
        }
        
        /// <remarks/>
        public string RateofAdministration {
            get {
                return this.rateofAdministrationField;
            }
            set {
                this.rateofAdministrationField = value;
            }
        }
        
        /// <remarks/>
        public string RateUnitofMeasureText {
            get {
                return this.rateUnitofMeasureTextField;
            }
            set {
                this.rateUnitofMeasureTextField = value;
            }
        }
        
        /// <remarks/>
        public string RateUnitofMeasureCodeQualifier {
            get {
                return this.rateUnitofMeasureCodeQualifierField;
            }
            set {
                this.rateUnitofMeasureCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string RateUnitofMeasureCode {
            get {
                return this.rateUnitofMeasureCodeField;
            }
            set {
                this.rateUnitofMeasureCodeField = value;
            }
        }
        
        /// <remarks/>
        public string TimePeriodBasisText {
            get {
                return this.timePeriodBasisTextField;
            }
            set {
                this.timePeriodBasisTextField = value;
            }
        }
        
        /// <remarks/>
        public string TimePeriodBasisCodeQualifier {
            get {
                return this.timePeriodBasisCodeQualifierField;
            }
            set {
                this.timePeriodBasisCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string TimePeriodBasisCode {
            get {
                return this.timePeriodBasisCodeField;
            }
            set {
                this.timePeriodBasisCodeField = value;
            }
        }
        
        /// <remarks/>
        public string FrequencyNumericValue {
            get {
                return this.frequencyNumericValueField;
            }
            set {
                this.frequencyNumericValueField = value;
            }
        }
        
        /// <remarks/>
        public string FrequencyUnitsText {
            get {
                return this.frequencyUnitsTextField;
            }
            set {
                this.frequencyUnitsTextField = value;
            }
        }
        
        /// <remarks/>
        public string FrequencyUnitsCodeQualifier {
            get {
                return this.frequencyUnitsCodeQualifierField;
            }
            set {
                this.frequencyUnitsCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string FrequencyUnitsCode {
            get {
                return this.frequencyUnitsCodeField;
            }
            set {
                this.frequencyUnitsCodeField = value;
            }
        }
        
        /// <remarks/>
        public string VariableFrequencyModifier {
            get {
                return this.variableFrequencyModifierField;
            }
            set {
                this.variableFrequencyModifierField = value;
            }
        }
        
        /// <remarks/>
        public string IntervalNumericValue {
            get {
                return this.intervalNumericValueField;
            }
            set {
                this.intervalNumericValueField = value;
            }
        }
        
        /// <remarks/>
        public string IntervalUnitsText {
            get {
                return this.intervalUnitsTextField;
            }
            set {
                this.intervalUnitsTextField = value;
            }
        }
        
        /// <remarks/>
        public string IntervalUnitsCodeQualifier {
            get {
                return this.intervalUnitsCodeQualifierField;
            }
            set {
                this.intervalUnitsCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string IntervalUnitsCode {
            get {
                return this.intervalUnitsCodeField;
            }
            set {
                this.intervalUnitsCodeField = value;
            }
        }
        
        /// <remarks/>
        public string VariableIntervalModifier {
            get {
                return this.variableIntervalModifierField;
            }
            set {
                this.variableIntervalModifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class SIGTypeDuration {
        
        private string durationNumericValueField;
        
        private string durationTextField;
        
        private string durationTextCodeQualifierField;
        
        private string durationTextCodeField;
        
        /// <remarks/>
        public string DurationNumericValue {
            get {
                return this.durationNumericValueField;
            }
            set {
                this.durationNumericValueField = value;
            }
        }
        
        /// <remarks/>
        public string DurationText {
            get {
                return this.durationTextField;
            }
            set {
                this.durationTextField = value;
            }
        }
        
        /// <remarks/>
        public string DurationTextCodeQualifier {
            get {
                return this.durationTextCodeQualifierField;
            }
            set {
                this.durationTextCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string DurationTextCode {
            get {
                return this.durationTextCodeField;
            }
            set {
                this.durationTextCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class SIGTypeMaximumDoseRestriction {
        
        private string maximumDoseRestrictionNumericValueField;
        
        private string maximumDoseRestrictionUnitsTextField;
        
        private string maximumDoseRestrictionCodeQualifierField;
        
        private string maximumDoseRestrictionUnitsCodeField;
        
        private string maximumDoseRestrictionVariableNumericValueField;
        
        private string maximumDoseRestrictionVariableUnitsTextField;
        
        private string maximumDoseRestrictionVariableUnitsCodeQualifierField;
        
        private string maximumDoseRestrictionVariableUnitsCodeField;
        
        private string maximumDoseRestrictionVariableDurationModifierField;
        
        /// <remarks/>
        public string MaximumDoseRestrictionNumericValue {
            get {
                return this.maximumDoseRestrictionNumericValueField;
            }
            set {
                this.maximumDoseRestrictionNumericValueField = value;
            }
        }
        
        /// <remarks/>
        public string MaximumDoseRestrictionUnitsText {
            get {
                return this.maximumDoseRestrictionUnitsTextField;
            }
            set {
                this.maximumDoseRestrictionUnitsTextField = value;
            }
        }
        
        /// <remarks/>
        public string MaximumDoseRestrictionCodeQualifier {
            get {
                return this.maximumDoseRestrictionCodeQualifierField;
            }
            set {
                this.maximumDoseRestrictionCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string MaximumDoseRestrictionUnitsCode {
            get {
                return this.maximumDoseRestrictionUnitsCodeField;
            }
            set {
                this.maximumDoseRestrictionUnitsCodeField = value;
            }
        }
        
        /// <remarks/>
        public string MaximumDoseRestrictionVariableNumericValue {
            get {
                return this.maximumDoseRestrictionVariableNumericValueField;
            }
            set {
                this.maximumDoseRestrictionVariableNumericValueField = value;
            }
        }
        
        /// <remarks/>
        public string MaximumDoseRestrictionVariableUnitsText {
            get {
                return this.maximumDoseRestrictionVariableUnitsTextField;
            }
            set {
                this.maximumDoseRestrictionVariableUnitsTextField = value;
            }
        }
        
        /// <remarks/>
        public string MaximumDoseRestrictionVariableUnitsCodeQualifier {
            get {
                return this.maximumDoseRestrictionVariableUnitsCodeQualifierField;
            }
            set {
                this.maximumDoseRestrictionVariableUnitsCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string MaximumDoseRestrictionVariableUnitsCode {
            get {
                return this.maximumDoseRestrictionVariableUnitsCodeField;
            }
            set {
                this.maximumDoseRestrictionVariableUnitsCodeField = value;
            }
        }
        
        /// <remarks/>
        public string MaximumDoseRestrictionVariableDurationModifier {
            get {
                return this.maximumDoseRestrictionVariableDurationModifierField;
            }
            set {
                this.maximumDoseRestrictionVariableDurationModifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class SIGTypeIndication {
        
        private string indicationPrecursorTextField;
        
        private string indicationPrecursorCodeQualifierField;
        
        private string indicationPrecursorCodeField;
        
        private string indicationTextField;
        
        private string indicationTextCodeQualifierField;
        
        private string indicationTextCodeField;
        
        private string indicationValueTextField;
        
        private string indicationValueUnitField;
        
        private string indicationValueUnitofMeasureTextField;
        
        private string indicationValueUnitofMeasureCodeQualifierField;
        
        private string indicationValueUnitofMeasureCodeField;
        
        private string indicationVariableModifierField;
        
        /// <remarks/>
        public string IndicationPrecursorText {
            get {
                return this.indicationPrecursorTextField;
            }
            set {
                this.indicationPrecursorTextField = value;
            }
        }
        
        /// <remarks/>
        public string IndicationPrecursorCodeQualifier {
            get {
                return this.indicationPrecursorCodeQualifierField;
            }
            set {
                this.indicationPrecursorCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string IndicationPrecursorCode {
            get {
                return this.indicationPrecursorCodeField;
            }
            set {
                this.indicationPrecursorCodeField = value;
            }
        }
        
        /// <remarks/>
        public string IndicationText {
            get {
                return this.indicationTextField;
            }
            set {
                this.indicationTextField = value;
            }
        }
        
        /// <remarks/>
        public string IndicationTextCodeQualifier {
            get {
                return this.indicationTextCodeQualifierField;
            }
            set {
                this.indicationTextCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string IndicationTextCode {
            get {
                return this.indicationTextCodeField;
            }
            set {
                this.indicationTextCodeField = value;
            }
        }
        
        /// <remarks/>
        public string IndicationValueText {
            get {
                return this.indicationValueTextField;
            }
            set {
                this.indicationValueTextField = value;
            }
        }
        
        /// <remarks/>
        public string IndicationValueUnit {
            get {
                return this.indicationValueUnitField;
            }
            set {
                this.indicationValueUnitField = value;
            }
        }
        
        /// <remarks/>
        public string IndicationValueUnitofMeasureText {
            get {
                return this.indicationValueUnitofMeasureTextField;
            }
            set {
                this.indicationValueUnitofMeasureTextField = value;
            }
        }
        
        /// <remarks/>
        public string IndicationValueUnitofMeasureCodeQualifier {
            get {
                return this.indicationValueUnitofMeasureCodeQualifierField;
            }
            set {
                this.indicationValueUnitofMeasureCodeQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string IndicationValueUnitofMeasureCode {
            get {
                return this.indicationValueUnitofMeasureCodeField;
            }
            set {
                this.indicationValueUnitofMeasureCodeField = value;
            }
        }
        
        /// <remarks/>
        public string IndicationVariableModifier {
            get {
                return this.indicationVariableModifierField;
            }
            set {
                this.indicationVariableModifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class SIGTypeStop {
        
        private string stopIndicatorField;
        
        /// <remarks/>
        public string StopIndicator {
            get {
                return this.stopIndicatorField;
            }
            set {
                this.stopIndicatorField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class HistorySourceType {
        
        private HistorySourceTypeSource sourceField;
        
        private string sourceReferenceField;
        
        private string fillNumberField;
        
        /// <remarks/>
        public HistorySourceTypeSource Source {
            get {
                return this.sourceField;
            }
            set {
                this.sourceField = value;
            }
        }
        
        /// <remarks/>
        public string SourceReference {
            get {
                return this.sourceReferenceField;
            }
            set {
                this.sourceReferenceField = value;
            }
        }
        
        /// <remarks/>
        public string FillNumber {
            get {
                return this.fillNumberField;
            }
            set {
                this.fillNumberField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class HistorySourceTypeSource {
        
        private string sourceQualiferField;
        
        private string sourceDescriptionField;
        
        private IDOptionalType referenceField;
        
        /// <remarks/>
        public string SourceQualifer {
            get {
                return this.sourceQualiferField;
            }
            set {
                this.sourceQualiferField = value;
            }
        }
        
        /// <remarks/>
        public string SourceDescription {
            get {
                return this.sourceDescriptionField;
            }
            set {
                this.sourceDescriptionField = value;
            }
        }
        
        /// <remarks/>
        public IDOptionalType Reference {
            get {
                return this.referenceField;
            }
            set {
                this.referenceField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class IDOptionalType {
        
        private string iDValueField;
        
        private string iDQualifierField;
        
        /// <remarks/>
        public string IDValue {
            get {
                return this.iDValueField;
            }
            set {
                this.iDValueField = value;
            }
        }
        
        /// <remarks/>
        public string IDQualifier {
            get {
                return this.iDQualifierField;
            }
            set {
                this.iDQualifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class HistoryDispensedMedicationType {
        
        private string drugDescriptionField;
        
        private DrugCodedType drugCodedField;
        
        private QuantityType quantityField;
        
        private string daysSupplyField;
        
        private string directionsField;
        
        private string noteField;
        
        private MedicationHistoryRefillsType refillsField;
        
        private string substitutionsField;
        
        private DateType writtenDateField;
        
        private DateType lastFillDateField;
        
        private DateType expirationDateField;
        
        private DateType effectiveDateField;
        
        private DateType periodEndField;
        
        private DateType deliveredOnDateField;
        
        private DateType dateValidatedField;
        
        private DateType soldDateField;
        
        private Diagnosis[] diagnosisField;
        
        private PriorAuthorizationType priorAuthorizationField;
        
        private OptionalPharmacyType pharmacyField;
        
        private HistoryPrescriberType prescriberField;
        
        private DrugUseEvaluationType[] drugUseEvaluationField;
        
        private string[] drugCoverageStatusCodeField;
        
        private string priorAuthorizationStatusField;
        
        private SIGType[] structuredSIGField;
        
        private HistorySourceType historySourceField;
        
        /// <remarks/>
        public string DrugDescription {
            get {
                return this.drugDescriptionField;
            }
            set {
                this.drugDescriptionField = value;
            }
        }
        
        /// <remarks/>
        public DrugCodedType DrugCoded {
            get {
                return this.drugCodedField;
            }
            set {
                this.drugCodedField = value;
            }
        }
        
        /// <remarks/>
        public QuantityType Quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        public string DaysSupply {
            get {
                return this.daysSupplyField;
            }
            set {
                this.daysSupplyField = value;
            }
        }
        
        /// <remarks/>
        public string Directions {
            get {
                return this.directionsField;
            }
            set {
                this.directionsField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
        
        /// <remarks/>
        public MedicationHistoryRefillsType Refills {
            get {
                return this.refillsField;
            }
            set {
                this.refillsField = value;
            }
        }
        
        /// <remarks/>
        public string Substitutions {
            get {
                return this.substitutionsField;
            }
            set {
                this.substitutionsField = value;
            }
        }
        
        /// <remarks/>
        public DateType WrittenDate {
            get {
                return this.writtenDateField;
            }
            set {
                this.writtenDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType LastFillDate {
            get {
                return this.lastFillDateField;
            }
            set {
                this.lastFillDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType ExpirationDate {
            get {
                return this.expirationDateField;
            }
            set {
                this.expirationDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType EffectiveDate {
            get {
                return this.effectiveDateField;
            }
            set {
                this.effectiveDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType PeriodEnd {
            get {
                return this.periodEndField;
            }
            set {
                this.periodEndField = value;
            }
        }
        
        /// <remarks/>
        public DateType DeliveredOnDate {
            get {
                return this.deliveredOnDateField;
            }
            set {
                this.deliveredOnDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateValidated {
            get {
                return this.dateValidatedField;
            }
            set {
                this.dateValidatedField = value;
            }
        }
        
        /// <remarks/>
        public DateType SoldDate {
            get {
                return this.soldDateField;
            }
            set {
                this.soldDateField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Diagnosis")]
        public Diagnosis[] Diagnosis {
            get {
                return this.diagnosisField;
            }
            set {
                this.diagnosisField = value;
            }
        }
        
        /// <remarks/>
        public PriorAuthorizationType PriorAuthorization {
            get {
                return this.priorAuthorizationField;
            }
            set {
                this.priorAuthorizationField = value;
            }
        }
        
        /// <remarks/>
        public OptionalPharmacyType Pharmacy {
            get {
                return this.pharmacyField;
            }
            set {
                this.pharmacyField = value;
            }
        }
        
        /// <remarks/>
        public HistoryPrescriberType Prescriber {
            get {
                return this.prescriberField;
            }
            set {
                this.prescriberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugUseEvaluation")]
        public DrugUseEvaluationType[] DrugUseEvaluation {
            get {
                return this.drugUseEvaluationField;
            }
            set {
                this.drugUseEvaluationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugCoverageStatusCode")]
        public string[] DrugCoverageStatusCode {
            get {
                return this.drugCoverageStatusCodeField;
            }
            set {
                this.drugCoverageStatusCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PriorAuthorizationStatus {
            get {
                return this.priorAuthorizationStatusField;
            }
            set {
                this.priorAuthorizationStatusField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("StructuredSIG")]
        public SIGType[] StructuredSIG {
            get {
                return this.structuredSIGField;
            }
            set {
                this.structuredSIGField = value;
            }
        }
        
        /// <remarks/>
        public HistorySourceType HistorySource {
            get {
                return this.historySourceField;
            }
            set {
                this.historySourceField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class OptionalDateMedicationType {
        
        private string drugDescriptionField;
        
        private DrugCodedType drugCodedField;
        
        private QuantityType quantityField;
        
        private string daysSupplyField;
        
        private string directionsField;
        
        private string noteField;
        
        private RefillsType refillsField;
        
        private string substitutionsField;
        
        private DateType writtenDateField;
        
        private DateType lastFillDateField;
        
        private DateType expirationDateField;
        
        private DateType effectiveDateField;
        
        private DateType periodEndField;
        
        private DateType deliveredOnDateField;
        
        private DateType dateValidatedField;
        
        private Diagnosis[] diagnosisField;
        
        private PriorAuthorizationType priorAuthorizationField;
        
        private DrugUseEvaluationType[] drugUseEvaluationField;
        
        private string[] drugCoverageStatusCodeField;
        
        private string priorAuthorizationStatusField;
        
        private SIGType[] structuredSIGField;
        
        /// <remarks/>
        public string DrugDescription {
            get {
                return this.drugDescriptionField;
            }
            set {
                this.drugDescriptionField = value;
            }
        }
        
        /// <remarks/>
        public DrugCodedType DrugCoded {
            get {
                return this.drugCodedField;
            }
            set {
                this.drugCodedField = value;
            }
        }
        
        /// <remarks/>
        public QuantityType Quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        public string DaysSupply {
            get {
                return this.daysSupplyField;
            }
            set {
                this.daysSupplyField = value;
            }
        }
        
        /// <remarks/>
        public string Directions {
            get {
                return this.directionsField;
            }
            set {
                this.directionsField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
        
        /// <remarks/>
        public RefillsType Refills {
            get {
                return this.refillsField;
            }
            set {
                this.refillsField = value;
            }
        }
        
        /// <remarks/>
        public string Substitutions {
            get {
                return this.substitutionsField;
            }
            set {
                this.substitutionsField = value;
            }
        }
        
        /// <remarks/>
        public DateType WrittenDate {
            get {
                return this.writtenDateField;
            }
            set {
                this.writtenDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType LastFillDate {
            get {
                return this.lastFillDateField;
            }
            set {
                this.lastFillDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType ExpirationDate {
            get {
                return this.expirationDateField;
            }
            set {
                this.expirationDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType EffectiveDate {
            get {
                return this.effectiveDateField;
            }
            set {
                this.effectiveDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType PeriodEnd {
            get {
                return this.periodEndField;
            }
            set {
                this.periodEndField = value;
            }
        }
        
        /// <remarks/>
        public DateType DeliveredOnDate {
            get {
                return this.deliveredOnDateField;
            }
            set {
                this.deliveredOnDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateValidated {
            get {
                return this.dateValidatedField;
            }
            set {
                this.dateValidatedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Diagnosis")]
        public Diagnosis[] Diagnosis {
            get {
                return this.diagnosisField;
            }
            set {
                this.diagnosisField = value;
            }
        }
        
        /// <remarks/>
        public PriorAuthorizationType PriorAuthorization {
            get {
                return this.priorAuthorizationField;
            }
            set {
                this.priorAuthorizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugUseEvaluation")]
        public DrugUseEvaluationType[] DrugUseEvaluation {
            get {
                return this.drugUseEvaluationField;
            }
            set {
                this.drugUseEvaluationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugCoverageStatusCode")]
        public string[] DrugCoverageStatusCode {
            get {
                return this.drugCoverageStatusCodeField;
            }
            set {
                this.drugCoverageStatusCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PriorAuthorizationStatus {
            get {
                return this.priorAuthorizationStatusField;
            }
            set {
                this.priorAuthorizationStatusField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("StructuredSIG")]
        public SIGType[] StructuredSIG {
            get {
                return this.structuredSIGField;
            }
            set {
                this.structuredSIGField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute("Refills", Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class RefillsType {
        
        private string qualifierField;
        
        private string valueField;
        
        /// <remarks/>
        public string Qualifier {
            get {
                return this.qualifierField;
            }
            set {
                this.qualifierField = value;
            }
        }
        
        /// <remarks/>
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class DispensedMedicationType {
        
        private string drugDescriptionField;
        
        private DrugCodedType drugCodedField;
        
        private QuantityType quantityField;
        
        private string daysSupplyField;
        
        private string directionsField;
        
        private string noteField;
        
        private RefillsType refillsField;
        
        private string substitutionsField;
        
        private DateType writtenDateField;
        
        private DateType lastFillDateField;
        
        private DateType expirationDateField;
        
        private DateType effectiveDateField;
        
        private DateType periodEndField;
        
        private DateType deliveredOnDateField;
        
        private DateType dateValidatedField;
        
        private Diagnosis[] diagnosisField;
        
        private PriorAuthorizationType priorAuthorizationField;
        
        private DrugUseEvaluationType[] drugUseEvaluationField;
        
        private string[] drugCoverageStatusCodeField;
        
        private string priorAuthorizationStatusField;
        
        private SIGType[] structuredSIGField;
        
        /// <remarks/>
        public string DrugDescription {
            get {
                return this.drugDescriptionField;
            }
            set {
                this.drugDescriptionField = value;
            }
        }
        
        /// <remarks/>
        public DrugCodedType DrugCoded {
            get {
                return this.drugCodedField;
            }
            set {
                this.drugCodedField = value;
            }
        }
        
        /// <remarks/>
        public QuantityType Quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        public string DaysSupply {
            get {
                return this.daysSupplyField;
            }
            set {
                this.daysSupplyField = value;
            }
        }
        
        /// <remarks/>
        public string Directions {
            get {
                return this.directionsField;
            }
            set {
                this.directionsField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
        
        /// <remarks/>
        public RefillsType Refills {
            get {
                return this.refillsField;
            }
            set {
                this.refillsField = value;
            }
        }
        
        /// <remarks/>
        public string Substitutions {
            get {
                return this.substitutionsField;
            }
            set {
                this.substitutionsField = value;
            }
        }
        
        /// <remarks/>
        public DateType WrittenDate {
            get {
                return this.writtenDateField;
            }
            set {
                this.writtenDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType LastFillDate {
            get {
                return this.lastFillDateField;
            }
            set {
                this.lastFillDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType ExpirationDate {
            get {
                return this.expirationDateField;
            }
            set {
                this.expirationDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType EffectiveDate {
            get {
                return this.effectiveDateField;
            }
            set {
                this.effectiveDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType PeriodEnd {
            get {
                return this.periodEndField;
            }
            set {
                this.periodEndField = value;
            }
        }
        
        /// <remarks/>
        public DateType DeliveredOnDate {
            get {
                return this.deliveredOnDateField;
            }
            set {
                this.deliveredOnDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateValidated {
            get {
                return this.dateValidatedField;
            }
            set {
                this.dateValidatedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Diagnosis")]
        public Diagnosis[] Diagnosis {
            get {
                return this.diagnosisField;
            }
            set {
                this.diagnosisField = value;
            }
        }
        
        /// <remarks/>
        public PriorAuthorizationType PriorAuthorization {
            get {
                return this.priorAuthorizationField;
            }
            set {
                this.priorAuthorizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugUseEvaluation")]
        public DrugUseEvaluationType[] DrugUseEvaluation {
            get {
                return this.drugUseEvaluationField;
            }
            set {
                this.drugUseEvaluationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugCoverageStatusCode")]
        public string[] DrugCoverageStatusCode {
            get {
                return this.drugCoverageStatusCodeField;
            }
            set {
                this.drugCoverageStatusCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PriorAuthorizationStatus {
            get {
                return this.priorAuthorizationStatusField;
            }
            set {
                this.priorAuthorizationStatusField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("StructuredSIG")]
        public SIGType[] StructuredSIG {
            get {
                return this.structuredSIGField;
            }
            set {
                this.structuredSIGField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class ResupplyMedicationType {
        
        private string drugDescriptionField;
        
        private DrugCodedType drugCodedField;
        
        private QuantityType quantityField;
        
        private string daysSupplyField;
        
        private string directionsField;
        
        private string noteField;
        
        private ResupplyMedicationTypeRefills refillsField;
        
        private string substitutionsField;
        
        private DateType writtenDateField;
        
        private DateType lastFillDateField;
        
        private DateType expirationDateField;
        
        private DateType effectiveDateField;
        
        private DateType periodEndField;
        
        private DateType deliveredOnDateField;
        
        private DateType dateValidatedField;
        
        private Diagnosis[] diagnosisField;
        
        private PriorAuthorizationType priorAuthorizationField;
        
        private DrugUseEvaluationType[] drugUseEvaluationField;
        
        private string[] drugCoverageStatusCodeField;
        
        private string priorAuthorizationStatusField;
        
        private System.DateTime neededNoLaterThanField;
        
        private bool neededNoLaterThanFieldSpecified;
        
        private TimeZone timeZoneField;
        
        private string neededNoLaterThanReasonField;
        
        private SIGType[] structuredSIGField;
        
        /// <remarks/>
        public string DrugDescription {
            get {
                return this.drugDescriptionField;
            }
            set {
                this.drugDescriptionField = value;
            }
        }
        
        /// <remarks/>
        public DrugCodedType DrugCoded {
            get {
                return this.drugCodedField;
            }
            set {
                this.drugCodedField = value;
            }
        }
        
        /// <remarks/>
        public QuantityType Quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        public string DaysSupply {
            get {
                return this.daysSupplyField;
            }
            set {
                this.daysSupplyField = value;
            }
        }
        
        /// <remarks/>
        public string Directions {
            get {
                return this.directionsField;
            }
            set {
                this.directionsField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
        
        /// <remarks/>
        public ResupplyMedicationTypeRefills Refills {
            get {
                return this.refillsField;
            }
            set {
                this.refillsField = value;
            }
        }
        
        /// <remarks/>
        public string Substitutions {
            get {
                return this.substitutionsField;
            }
            set {
                this.substitutionsField = value;
            }
        }
        
        /// <remarks/>
        public DateType WrittenDate {
            get {
                return this.writtenDateField;
            }
            set {
                this.writtenDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType LastFillDate {
            get {
                return this.lastFillDateField;
            }
            set {
                this.lastFillDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType ExpirationDate {
            get {
                return this.expirationDateField;
            }
            set {
                this.expirationDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType EffectiveDate {
            get {
                return this.effectiveDateField;
            }
            set {
                this.effectiveDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType PeriodEnd {
            get {
                return this.periodEndField;
            }
            set {
                this.periodEndField = value;
            }
        }
        
        /// <remarks/>
        public DateType DeliveredOnDate {
            get {
                return this.deliveredOnDateField;
            }
            set {
                this.deliveredOnDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateValidated {
            get {
                return this.dateValidatedField;
            }
            set {
                this.dateValidatedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Diagnosis")]
        public Diagnosis[] Diagnosis {
            get {
                return this.diagnosisField;
            }
            set {
                this.diagnosisField = value;
            }
        }
        
        /// <remarks/>
        public PriorAuthorizationType PriorAuthorization {
            get {
                return this.priorAuthorizationField;
            }
            set {
                this.priorAuthorizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugUseEvaluation")]
        public DrugUseEvaluationType[] DrugUseEvaluation {
            get {
                return this.drugUseEvaluationField;
            }
            set {
                this.drugUseEvaluationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugCoverageStatusCode")]
        public string[] DrugCoverageStatusCode {
            get {
                return this.drugCoverageStatusCodeField;
            }
            set {
                this.drugCoverageStatusCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PriorAuthorizationStatus {
            get {
                return this.priorAuthorizationStatusField;
            }
            set {
                this.priorAuthorizationStatusField = value;
            }
        }
        
        /// <remarks/>
        public System.DateTime NeededNoLaterThan {
            get {
                return this.neededNoLaterThanField;
            }
            set {
                this.neededNoLaterThanField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool NeededNoLaterThanSpecified {
            get {
                return this.neededNoLaterThanFieldSpecified;
            }
            set {
                this.neededNoLaterThanFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        public TimeZone TimeZone {
            get {
                return this.timeZoneField;
            }
            set {
                this.timeZoneField = value;
            }
        }
        
        /// <remarks/>
        public string NeededNoLaterThanReason {
            get {
                return this.neededNoLaterThanReasonField;
            }
            set {
                this.neededNoLaterThanReasonField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("StructuredSIG")]
        public SIGType[] StructuredSIG {
            get {
                return this.structuredSIGField;
            }
            set {
                this.structuredSIGField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class ResupplyMedicationTypeRefills {
        
        private string qualifierField;
        
        private string valueField;
        
        /// <remarks/>
        public string Qualifier {
            get {
                return this.qualifierField;
            }
            set {
                this.qualifierField = value;
            }
        }
        
        /// <remarks/>
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class TimeZone {
        
        private string timeZoneIdentifierField;
        
        private string timeZoneDifferenceQuantityField;
        
        /// <remarks/>
        public string TimeZoneIdentifier {
            get {
                return this.timeZoneIdentifierField;
            }
            set {
                this.timeZoneIdentifierField = value;
            }
        }
        
        /// <remarks/>
        public string TimeZoneDifferenceQuantity {
            get {
                return this.timeZoneDifferenceQuantityField;
            }
            set {
                this.timeZoneDifferenceQuantityField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class PrescribedMedicationType {
        
        private string drugDescriptionField;
        
        private DrugCodedType drugCodedField;
        
        private QuantityType quantityField;
        
        private string daysSupplyField;
        
        private string directionsField;
        
        private string noteField;
        
        private RefillsType refillsField;
        
        private string substitutionsField;
        
        private DateType writtenDateField;
        
        private DateType lastFillDateField;
        
        private DateType expirationDateField;
        
        private DateType effectiveDateField;
        
        private DateType periodEndField;
        
        private DateType deliveredOnDateField;
        
        private DateType dateValidatedField;
        
        private Diagnosis[] diagnosisField;
        
        private PriorAuthorizationType priorAuthorizationField;
        
        private DrugUseEvaluationType[] drugUseEvaluationField;
        
        private string[] drugCoverageStatusCodeField;
        
        private string priorAuthorizationStatusField;
        
        private SIGType[] structuredSIGField;
        
        /// <remarks/>
        public string DrugDescription {
            get {
                return this.drugDescriptionField;
            }
            set {
                this.drugDescriptionField = value;
            }
        }
        
        /// <remarks/>
        public DrugCodedType DrugCoded {
            get {
                return this.drugCodedField;
            }
            set {
                this.drugCodedField = value;
            }
        }
        
        /// <remarks/>
        public QuantityType Quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        public string DaysSupply {
            get {
                return this.daysSupplyField;
            }
            set {
                this.daysSupplyField = value;
            }
        }
        
        /// <remarks/>
        public string Directions {
            get {
                return this.directionsField;
            }
            set {
                this.directionsField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
        
        /// <remarks/>
        public RefillsType Refills {
            get {
                return this.refillsField;
            }
            set {
                this.refillsField = value;
            }
        }
        
        /// <remarks/>
        public string Substitutions {
            get {
                return this.substitutionsField;
            }
            set {
                this.substitutionsField = value;
            }
        }
        
        /// <remarks/>
        public DateType WrittenDate {
            get {
                return this.writtenDateField;
            }
            set {
                this.writtenDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType LastFillDate {
            get {
                return this.lastFillDateField;
            }
            set {
                this.lastFillDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType ExpirationDate {
            get {
                return this.expirationDateField;
            }
            set {
                this.expirationDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType EffectiveDate {
            get {
                return this.effectiveDateField;
            }
            set {
                this.effectiveDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType PeriodEnd {
            get {
                return this.periodEndField;
            }
            set {
                this.periodEndField = value;
            }
        }
        
        /// <remarks/>
        public DateType DeliveredOnDate {
            get {
                return this.deliveredOnDateField;
            }
            set {
                this.deliveredOnDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateValidated {
            get {
                return this.dateValidatedField;
            }
            set {
                this.dateValidatedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Diagnosis")]
        public Diagnosis[] Diagnosis {
            get {
                return this.diagnosisField;
            }
            set {
                this.diagnosisField = value;
            }
        }
        
        /// <remarks/>
        public PriorAuthorizationType PriorAuthorization {
            get {
                return this.priorAuthorizationField;
            }
            set {
                this.priorAuthorizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugUseEvaluation")]
        public DrugUseEvaluationType[] DrugUseEvaluation {
            get {
                return this.drugUseEvaluationField;
            }
            set {
                this.drugUseEvaluationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugCoverageStatusCode")]
        public string[] DrugCoverageStatusCode {
            get {
                return this.drugCoverageStatusCodeField;
            }
            set {
                this.drugCoverageStatusCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PriorAuthorizationStatus {
            get {
                return this.priorAuthorizationStatusField;
            }
            set {
                this.priorAuthorizationStatusField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("StructuredSIG")]
        public SIGType[] StructuredSIG {
            get {
                return this.structuredSIGField;
            }
            set {
                this.structuredSIGField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class MedicationType {
        
        private string drugDescriptionField;
        
        private DrugCodedType drugCodedField;
        
        private QuantityType quantityField;
        
        private string daysSupplyField;
        
        private string directionsField;
        
        private string noteField;
        
        private RefillsType refillsField;
        
        private string substitutionsField;
        
        private DateType writtenDateField;
        
        private DateType lastFillDateField;
        
        private DateType expirationDateField;
        
        private DateType effectiveDateField;
        
        private DateType periodEndField;
        
        private DateType deliveredOnDateField;
        
        private DateType dateValidatedField;
        
        private Diagnosis[] diagnosisField;
        
        private PriorAuthorizationType priorAuthorizationField;
        
        private DrugUseEvaluationType[] drugUseEvaluationField;
        
        private string[] drugCoverageStatusCodeField;
        
        private string priorAuthorizationStatusField;
        
        private SIGType[] structuredSIGField;
        
        /// <remarks/>
        public string DrugDescription {
            get {
                return this.drugDescriptionField;
            }
            set {
                this.drugDescriptionField = value;
            }
        }
        
        /// <remarks/>
        public DrugCodedType DrugCoded {
            get {
                return this.drugCodedField;
            }
            set {
                this.drugCodedField = value;
            }
        }
        
        /// <remarks/>
        public QuantityType Quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        public string DaysSupply {
            get {
                return this.daysSupplyField;
            }
            set {
                this.daysSupplyField = value;
            }
        }
        
        /// <remarks/>
        public string Directions {
            get {
                return this.directionsField;
            }
            set {
                this.directionsField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
        
        /// <remarks/>
        public RefillsType Refills {
            get {
                return this.refillsField;
            }
            set {
                this.refillsField = value;
            }
        }
        
        /// <remarks/>
        public string Substitutions {
            get {
                return this.substitutionsField;
            }
            set {
                this.substitutionsField = value;
            }
        }
        
        /// <remarks/>
        public DateType WrittenDate {
            get {
                return this.writtenDateField;
            }
            set {
                this.writtenDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType LastFillDate {
            get {
                return this.lastFillDateField;
            }
            set {
                this.lastFillDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType ExpirationDate {
            get {
                return this.expirationDateField;
            }
            set {
                this.expirationDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType EffectiveDate {
            get {
                return this.effectiveDateField;
            }
            set {
                this.effectiveDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType PeriodEnd {
            get {
                return this.periodEndField;
            }
            set {
                this.periodEndField = value;
            }
        }
        
        /// <remarks/>
        public DateType DeliveredOnDate {
            get {
                return this.deliveredOnDateField;
            }
            set {
                this.deliveredOnDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateValidated {
            get {
                return this.dateValidatedField;
            }
            set {
                this.dateValidatedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Diagnosis")]
        public Diagnosis[] Diagnosis {
            get {
                return this.diagnosisField;
            }
            set {
                this.diagnosisField = value;
            }
        }
        
        /// <remarks/>
        public PriorAuthorizationType PriorAuthorization {
            get {
                return this.priorAuthorizationField;
            }
            set {
                this.priorAuthorizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugUseEvaluation")]
        public DrugUseEvaluationType[] DrugUseEvaluation {
            get {
                return this.drugUseEvaluationField;
            }
            set {
                this.drugUseEvaluationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugCoverageStatusCode")]
        public string[] DrugCoverageStatusCode {
            get {
                return this.drugCoverageStatusCodeField;
            }
            set {
                this.drugCoverageStatusCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PriorAuthorizationStatus {
            get {
                return this.priorAuthorizationStatusField;
            }
            set {
                this.priorAuthorizationStatusField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("StructuredSIG")]
        public SIGType[] StructuredSIG {
            get {
                return this.structuredSIGField;
            }
            set {
                this.structuredSIGField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class CensusBenefitsCoordinationType {
        
        private PayerIDType payerIdentificationField;
        
        private string payerNameField;
        
        private string cardholderIDField;
        
        private NameType responsibilePartyField;
        
        private string groupIDField;
        
        private string groupNameField;
        
        private AddressType addressField;
        
        private string insuranceTypeCodeField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public PayerIDType PayerIdentification {
            get {
                return this.payerIdentificationField;
            }
            set {
                this.payerIdentificationField = value;
            }
        }
        
        /// <remarks/>
        public string PayerName {
            get {
                return this.payerNameField;
            }
            set {
                this.payerNameField = value;
            }
        }
        
        /// <remarks/>
        public string CardholderID {
            get {
                return this.cardholderIDField;
            }
            set {
                this.cardholderIDField = value;
            }
        }
        
        /// <remarks/>
        public NameType ResponsibileParty {
            get {
                return this.responsibilePartyField;
            }
            set {
                this.responsibilePartyField = value;
            }
        }
        
        /// <remarks/>
        public string GroupID {
            get {
                return this.groupIDField;
            }
            set {
                this.groupIDField = value;
            }
        }
        
        /// <remarks/>
        public string GroupName {
            get {
                return this.groupNameField;
            }
            set {
                this.groupNameField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        public string InsuranceTypeCode {
            get {
                return this.insuranceTypeCodeField;
            }
            set {
                this.insuranceTypeCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class PayerIDType {
        
        private string[] itemsField;
        
        private ItemsChoiceType3[] itemsElementNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("BINLocationNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("Commercial", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("DEANumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("DentistLicenseNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("FacilityID", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("FileID", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("HIN", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("IndividualPolicyNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("MedicaidNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("MedicalRecordIdentificationNumberEHR", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("MedicareNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("MutuallyDefined", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("NAICCode", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("NCPDPID", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("NPI", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PPONumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PatientAccountNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PayerID", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PriorAuthorization", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("ProcessorIdentificationNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PromotionNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("SecondaryCoverage", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("SocialSecurity", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("StateLicenseNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("UPIN", typeof(string))]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public string[] Items {
            get {
                return this.itemsField;
            }
            set {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemsChoiceType3[] ItemsElementName {
            get {
                return this.itemsElementNameField;
            }
            set {
                this.itemsElementNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging", IncludeInSchema=false)]
    public enum ItemsChoiceType3 {
        
        /// <remarks/>
        BINLocationNumber,
        
        /// <remarks/>
        Commercial,
        
        /// <remarks/>
        DEANumber,
        
        /// <remarks/>
        DentistLicenseNumber,
        
        /// <remarks/>
        FacilityID,
        
        /// <remarks/>
        FileID,
        
        /// <remarks/>
        HIN,
        
        /// <remarks/>
        IndividualPolicyNumber,
        
        /// <remarks/>
        MedicaidNumber,
        
        /// <remarks/>
        MedicalRecordIdentificationNumberEHR,
        
        /// <remarks/>
        MedicareNumber,
        
        /// <remarks/>
        MutuallyDefined,
        
        /// <remarks/>
        NAICCode,
        
        /// <remarks/>
        NCPDPID,
        
        /// <remarks/>
        NPI,
        
        /// <remarks/>
        PPONumber,
        
        /// <remarks/>
        PatientAccountNumber,
        
        /// <remarks/>
        PayerID,
        
        /// <remarks/>
        PriorAuthorization,
        
        /// <remarks/>
        ProcessorIdentificationNumber,
        
        /// <remarks/>
        PromotionNumber,
        
        /// <remarks/>
        SecondaryCoverage,
        
        /// <remarks/>
        SocialSecurity,
        
        /// <remarks/>
        StateLicenseNumber,
        
        /// <remarks/>
        UPIN,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class BenefitsCoordinationResponseType {
        
        private PayerIDType payerIdentificationField;
        
        private string payerNameField;
        
        private string serviceTypeCodedField;
        
        private string cardholderIDField;
        
        private NameType responsibilePartyField;
        
        private string groupIDField;
        
        private DateType[] itemsField;
        
        private ItemsChoiceType6[] itemsElementNameField;
        
        private string consentField;
        
        private string pBMMemberIDField;
        
        /// <remarks/>
        public PayerIDType PayerIdentification {
            get {
                return this.payerIdentificationField;
            }
            set {
                this.payerIdentificationField = value;
            }
        }
        
        /// <remarks/>
        public string PayerName {
            get {
                return this.payerNameField;
            }
            set {
                this.payerNameField = value;
            }
        }
        
        /// <remarks/>
        public string ServiceTypeCoded {
            get {
                return this.serviceTypeCodedField;
            }
            set {
                this.serviceTypeCodedField = value;
            }
        }
        
        /// <remarks/>
        public string CardholderID {
            get {
                return this.cardholderIDField;
            }
            set {
                this.cardholderIDField = value;
            }
        }
        
        /// <remarks/>
        public NameType ResponsibileParty {
            get {
                return this.responsibilePartyField;
            }
            set {
                this.responsibilePartyField = value;
            }
        }
        
        /// <remarks/>
        public string GroupID {
            get {
                return this.groupIDField;
            }
            set {
                this.groupIDField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("EffectiveDate", typeof(DateType))]
        [System.Xml.Serialization.XmlElementAttribute("ExpirationDate", typeof(DateType))]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public DateType[] Items {
            get {
                return this.itemsField;
            }
            set {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemsChoiceType6[] ItemsElementName {
            get {
                return this.itemsElementNameField;
            }
            set {
                this.itemsElementNameField = value;
            }
        }
        
        /// <remarks/>
        public string Consent {
            get {
                return this.consentField;
            }
            set {
                this.consentField = value;
            }
        }
        
        /// <remarks/>
        public string PBMMemberID {
            get {
                return this.pBMMemberIDField;
            }
            set {
                this.pBMMemberIDField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging", IncludeInSchema=false)]
    public enum ItemsChoiceType6 {
        
        /// <remarks/>
        EffectiveDate,
        
        /// <remarks/>
        ExpirationDate,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class BenefitsCoordinationRequestType {
        
        private PayerIDType payerIdentificationField;
        
        private string payerNameField;
        
        private string serviceTypeCodedField;
        
        private string cardholderIDField;
        
        private NameType responsibilePartyField;
        
        private string groupIDField;
        
        private DateType[] itemsField;
        
        private ItemsChoiceType5[] itemsElementNameField;
        
        private string consentField;
        
        private string pBMMemberIDField;
        
        /// <remarks/>
        public PayerIDType PayerIdentification {
            get {
                return this.payerIdentificationField;
            }
            set {
                this.payerIdentificationField = value;
            }
        }
        
        /// <remarks/>
        public string PayerName {
            get {
                return this.payerNameField;
            }
            set {
                this.payerNameField = value;
            }
        }
        
        /// <remarks/>
        public string ServiceTypeCoded {
            get {
                return this.serviceTypeCodedField;
            }
            set {
                this.serviceTypeCodedField = value;
            }
        }
        
        /// <remarks/>
        public string CardholderID {
            get {
                return this.cardholderIDField;
            }
            set {
                this.cardholderIDField = value;
            }
        }
        
        /// <remarks/>
        public NameType ResponsibileParty {
            get {
                return this.responsibilePartyField;
            }
            set {
                this.responsibilePartyField = value;
            }
        }
        
        /// <remarks/>
        public string GroupID {
            get {
                return this.groupIDField;
            }
            set {
                this.groupIDField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("EffectiveDate", typeof(DateType))]
        [System.Xml.Serialization.XmlElementAttribute("ExpirationDate", typeof(DateType))]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public DateType[] Items {
            get {
                return this.itemsField;
            }
            set {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemsChoiceType5[] ItemsElementName {
            get {
                return this.itemsElementNameField;
            }
            set {
                this.itemsElementNameField = value;
            }
        }
        
        /// <remarks/>
        public string Consent {
            get {
                return this.consentField;
            }
            set {
                this.consentField = value;
            }
        }
        
        /// <remarks/>
        public string PBMMemberID {
            get {
                return this.pBMMemberIDField;
            }
            set {
                this.pBMMemberIDField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging", IncludeInSchema=false)]
    public enum ItemsChoiceType5 {
        
        /// <remarks/>
        EffectiveDate,
        
        /// <remarks/>
        ExpirationDate,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class HistoryResponsePatientType {
        
        private string patientRelationshipField;
        
        private PatientIDType identificationField;
        
        private NameType nameField;
        
        private string genderField;
        
        private DateType dateOfBirthField;
        
        private AddressType addressField;
        
        private CommunicationType[] communicationNumbersField;
        
        private PatientLocation patientLocationField;
        
        /// <remarks/>
        public string PatientRelationship {
            get {
                return this.patientRelationshipField;
            }
            set {
                this.patientRelationshipField = value;
            }
        }
        
        /// <remarks/>
        public PatientIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public NameType Name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public string Gender {
            get {
                return this.genderField;
            }
            set {
                this.genderField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateOfBirth {
            get {
                return this.dateOfBirthField;
            }
            set {
                this.dateOfBirthField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
        
        /// <remarks/>
        public PatientLocation PatientLocation {
            get {
                return this.patientLocationField;
            }
            set {
                this.patientLocationField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class PatientIDType {
        
        private string[] itemsField;
        
        private ItemsChoiceType1[] itemsElementNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("BINLocationNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("Commercial", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("DEANumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("DentistLicenseNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("FacilityID", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("FileID", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("HIN", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("IndividualPolicyNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("MedicaidNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("MedicalRecordIdentificationNumberEHR", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("MedicareNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("MutuallyDefined", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("NAICCode", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("NCPDPID", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("NPI", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PPONumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PatientAccountNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PayerID", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PriorAuthorization", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("ProcessorIdentificationNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PromotionNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("SecondaryCoverage", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("SocialSecurity", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("StateLicenseNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("UPIN", typeof(string))]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public string[] Items {
            get {
                return this.itemsField;
            }
            set {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemsChoiceType1[] ItemsElementName {
            get {
                return this.itemsElementNameField;
            }
            set {
                this.itemsElementNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging", IncludeInSchema=false)]
    public enum ItemsChoiceType1 {
        
        /// <remarks/>
        BINLocationNumber,
        
        /// <remarks/>
        Commercial,
        
        /// <remarks/>
        DEANumber,
        
        /// <remarks/>
        DentistLicenseNumber,
        
        /// <remarks/>
        FacilityID,
        
        /// <remarks/>
        FileID,
        
        /// <remarks/>
        HIN,
        
        /// <remarks/>
        IndividualPolicyNumber,
        
        /// <remarks/>
        MedicaidNumber,
        
        /// <remarks/>
        MedicalRecordIdentificationNumberEHR,
        
        /// <remarks/>
        MedicareNumber,
        
        /// <remarks/>
        MutuallyDefined,
        
        /// <remarks/>
        NAICCode,
        
        /// <remarks/>
        NCPDPID,
        
        /// <remarks/>
        NPI,
        
        /// <remarks/>
        PPONumber,
        
        /// <remarks/>
        PatientAccountNumber,
        
        /// <remarks/>
        PayerID,
        
        /// <remarks/>
        PriorAuthorization,
        
        /// <remarks/>
        ProcessorIdentificationNumber,
        
        /// <remarks/>
        PromotionNumber,
        
        /// <remarks/>
        SecondaryCoverage,
        
        /// <remarks/>
        SocialSecurity,
        
        /// <remarks/>
        StateLicenseNumber,
        
        /// <remarks/>
        UPIN,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class PatientLocation {
        
        private string facilityUnitField;
        
        private string bedField;
        
        private string roomField;
        
        /// <remarks/>
        public string FacilityUnit {
            get {
                return this.facilityUnitField;
            }
            set {
                this.facilityUnitField = value;
            }
        }
        
        /// <remarks/>
        public string Bed {
            get {
                return this.bedField;
            }
            set {
                this.bedField = value;
            }
        }
        
        /// <remarks/>
        public string Room {
            get {
                return this.roomField;
            }
            set {
                this.roomField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class HistoryRequestPatientType {
        
        private string patientRelationshipField;
        
        private PatientIDType identificationField;
        
        private MandatoryPatientNameType nameField;
        
        private string genderField;
        
        private DateType dateOfBirthField;
        
        private AddressType addressField;
        
        private CommunicationType[] communicationNumbersField;
        
        private PatientLocation patientLocationField;
        
        /// <remarks/>
        public string PatientRelationship {
            get {
                return this.patientRelationshipField;
            }
            set {
                this.patientRelationshipField = value;
            }
        }
        
        /// <remarks/>
        public PatientIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryPatientNameType Name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public string Gender {
            get {
                return this.genderField;
            }
            set {
                this.genderField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateOfBirth {
            get {
                return this.dateOfBirthField;
            }
            set {
                this.dateOfBirthField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
        
        /// <remarks/>
        public PatientLocation PatientLocation {
            get {
                return this.patientLocationField;
            }
            set {
                this.patientLocationField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class MandatoryPatientNameType {
        
        private string lastNameField;
        
        private string firstNameField;
        
        private string middleNameField;
        
        private string suffixField;
        
        private string prefixField;
        
        /// <remarks/>
        public string LastName {
            get {
                return this.lastNameField;
            }
            set {
                this.lastNameField = value;
            }
        }
        
        /// <remarks/>
        public string FirstName {
            get {
                return this.firstNameField;
            }
            set {
                this.firstNameField = value;
            }
        }
        
        /// <remarks/>
        public string MiddleName {
            get {
                return this.middleNameField;
            }
            set {
                this.middleNameField = value;
            }
        }
        
        /// <remarks/>
        public string Suffix {
            get {
                return this.suffixField;
            }
            set {
                this.suffixField = value;
            }
        }
        
        /// <remarks/>
        public string Prefix {
            get {
                return this.prefixField;
            }
            set {
                this.prefixField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class CancelSupervisorType {
        
        private MandatoryProviderIDType identificationField;
        
        private string specialtyField;
        
        private MandatoryNameType nameField;
        
        private string clinicNameField;
        
        private AddressType addressField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public MandatoryProviderIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public string Specialty {
            get {
                return this.specialtyField;
            }
            set {
                this.specialtyField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryNameType Name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public string ClinicName {
            get {
                return this.clinicNameField;
            }
            set {
                this.clinicNameField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class MandatoryProviderIDType {
        
        private string[] itemsField;
        
        private ItemsChoiceType[] itemsElementNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("BINLocationNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("Commercial", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("DEANumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("DentistLicenseNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("FacilityID", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("FileID", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("HIN", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("IndividualPolicyNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("MedicaidNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("MedicalRecordIdentificationNumberEHR", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("MedicareNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("MutuallyDefined", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("NAICCode", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("NCPDPID", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("NPI", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PPONumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PatientAccountNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PayerID", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PriorAuthorization", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("ProcessorIdentificationNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("PromotionNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("SecondaryCoverage", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("SocialSecurity", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("StateLicenseNumber", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("UPIN", typeof(string))]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public string[] Items {
            get {
                return this.itemsField;
            }
            set {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemsChoiceType[] ItemsElementName {
            get {
                return this.itemsElementNameField;
            }
            set {
                this.itemsElementNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging", IncludeInSchema=false)]
    public enum ItemsChoiceType {
        
        /// <remarks/>
        BINLocationNumber,
        
        /// <remarks/>
        Commercial,
        
        /// <remarks/>
        DEANumber,
        
        /// <remarks/>
        DentistLicenseNumber,
        
        /// <remarks/>
        FacilityID,
        
        /// <remarks/>
        FileID,
        
        /// <remarks/>
        HIN,
        
        /// <remarks/>
        IndividualPolicyNumber,
        
        /// <remarks/>
        MedicaidNumber,
        
        /// <remarks/>
        MedicalRecordIdentificationNumberEHR,
        
        /// <remarks/>
        MedicareNumber,
        
        /// <remarks/>
        MutuallyDefined,
        
        /// <remarks/>
        NAICCode,
        
        /// <remarks/>
        NCPDPID,
        
        /// <remarks/>
        NPI,
        
        /// <remarks/>
        PPONumber,
        
        /// <remarks/>
        PatientAccountNumber,
        
        /// <remarks/>
        PayerID,
        
        /// <remarks/>
        PriorAuthorization,
        
        /// <remarks/>
        ProcessorIdentificationNumber,
        
        /// <remarks/>
        PromotionNumber,
        
        /// <remarks/>
        SecondaryCoverage,
        
        /// <remarks/>
        SocialSecurity,
        
        /// <remarks/>
        StateLicenseNumber,
        
        /// <remarks/>
        UPIN,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class MandatoryNameType {
        
        private string lastNameField;
        
        private string firstNameField;
        
        private string middleNameField;
        
        private string suffixField;
        
        private string prefixField;
        
        /// <remarks/>
        public string LastName {
            get {
                return this.lastNameField;
            }
            set {
                this.lastNameField = value;
            }
        }
        
        /// <remarks/>
        public string FirstName {
            get {
                return this.firstNameField;
            }
            set {
                this.firstNameField = value;
            }
        }
        
        /// <remarks/>
        public string MiddleName {
            get {
                return this.middleNameField;
            }
            set {
                this.middleNameField = value;
            }
        }
        
        /// <remarks/>
        public string Suffix {
            get {
                return this.suffixField;
            }
            set {
                this.suffixField = value;
            }
        }
        
        /// <remarks/>
        public string Prefix {
            get {
                return this.prefixField;
            }
            set {
                this.prefixField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class OptionalPrescriberType {
        
        private MandatoryProviderIDType identificationField;
        
        private string specialtyField;
        
        private string clinicNameField;
        
        private MandatoryNameType nameField;
        
        private AddressType addressField;
        
        private NameType prescriberAgentField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public MandatoryProviderIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public string Specialty {
            get {
                return this.specialtyField;
            }
            set {
                this.specialtyField = value;
            }
        }
        
        /// <remarks/>
        public string ClinicName {
            get {
                return this.clinicNameField;
            }
            set {
                this.clinicNameField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryNameType Name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        public NameType PrescriberAgent {
            get {
                return this.prescriberAgentField;
            }
            set {
                this.prescriberAgentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class CancelPrescriberType {
        
        private MandatoryProviderIDType identificationField;
        
        private string specialtyField;
        
        private string clinicNameField;
        
        private MandatoryNameType nameField;
        
        private AddressType addressField;
        
        private NameType prescriberAgentField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public MandatoryProviderIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public string Specialty {
            get {
                return this.specialtyField;
            }
            set {
                this.specialtyField = value;
            }
        }
        
        /// <remarks/>
        public string ClinicName {
            get {
                return this.clinicNameField;
            }
            set {
                this.clinicNameField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryNameType Name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        public NameType PrescriberAgent {
            get {
                return this.prescriberAgentField;
            }
            set {
                this.prescriberAgentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class IDMandatoryType {
        
        private string iDValueField;
        
        private string iDQualifierField;
        
        /// <remarks/>
        public string IDValue {
            get {
                return this.iDValueField;
            }
            set {
                this.iDValueField = value;
            }
        }
        
        /// <remarks/>
        public string IDQualifier {
            get {
                return this.iDQualifierField;
            }
            set {
                this.iDQualifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class CensusRequestType {
        
        private string changeRequestTypeField;
        
        private string returnReceiptField;
        
        private string requestReferenceNumberField;
        
        private System.DateTime censusEffectiveDateField;
        
        private bool censusEffectiveDateFieldSpecified;
        
        /// <remarks/>
        public string ChangeRequestType {
            get {
                return this.changeRequestTypeField;
            }
            set {
                this.changeRequestTypeField = value;
            }
        }
        
        /// <remarks/>
        public string ReturnReceipt {
            get {
                return this.returnReceiptField;
            }
            set {
                this.returnReceiptField = value;
            }
        }
        
        /// <remarks/>
        public string RequestReferenceNumber {
            get {
                return this.requestReferenceNumberField;
            }
            set {
                this.requestReferenceNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="date")]
        public System.DateTime CensusEffectiveDate {
            get {
                return this.censusEffectiveDateField;
            }
            set {
                this.censusEffectiveDateField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool CensusEffectiveDateSpecified {
            get {
                return this.censusEffectiveDateFieldSpecified;
            }
            set {
                this.censusEffectiveDateFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class CancelRequestType {
        
        private string changeRequestTypeField;
        
        private string returnReceiptField;
        
        private string requestReferenceNumberField;
        
        private string changeofPrescriptionStatusFlagField;
        
        /// <remarks/>
        public string ChangeRequestType {
            get {
                return this.changeRequestTypeField;
            }
            set {
                this.changeRequestTypeField = value;
            }
        }
        
        /// <remarks/>
        public string ReturnReceipt {
            get {
                return this.returnReceiptField;
            }
            set {
                this.returnReceiptField = value;
            }
        }
        
        /// <remarks/>
        public string RequestReferenceNumber {
            get {
                return this.requestReferenceNumberField;
            }
            set {
                this.requestReferenceNumberField = value;
            }
        }
        
        /// <remarks/>
        public string ChangeofPrescriptionStatusFlag {
            get {
                return this.changeofPrescriptionStatusFlagField;
            }
            set {
                this.changeofPrescriptionStatusFlagField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class RxFillDispensedMedicationType {
        
        private string drugDescriptionField;
        
        private DrugCodedType drugCodedField;
        
        private QuantityType quantityField;
        
        private string daysSupplyField;
        
        private string directionsField;
        
        private string noteField;
        
        private RefillsType refillsField;
        
        private string substitutionsField;
        
        private DateType writtenDateField;
        
        private DateType lastFillDateField;
        
        private DateType expirationDateField;
        
        private DateType effectiveDateField;
        
        private DateType periodEndField;
        
        private DateType deliveredOnDateField;
        
        private DateType dateValidatedField;
        
        private DateType soldDateField;
        
        private Diagnosis[] diagnosisField;
        
        private PriorAuthorizationType priorAuthorizationField;
        
        private DrugUseEvaluationType[] drugUseEvaluationField;
        
        private string[] drugCoverageStatusCodeField;
        
        private string priorAuthorizationStatusField;
        
        private SIGType[] structuredSIGField;
        
        /// <remarks/>
        public string DrugDescription {
            get {
                return this.drugDescriptionField;
            }
            set {
                this.drugDescriptionField = value;
            }
        }
        
        /// <remarks/>
        public DrugCodedType DrugCoded {
            get {
                return this.drugCodedField;
            }
            set {
                this.drugCodedField = value;
            }
        }
        
        /// <remarks/>
        public QuantityType Quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        public string DaysSupply {
            get {
                return this.daysSupplyField;
            }
            set {
                this.daysSupplyField = value;
            }
        }
        
        /// <remarks/>
        public string Directions {
            get {
                return this.directionsField;
            }
            set {
                this.directionsField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
        
        /// <remarks/>
        public RefillsType Refills {
            get {
                return this.refillsField;
            }
            set {
                this.refillsField = value;
            }
        }
        
        /// <remarks/>
        public string Substitutions {
            get {
                return this.substitutionsField;
            }
            set {
                this.substitutionsField = value;
            }
        }
        
        /// <remarks/>
        public DateType WrittenDate {
            get {
                return this.writtenDateField;
            }
            set {
                this.writtenDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType LastFillDate {
            get {
                return this.lastFillDateField;
            }
            set {
                this.lastFillDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType ExpirationDate {
            get {
                return this.expirationDateField;
            }
            set {
                this.expirationDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType EffectiveDate {
            get {
                return this.effectiveDateField;
            }
            set {
                this.effectiveDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType PeriodEnd {
            get {
                return this.periodEndField;
            }
            set {
                this.periodEndField = value;
            }
        }
        
        /// <remarks/>
        public DateType DeliveredOnDate {
            get {
                return this.deliveredOnDateField;
            }
            set {
                this.deliveredOnDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateValidated {
            get {
                return this.dateValidatedField;
            }
            set {
                this.dateValidatedField = value;
            }
        }
        
        /// <remarks/>
        public DateType SoldDate {
            get {
                return this.soldDateField;
            }
            set {
                this.soldDateField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Diagnosis")]
        public Diagnosis[] Diagnosis {
            get {
                return this.diagnosisField;
            }
            set {
                this.diagnosisField = value;
            }
        }
        
        /// <remarks/>
        public PriorAuthorizationType PriorAuthorization {
            get {
                return this.priorAuthorizationField;
            }
            set {
                this.priorAuthorizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugUseEvaluation")]
        public DrugUseEvaluationType[] DrugUseEvaluation {
            get {
                return this.drugUseEvaluationField;
            }
            set {
                this.drugUseEvaluationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugCoverageStatusCode")]
        public string[] DrugCoverageStatusCode {
            get {
                return this.drugCoverageStatusCodeField;
            }
            set {
                this.drugCoverageStatusCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PriorAuthorizationStatus {
            get {
                return this.priorAuthorizationStatusField;
            }
            set {
                this.priorAuthorizationStatusField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("StructuredSIG")]
        public SIGType[] StructuredSIG {
            get {
                return this.structuredSIGField;
            }
            set {
                this.structuredSIGField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class RxFillMedicationType {
        
        private string drugDescriptionField;
        
        private DrugCodedType drugCodedField;
        
        private QuantityType quantityField;
        
        private string daysSupplyField;
        
        private string directionsField;
        
        private string noteField;
        
        private RefillsType refillsField;
        
        private string substitutionsField;
        
        private DateType writtenDateField;
        
        private DateType lastFillDateField;
        
        private DateType expirationDateField;
        
        private DateType effectiveDateField;
        
        private DateType periodEndField;
        
        private DateType deliveredOnDateField;
        
        private DateType dateValidatedField;
        
        private Diagnosis[] diagnosisField;
        
        private PriorAuthorizationType priorAuthorizationField;
        
        private DrugUseEvaluationType[] drugUseEvaluationField;
        
        private string[] drugCoverageStatusCodeField;
        
        private string priorAuthorizationStatusField;
        
        private SIGType[] structuredSIGField;
        
        /// <remarks/>
        public string DrugDescription {
            get {
                return this.drugDescriptionField;
            }
            set {
                this.drugDescriptionField = value;
            }
        }
        
        /// <remarks/>
        public DrugCodedType DrugCoded {
            get {
                return this.drugCodedField;
            }
            set {
                this.drugCodedField = value;
            }
        }
        
        /// <remarks/>
        public QuantityType Quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        public string DaysSupply {
            get {
                return this.daysSupplyField;
            }
            set {
                this.daysSupplyField = value;
            }
        }
        
        /// <remarks/>
        public string Directions {
            get {
                return this.directionsField;
            }
            set {
                this.directionsField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
        
        /// <remarks/>
        public RefillsType Refills {
            get {
                return this.refillsField;
            }
            set {
                this.refillsField = value;
            }
        }
        
        /// <remarks/>
        public string Substitutions {
            get {
                return this.substitutionsField;
            }
            set {
                this.substitutionsField = value;
            }
        }
        
        /// <remarks/>
        public DateType WrittenDate {
            get {
                return this.writtenDateField;
            }
            set {
                this.writtenDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType LastFillDate {
            get {
                return this.lastFillDateField;
            }
            set {
                this.lastFillDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType ExpirationDate {
            get {
                return this.expirationDateField;
            }
            set {
                this.expirationDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType EffectiveDate {
            get {
                return this.effectiveDateField;
            }
            set {
                this.effectiveDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType PeriodEnd {
            get {
                return this.periodEndField;
            }
            set {
                this.periodEndField = value;
            }
        }
        
        /// <remarks/>
        public DateType DeliveredOnDate {
            get {
                return this.deliveredOnDateField;
            }
            set {
                this.deliveredOnDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateValidated {
            get {
                return this.dateValidatedField;
            }
            set {
                this.dateValidatedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Diagnosis")]
        public Diagnosis[] Diagnosis {
            get {
                return this.diagnosisField;
            }
            set {
                this.diagnosisField = value;
            }
        }
        
        /// <remarks/>
        public PriorAuthorizationType PriorAuthorization {
            get {
                return this.priorAuthorizationField;
            }
            set {
                this.priorAuthorizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugUseEvaluation")]
        public DrugUseEvaluationType[] DrugUseEvaluation {
            get {
                return this.drugUseEvaluationField;
            }
            set {
                this.drugUseEvaluationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugCoverageStatusCode")]
        public string[] DrugCoverageStatusCode {
            get {
                return this.drugCoverageStatusCodeField;
            }
            set {
                this.drugCoverageStatusCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PriorAuthorizationStatus {
            get {
                return this.priorAuthorizationStatusField;
            }
            set {
                this.priorAuthorizationStatusField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("StructuredSIG")]
        public SIGType[] StructuredSIG {
            get {
                return this.structuredSIGField;
            }
            set {
                this.structuredSIGField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class FaciltyType {
        
        private OptionalProviderIDType identificationField;
        
        private string facilityNameField;
        
        private AddressType addressField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public OptionalProviderIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public string FacilityName {
            get {
                return this.facilityNameField;
            }
            set {
                this.facilityNameField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class SupervisorRxFillType {
        
        private OptionalProviderIDType identificationField;
        
        private string specialtyField;
        
        private MandatoryNameType nameField;
        
        private string clinicNameField;
        
        private AddressType addressField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public OptionalProviderIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public string Specialty {
            get {
                return this.specialtyField;
            }
            set {
                this.specialtyField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryNameType Name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public string ClinicName {
            get {
                return this.clinicNameField;
            }
            set {
                this.clinicNameField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class PrescriberRxFillType {
        
        private OptionalProviderIDType identificationField;
        
        private string specialtyField;
        
        private string clinicNameField;
        
        private MandatoryNameType nameField;
        
        private AddressType addressField;
        
        private NameType prescriberAgentField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public OptionalProviderIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public string Specialty {
            get {
                return this.specialtyField;
            }
            set {
                this.specialtyField = value;
            }
        }
        
        /// <remarks/>
        public string ClinicName {
            get {
                return this.clinicNameField;
            }
            set {
                this.clinicNameField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryNameType Name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        public NameType PrescriberAgent {
            get {
                return this.prescriberAgentField;
            }
            set {
                this.prescriberAgentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class NoteType {
        
        private string referenceNumberField;
        
        private string noteField;
        
        /// <remarks/>
        public string ReferenceNumber {
            get {
                return this.referenceNumberField;
            }
            set {
                this.referenceNumberField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class FillStatusType {
        
        private NoteType itemField;
        
        private ItemChoiceType1 itemElementNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Filled", typeof(NoteType))]
        [System.Xml.Serialization.XmlElementAttribute("NotFilled", typeof(NoteType))]
        [System.Xml.Serialization.XmlElementAttribute("PartialFill", typeof(NoteType))]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")]
        public NoteType Item {
            get {
                return this.itemField;
            }
            set {
                this.itemField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemChoiceType1 ItemElementName {
            get {
                return this.itemElementNameField;
            }
            set {
                this.itemElementNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging", IncludeInSchema=false)]
    public enum ItemChoiceType1 {
        
        /// <remarks/>
        Filled,
        
        /// <remarks/>
        NotFilled,
        
        /// <remarks/>
        PartialFill,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class RxChangeResponseMedicationType {
        
        private string drugDescriptionField;
        
        private DrugCodedType drugCodedField;
        
        private QuantityType quantityField;
        
        private string daysSupplyField;
        
        private string directionsField;
        
        private string noteField;
        
        private RxChangeResponseMedicationTypeRefills refillsField;
        
        private string substitutionsField;
        
        private DateType writtenDateField;
        
        private DateType lastFillDateField;
        
        private DateType expirationDateField;
        
        private DateType effectiveDateField;
        
        private DateType periodEndField;
        
        private DateType deliveredOnDateField;
        
        private DateType dateValidatedField;
        
        private Diagnosis[] diagnosisField;
        
        private PriorAuthorizationType priorAuthorizationField;
        
        private DrugUseEvaluationType[] drugUseEvaluationField;
        
        private string[] drugCoverageStatusCodeField;
        
        private string priorAuthorizationStatusField;
        
        private SIGType[] structuredSIGField;
        
        /// <remarks/>
        public string DrugDescription {
            get {
                return this.drugDescriptionField;
            }
            set {
                this.drugDescriptionField = value;
            }
        }
        
        /// <remarks/>
        public DrugCodedType DrugCoded {
            get {
                return this.drugCodedField;
            }
            set {
                this.drugCodedField = value;
            }
        }
        
        /// <remarks/>
        public QuantityType Quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        public string DaysSupply {
            get {
                return this.daysSupplyField;
            }
            set {
                this.daysSupplyField = value;
            }
        }
        
        /// <remarks/>
        public string Directions {
            get {
                return this.directionsField;
            }
            set {
                this.directionsField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
        
        /// <remarks/>
        public RxChangeResponseMedicationTypeRefills Refills {
            get {
                return this.refillsField;
            }
            set {
                this.refillsField = value;
            }
        }
        
        /// <remarks/>
        public string Substitutions {
            get {
                return this.substitutionsField;
            }
            set {
                this.substitutionsField = value;
            }
        }
        
        /// <remarks/>
        public DateType WrittenDate {
            get {
                return this.writtenDateField;
            }
            set {
                this.writtenDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType LastFillDate {
            get {
                return this.lastFillDateField;
            }
            set {
                this.lastFillDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType ExpirationDate {
            get {
                return this.expirationDateField;
            }
            set {
                this.expirationDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType EffectiveDate {
            get {
                return this.effectiveDateField;
            }
            set {
                this.effectiveDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType PeriodEnd {
            get {
                return this.periodEndField;
            }
            set {
                this.periodEndField = value;
            }
        }
        
        /// <remarks/>
        public DateType DeliveredOnDate {
            get {
                return this.deliveredOnDateField;
            }
            set {
                this.deliveredOnDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateValidated {
            get {
                return this.dateValidatedField;
            }
            set {
                this.dateValidatedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Diagnosis")]
        public Diagnosis[] Diagnosis {
            get {
                return this.diagnosisField;
            }
            set {
                this.diagnosisField = value;
            }
        }
        
        /// <remarks/>
        public PriorAuthorizationType PriorAuthorization {
            get {
                return this.priorAuthorizationField;
            }
            set {
                this.priorAuthorizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugUseEvaluation")]
        public DrugUseEvaluationType[] DrugUseEvaluation {
            get {
                return this.drugUseEvaluationField;
            }
            set {
                this.drugUseEvaluationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugCoverageStatusCode")]
        public string[] DrugCoverageStatusCode {
            get {
                return this.drugCoverageStatusCodeField;
            }
            set {
                this.drugCoverageStatusCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PriorAuthorizationStatus {
            get {
                return this.priorAuthorizationStatusField;
            }
            set {
                this.priorAuthorizationStatusField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("StructuredSIG")]
        public SIGType[] StructuredSIG {
            get {
                return this.structuredSIGField;
            }
            set {
                this.structuredSIGField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class RxChangeResponseMedicationTypeRefills {
        
        private string qualifierField;
        
        private string valueField;
        
        /// <remarks/>
        public string Qualifier {
            get {
                return this.qualifierField;
            }
            set {
                this.qualifierField = value;
            }
        }
        
        /// <remarks/>
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class ChangeResponseType {
        
        private object itemField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Approved", typeof(ApprovedType))]
        [System.Xml.Serialization.XmlElementAttribute("ApprovedWithChanges", typeof(ApprovedWithChangesType))]
        [System.Xml.Serialization.XmlElementAttribute("Denied", typeof(DeniedType))]
        public object Item {
            get {
                return this.itemField;
            }
            set {
                this.itemField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class ApprovedWithChangesType {
        
        private string[] denialReasonCodeField;
        
        private string referenceNumberField;
        
        private string noteField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DenialReasonCode")]
        public string[] DenialReasonCode {
            get {
                return this.denialReasonCodeField;
            }
            set {
                this.denialReasonCodeField = value;
            }
        }
        
        /// <remarks/>
        public string ReferenceNumber {
            get {
                return this.referenceNumberField;
            }
            set {
                this.referenceNumberField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class RxChangeDispensedMedicationType {
        
        private string drugDescriptionField;
        
        private DrugCodedType drugCodedField;
        
        private QuantityType quantityField;
        
        private string daysSupplyField;
        
        private string directionsField;
        
        private string noteField;
        
        private RxChangeDispensedMedicationTypeRefills refillsField;
        
        private string substitutionsField;
        
        private DateType writtenDateField;
        
        private DateType lastFillDateField;
        
        private DateType expirationDateField;
        
        private DateType effectiveDateField;
        
        private DateType periodEndField;
        
        private DateType deliveredOnDateField;
        
        private DateType dateValidatedField;
        
        private Diagnosis[] diagnosisField;
        
        private PriorAuthorizationType priorAuthorizationField;
        
        private DrugUseEvaluationType[] drugUseEvaluationField;
        
        private string[] drugCoverageStatusCodeField;
        
        private string priorAuthorizationStatusField;
        
        private SIGType[] structuredSIGField;
        
        /// <remarks/>
        public string DrugDescription {
            get {
                return this.drugDescriptionField;
            }
            set {
                this.drugDescriptionField = value;
            }
        }
        
        /// <remarks/>
        public DrugCodedType DrugCoded {
            get {
                return this.drugCodedField;
            }
            set {
                this.drugCodedField = value;
            }
        }
        
        /// <remarks/>
        public QuantityType Quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        public string DaysSupply {
            get {
                return this.daysSupplyField;
            }
            set {
                this.daysSupplyField = value;
            }
        }
        
        /// <remarks/>
        public string Directions {
            get {
                return this.directionsField;
            }
            set {
                this.directionsField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
        
        /// <remarks/>
        public RxChangeDispensedMedicationTypeRefills Refills {
            get {
                return this.refillsField;
            }
            set {
                this.refillsField = value;
            }
        }
        
        /// <remarks/>
        public string Substitutions {
            get {
                return this.substitutionsField;
            }
            set {
                this.substitutionsField = value;
            }
        }
        
        /// <remarks/>
        public DateType WrittenDate {
            get {
                return this.writtenDateField;
            }
            set {
                this.writtenDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType LastFillDate {
            get {
                return this.lastFillDateField;
            }
            set {
                this.lastFillDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType ExpirationDate {
            get {
                return this.expirationDateField;
            }
            set {
                this.expirationDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType EffectiveDate {
            get {
                return this.effectiveDateField;
            }
            set {
                this.effectiveDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType PeriodEnd {
            get {
                return this.periodEndField;
            }
            set {
                this.periodEndField = value;
            }
        }
        
        /// <remarks/>
        public DateType DeliveredOnDate {
            get {
                return this.deliveredOnDateField;
            }
            set {
                this.deliveredOnDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateValidated {
            get {
                return this.dateValidatedField;
            }
            set {
                this.dateValidatedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Diagnosis")]
        public Diagnosis[] Diagnosis {
            get {
                return this.diagnosisField;
            }
            set {
                this.diagnosisField = value;
            }
        }
        
        /// <remarks/>
        public PriorAuthorizationType PriorAuthorization {
            get {
                return this.priorAuthorizationField;
            }
            set {
                this.priorAuthorizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugUseEvaluation")]
        public DrugUseEvaluationType[] DrugUseEvaluation {
            get {
                return this.drugUseEvaluationField;
            }
            set {
                this.drugUseEvaluationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugCoverageStatusCode")]
        public string[] DrugCoverageStatusCode {
            get {
                return this.drugCoverageStatusCodeField;
            }
            set {
                this.drugCoverageStatusCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PriorAuthorizationStatus {
            get {
                return this.priorAuthorizationStatusField;
            }
            set {
                this.priorAuthorizationStatusField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("StructuredSIG")]
        public SIGType[] StructuredSIG {
            get {
                return this.structuredSIGField;
            }
            set {
                this.structuredSIGField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class RxChangeDispensedMedicationTypeRefills {
        
        private string qualifierField;
        
        private string valueField;
        
        /// <remarks/>
        public string Qualifier {
            get {
                return this.qualifierField;
            }
            set {
                this.qualifierField = value;
            }
        }
        
        /// <remarks/>
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class RxChangePrescribedMedicationType {
        
        private string drugDescriptionField;
        
        private DrugCodedType drugCodedField;
        
        private QuantityType quantityField;
        
        private string daysSupplyField;
        
        private string directionsField;
        
        private string noteField;
        
        private RxChangePrescribedMedicationTypeRefills refillsField;
        
        private string substitutionsField;
        
        private DateType writtenDateField;
        
        private DateType lastFillDateField;
        
        private DateType expirationDateField;
        
        private DateType effectiveDateField;
        
        private DateType periodEndField;
        
        private DateType deliveredOnDateField;
        
        private DateType dateValidatedField;
        
        private Diagnosis[] diagnosisField;
        
        private PriorAuthorizationType priorAuthorizationField;
        
        private DrugUseEvaluationType[] drugUseEvaluationField;
        
        private string[] drugCoverageStatusCodeField;
        
        private string priorAuthorizationStatusField;
        
        private SIGType[] structuredSIGField;
        
        /// <remarks/>
        public string DrugDescription {
            get {
                return this.drugDescriptionField;
            }
            set {
                this.drugDescriptionField = value;
            }
        }
        
        /// <remarks/>
        public DrugCodedType DrugCoded {
            get {
                return this.drugCodedField;
            }
            set {
                this.drugCodedField = value;
            }
        }
        
        /// <remarks/>
        public QuantityType Quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        public string DaysSupply {
            get {
                return this.daysSupplyField;
            }
            set {
                this.daysSupplyField = value;
            }
        }
        
        /// <remarks/>
        public string Directions {
            get {
                return this.directionsField;
            }
            set {
                this.directionsField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
        
        /// <remarks/>
        public RxChangePrescribedMedicationTypeRefills Refills {
            get {
                return this.refillsField;
            }
            set {
                this.refillsField = value;
            }
        }
        
        /// <remarks/>
        public string Substitutions {
            get {
                return this.substitutionsField;
            }
            set {
                this.substitutionsField = value;
            }
        }
        
        /// <remarks/>
        public DateType WrittenDate {
            get {
                return this.writtenDateField;
            }
            set {
                this.writtenDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType LastFillDate {
            get {
                return this.lastFillDateField;
            }
            set {
                this.lastFillDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType ExpirationDate {
            get {
                return this.expirationDateField;
            }
            set {
                this.expirationDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType EffectiveDate {
            get {
                return this.effectiveDateField;
            }
            set {
                this.effectiveDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType PeriodEnd {
            get {
                return this.periodEndField;
            }
            set {
                this.periodEndField = value;
            }
        }
        
        /// <remarks/>
        public DateType DeliveredOnDate {
            get {
                return this.deliveredOnDateField;
            }
            set {
                this.deliveredOnDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateValidated {
            get {
                return this.dateValidatedField;
            }
            set {
                this.dateValidatedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Diagnosis")]
        public Diagnosis[] Diagnosis {
            get {
                return this.diagnosisField;
            }
            set {
                this.diagnosisField = value;
            }
        }
        
        /// <remarks/>
        public PriorAuthorizationType PriorAuthorization {
            get {
                return this.priorAuthorizationField;
            }
            set {
                this.priorAuthorizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugUseEvaluation")]
        public DrugUseEvaluationType[] DrugUseEvaluation {
            get {
                return this.drugUseEvaluationField;
            }
            set {
                this.drugUseEvaluationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugCoverageStatusCode")]
        public string[] DrugCoverageStatusCode {
            get {
                return this.drugCoverageStatusCodeField;
            }
            set {
                this.drugCoverageStatusCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PriorAuthorizationStatus {
            get {
                return this.priorAuthorizationStatusField;
            }
            set {
                this.priorAuthorizationStatusField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("StructuredSIG")]
        public SIGType[] StructuredSIG {
            get {
                return this.structuredSIGField;
            }
            set {
                this.structuredSIGField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class RxChangePrescribedMedicationTypeRefills {
        
        private string qualifierField;
        
        private string valueField;
        
        /// <remarks/>
        public string Qualifier {
            get {
                return this.qualifierField;
            }
            set {
                this.qualifierField = value;
            }
        }
        
        /// <remarks/>
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class RxChangeRequestPharmacyType {
        
        private MandatoryProviderIDType identificationField;
        
        private string specialtyField;
        
        private NameType pharmacistField;
        
        private string storeNameField;
        
        private AddressType addressField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public MandatoryProviderIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public string Specialty {
            get {
                return this.specialtyField;
            }
            set {
                this.specialtyField = value;
            }
        }
        
        /// <remarks/>
        public NameType Pharmacist {
            get {
                return this.pharmacistField;
            }
            set {
                this.pharmacistField = value;
            }
        }
        
        /// <remarks/>
        public string StoreName {
            get {
                return this.storeNameField;
            }
            set {
                this.storeNameField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class RequestType {
        
        private string changeRequestTypeField;
        
        private string returnReceiptField;
        
        private string requestReferenceNumberField;
        
        /// <remarks/>
        public string ChangeRequestType {
            get {
                return this.changeRequestTypeField;
            }
            set {
                this.changeRequestTypeField = value;
            }
        }
        
        /// <remarks/>
        public string ReturnReceipt {
            get {
                return this.returnReceiptField;
            }
            set {
                this.returnReceiptField = value;
            }
        }
        
        /// <remarks/>
        public string RequestReferenceNumber {
            get {
                return this.requestReferenceNumberField;
            }
            set {
                this.requestReferenceNumberField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class RefillResponseDispensedMedicationType {
        
        private string drugDescriptionField;
        
        private DrugCodedType drugCodedField;
        
        private QuantityType quantityField;
        
        private string daysSupplyField;
        
        private string directionsField;
        
        private string noteField;
        
        private RefillResponseDispensedMedicationTypeRefills refillsField;
        
        private string substitutionsField;
        
        private DateType writtenDateField;
        
        private DateType lastFillDateField;
        
        private DateType expirationDateField;
        
        private DateType effectiveDateField;
        
        private DateType periodEndField;
        
        private DateType deliveredOnDateField;
        
        private DateType dateValidatedField;
        
        private Diagnosis[] diagnosisField;
        
        private PriorAuthorizationType priorAuthorizationField;
        
        private DrugUseEvaluationType[] drugUseEvaluationField;
        
        private string[] drugCoverageStatusCodeField;
        
        private string priorAuthorizationStatusField;
        
        private SIGType[] structuredSIGField;
        
        /// <remarks/>
        public string DrugDescription {
            get {
                return this.drugDescriptionField;
            }
            set {
                this.drugDescriptionField = value;
            }
        }
        
        /// <remarks/>
        public DrugCodedType DrugCoded {
            get {
                return this.drugCodedField;
            }
            set {
                this.drugCodedField = value;
            }
        }
        
        /// <remarks/>
        public QuantityType Quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        public string DaysSupply {
            get {
                return this.daysSupplyField;
            }
            set {
                this.daysSupplyField = value;
            }
        }
        
        /// <remarks/>
        public string Directions {
            get {
                return this.directionsField;
            }
            set {
                this.directionsField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
        
        /// <remarks/>
        public RefillResponseDispensedMedicationTypeRefills Refills {
            get {
                return this.refillsField;
            }
            set {
                this.refillsField = value;
            }
        }
        
        /// <remarks/>
        public string Substitutions {
            get {
                return this.substitutionsField;
            }
            set {
                this.substitutionsField = value;
            }
        }
        
        /// <remarks/>
        public DateType WrittenDate {
            get {
                return this.writtenDateField;
            }
            set {
                this.writtenDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType LastFillDate {
            get {
                return this.lastFillDateField;
            }
            set {
                this.lastFillDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType ExpirationDate {
            get {
                return this.expirationDateField;
            }
            set {
                this.expirationDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType EffectiveDate {
            get {
                return this.effectiveDateField;
            }
            set {
                this.effectiveDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType PeriodEnd {
            get {
                return this.periodEndField;
            }
            set {
                this.periodEndField = value;
            }
        }
        
        /// <remarks/>
        public DateType DeliveredOnDate {
            get {
                return this.deliveredOnDateField;
            }
            set {
                this.deliveredOnDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateValidated {
            get {
                return this.dateValidatedField;
            }
            set {
                this.dateValidatedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Diagnosis")]
        public Diagnosis[] Diagnosis {
            get {
                return this.diagnosisField;
            }
            set {
                this.diagnosisField = value;
            }
        }
        
        /// <remarks/>
        public PriorAuthorizationType PriorAuthorization {
            get {
                return this.priorAuthorizationField;
            }
            set {
                this.priorAuthorizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugUseEvaluation")]
        public DrugUseEvaluationType[] DrugUseEvaluation {
            get {
                return this.drugUseEvaluationField;
            }
            set {
                this.drugUseEvaluationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugCoverageStatusCode")]
        public string[] DrugCoverageStatusCode {
            get {
                return this.drugCoverageStatusCodeField;
            }
            set {
                this.drugCoverageStatusCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PriorAuthorizationStatus {
            get {
                return this.priorAuthorizationStatusField;
            }
            set {
                this.priorAuthorizationStatusField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("StructuredSIG")]
        public SIGType[] StructuredSIG {
            get {
                return this.structuredSIGField;
            }
            set {
                this.structuredSIGField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class RefillResponseDispensedMedicationTypeRefills {
        
        private string qualifierField;
        
        private string valueField;
        
        /// <remarks/>
        public string Qualifier {
            get {
                return this.qualifierField;
            }
            set {
                this.qualifierField = value;
            }
        }
        
        /// <remarks/>
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class RefillResponsePrescribedMedicationType {
        
        private string drugDescriptionField;
        
        private DrugCodedType drugCodedField;
        
        private QuantityType quantityField;
        
        private string daysSupplyField;
        
        private string directionsField;
        
        private string noteField;
        
        private RefillResponsePrescribedMedicationTypeRefills refillsField;
        
        private string substitutionsField;
        
        private DateType writtenDateField;
        
        private DateType lastFillDateField;
        
        private DateType expirationDateField;
        
        private DateType effectiveDateField;
        
        private DateType periodEndField;
        
        private DateType deliveredOnDateField;
        
        private DateType dateValidatedField;
        
        private Diagnosis[] diagnosisField;
        
        private PriorAuthorizationType priorAuthorizationField;
        
        private DrugUseEvaluationType[] drugUseEvaluationField;
        
        private string[] drugCoverageStatusCodeField;
        
        private string priorAuthorizationStatusField;
        
        private SIGType[] structuredSIGField;
        
        /// <remarks/>
        public string DrugDescription {
            get {
                return this.drugDescriptionField;
            }
            set {
                this.drugDescriptionField = value;
            }
        }
        
        /// <remarks/>
        public DrugCodedType DrugCoded {
            get {
                return this.drugCodedField;
            }
            set {
                this.drugCodedField = value;
            }
        }
        
        /// <remarks/>
        public QuantityType Quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        public string DaysSupply {
            get {
                return this.daysSupplyField;
            }
            set {
                this.daysSupplyField = value;
            }
        }
        
        /// <remarks/>
        public string Directions {
            get {
                return this.directionsField;
            }
            set {
                this.directionsField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
        
        /// <remarks/>
        public RefillResponsePrescribedMedicationTypeRefills Refills {
            get {
                return this.refillsField;
            }
            set {
                this.refillsField = value;
            }
        }
        
        /// <remarks/>
        public string Substitutions {
            get {
                return this.substitutionsField;
            }
            set {
                this.substitutionsField = value;
            }
        }
        
        /// <remarks/>
        public DateType WrittenDate {
            get {
                return this.writtenDateField;
            }
            set {
                this.writtenDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType LastFillDate {
            get {
                return this.lastFillDateField;
            }
            set {
                this.lastFillDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType ExpirationDate {
            get {
                return this.expirationDateField;
            }
            set {
                this.expirationDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType EffectiveDate {
            get {
                return this.effectiveDateField;
            }
            set {
                this.effectiveDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType PeriodEnd {
            get {
                return this.periodEndField;
            }
            set {
                this.periodEndField = value;
            }
        }
        
        /// <remarks/>
        public DateType DeliveredOnDate {
            get {
                return this.deliveredOnDateField;
            }
            set {
                this.deliveredOnDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateValidated {
            get {
                return this.dateValidatedField;
            }
            set {
                this.dateValidatedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Diagnosis")]
        public Diagnosis[] Diagnosis {
            get {
                return this.diagnosisField;
            }
            set {
                this.diagnosisField = value;
            }
        }
        
        /// <remarks/>
        public PriorAuthorizationType PriorAuthorization {
            get {
                return this.priorAuthorizationField;
            }
            set {
                this.priorAuthorizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugUseEvaluation")]
        public DrugUseEvaluationType[] DrugUseEvaluation {
            get {
                return this.drugUseEvaluationField;
            }
            set {
                this.drugUseEvaluationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugCoverageStatusCode")]
        public string[] DrugCoverageStatusCode {
            get {
                return this.drugCoverageStatusCodeField;
            }
            set {
                this.drugCoverageStatusCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PriorAuthorizationStatus {
            get {
                return this.priorAuthorizationStatusField;
            }
            set {
                this.priorAuthorizationStatusField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("StructuredSIG")]
        public SIGType[] StructuredSIG {
            get {
                return this.structuredSIGField;
            }
            set {
                this.structuredSIGField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class RefillResponsePrescribedMedicationTypeRefills {
        
        private string qualifierField;
        
        private string valueField;
        
        /// <remarks/>
        public string Qualifier {
            get {
                return this.qualifierField;
            }
            set {
                this.qualifierField = value;
            }
        }
        
        /// <remarks/>
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class SupervisorType {
        
        private MandatoryProviderIDType identificationField;
        
        private string specialtyField;
        
        private MandatoryNameType nameField;
        
        private string clinicNameField;
        
        private AddressType addressField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public MandatoryProviderIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public string Specialty {
            get {
                return this.specialtyField;
            }
            set {
                this.specialtyField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryNameType Name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public string ClinicName {
            get {
                return this.clinicNameField;
            }
            set {
                this.clinicNameField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class PrescriberType {
        
        private MandatoryProviderIDType identificationField;
        
        private string specialtyField;
        
        private string clinicNameField;
        
        private MandatoryNameType nameField;
        
        private AddressType addressField;
        
        private NameType prescriberAgentField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public MandatoryProviderIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public string Specialty {
            get {
                return this.specialtyField;
            }
            set {
                this.specialtyField = value;
            }
        }
        
        /// <remarks/>
        public string ClinicName {
            get {
                return this.clinicNameField;
            }
            set {
                this.clinicNameField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryNameType Name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        public NameType PrescriberAgent {
            get {
                return this.prescriberAgentField;
            }
            set {
                this.prescriberAgentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class PharmacyType {
        
        private MandatoryProviderIDType identificationField;
        
        private string specialtyField;
        
        private NameType pharmacistField;
        
        private string storeNameField;
        
        private AddressType addressField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public MandatoryProviderIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public string Specialty {
            get {
                return this.specialtyField;
            }
            set {
                this.specialtyField = value;
            }
        }
        
        /// <remarks/>
        public NameType Pharmacist {
            get {
                return this.pharmacistField;
            }
            set {
                this.pharmacistField = value;
            }
        }
        
        /// <remarks/>
        public string StoreName {
            get {
                return this.storeNameField;
            }
            set {
                this.storeNameField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class DeniedNewRxToFollowType {
        
        private string[] denialReasonCodeField;
        
        private string referenceNumberField;
        
        private string denialReasonField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DenialReasonCode")]
        public string[] DenialReasonCode {
            get {
                return this.denialReasonCodeField;
            }
            set {
                this.denialReasonCodeField = value;
            }
        }
        
        /// <remarks/>
        public string ReferenceNumber {
            get {
                return this.referenceNumberField;
            }
            set {
                this.referenceNumberField = value;
            }
        }
        
        /// <remarks/>
        public string DenialReason {
            get {
                return this.denialReasonField;
            }
            set {
                this.denialReasonField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class ResponseType {
        
        private object itemField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Approved", typeof(ApprovedType))]
        [System.Xml.Serialization.XmlElementAttribute("ApprovedWithChanges", typeof(ApprovedWithChangesType))]
        [System.Xml.Serialization.XmlElementAttribute("Denied", typeof(DeniedType))]
        [System.Xml.Serialization.XmlElementAttribute("DeniedNewPrescriptionToFollow", typeof(DeniedNewRxToFollowType))]
        public object Item {
            get {
                return this.itemField;
            }
            set {
                this.itemField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class RefillRequestDispensedMedicationType {
        
        private string drugDescriptionField;
        
        private DrugCodedType drugCodedField;
        
        private QuantityType quantityField;
        
        private string daysSupplyField;
        
        private string directionsField;
        
        private string noteField;
        
        private RefillRequestDispensedMedicationTypeRefills refillsField;
        
        private string substitutionsField;
        
        private DateType writtenDateField;
        
        private DateType lastFillDateField;
        
        private DateType expirationDateField;
        
        private DateType effectiveDateField;
        
        private DateType periodEndField;
        
        private DateType deliveredOnDateField;
        
        private DateType dateValidatedField;
        
        private DateType soldDateField;
        
        private Diagnosis[] diagnosisField;
        
        private PriorAuthorizationType priorAuthorizationField;
        
        private DrugUseEvaluationType[] drugUseEvaluationField;
        
        private string[] drugCoverageStatusCodeField;
        
        private string priorAuthorizationStatusField;
        
        private SIGType[] structuredSIGField;
        
        /// <remarks/>
        public string DrugDescription {
            get {
                return this.drugDescriptionField;
            }
            set {
                this.drugDescriptionField = value;
            }
        }
        
        /// <remarks/>
        public DrugCodedType DrugCoded {
            get {
                return this.drugCodedField;
            }
            set {
                this.drugCodedField = value;
            }
        }
        
        /// <remarks/>
        public QuantityType Quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        public string DaysSupply {
            get {
                return this.daysSupplyField;
            }
            set {
                this.daysSupplyField = value;
            }
        }
        
        /// <remarks/>
        public string Directions {
            get {
                return this.directionsField;
            }
            set {
                this.directionsField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
        
        /// <remarks/>
        public RefillRequestDispensedMedicationTypeRefills Refills {
            get {
                return this.refillsField;
            }
            set {
                this.refillsField = value;
            }
        }
        
        /// <remarks/>
        public string Substitutions {
            get {
                return this.substitutionsField;
            }
            set {
                this.substitutionsField = value;
            }
        }
        
        /// <remarks/>
        public DateType WrittenDate {
            get {
                return this.writtenDateField;
            }
            set {
                this.writtenDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType LastFillDate {
            get {
                return this.lastFillDateField;
            }
            set {
                this.lastFillDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType ExpirationDate {
            get {
                return this.expirationDateField;
            }
            set {
                this.expirationDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType EffectiveDate {
            get {
                return this.effectiveDateField;
            }
            set {
                this.effectiveDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType PeriodEnd {
            get {
                return this.periodEndField;
            }
            set {
                this.periodEndField = value;
            }
        }
        
        /// <remarks/>
        public DateType DeliveredOnDate {
            get {
                return this.deliveredOnDateField;
            }
            set {
                this.deliveredOnDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateValidated {
            get {
                return this.dateValidatedField;
            }
            set {
                this.dateValidatedField = value;
            }
        }
        
        /// <remarks/>
        public DateType SoldDate {
            get {
                return this.soldDateField;
            }
            set {
                this.soldDateField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Diagnosis")]
        public Diagnosis[] Diagnosis {
            get {
                return this.diagnosisField;
            }
            set {
                this.diagnosisField = value;
            }
        }
        
        /// <remarks/>
        public PriorAuthorizationType PriorAuthorization {
            get {
                return this.priorAuthorizationField;
            }
            set {
                this.priorAuthorizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugUseEvaluation")]
        public DrugUseEvaluationType[] DrugUseEvaluation {
            get {
                return this.drugUseEvaluationField;
            }
            set {
                this.drugUseEvaluationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugCoverageStatusCode")]
        public string[] DrugCoverageStatusCode {
            get {
                return this.drugCoverageStatusCodeField;
            }
            set {
                this.drugCoverageStatusCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PriorAuthorizationStatus {
            get {
                return this.priorAuthorizationStatusField;
            }
            set {
                this.priorAuthorizationStatusField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("StructuredSIG")]
        public SIGType[] StructuredSIG {
            get {
                return this.structuredSIGField;
            }
            set {
                this.structuredSIGField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class RefillRequestDispensedMedicationTypeRefills {
        
        private string qualifierField;
        
        private string valueField;
        
        /// <remarks/>
        public string Qualifier {
            get {
                return this.qualifierField;
            }
            set {
                this.qualifierField = value;
            }
        }
        
        /// <remarks/>
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class RefillRequestPrescribedMedicationType {
        
        private string drugDescriptionField;
        
        private DrugCodedType drugCodedField;
        
        private QuantityType quantityField;
        
        private string daysSupplyField;
        
        private string directionsField;
        
        private string noteField;
        
        private RefillRequestPrescribedMedicationTypeRefills refillsField;
        
        private string substitutionsField;
        
        private DateType writtenDateField;
        
        private DateType lastFillDateField;
        
        private DateType expirationDateField;
        
        private DateType effectiveDateField;
        
        private DateType periodEndField;
        
        private DateType deliveredOnDateField;
        
        private DateType dateValidatedField;
        
        private Diagnosis[] diagnosisField;
        
        private PriorAuthorizationType priorAuthorizationField;
        
        private DrugUseEvaluationType[] drugUseEvaluationField;
        
        private string[] drugCoverageStatusCodeField;
        
        private string priorAuthorizationStatusField;
        
        private SIGType[] structuredSIGField;
        
        /// <remarks/>
        public string DrugDescription {
            get {
                return this.drugDescriptionField;
            }
            set {
                this.drugDescriptionField = value;
            }
        }
        
        /// <remarks/>
        public DrugCodedType DrugCoded {
            get {
                return this.drugCodedField;
            }
            set {
                this.drugCodedField = value;
            }
        }
        
        /// <remarks/>
        public QuantityType Quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        public string DaysSupply {
            get {
                return this.daysSupplyField;
            }
            set {
                this.daysSupplyField = value;
            }
        }
        
        /// <remarks/>
        public string Directions {
            get {
                return this.directionsField;
            }
            set {
                this.directionsField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
        
        /// <remarks/>
        public RefillRequestPrescribedMedicationTypeRefills Refills {
            get {
                return this.refillsField;
            }
            set {
                this.refillsField = value;
            }
        }
        
        /// <remarks/>
        public string Substitutions {
            get {
                return this.substitutionsField;
            }
            set {
                this.substitutionsField = value;
            }
        }
        
        /// <remarks/>
        public DateType WrittenDate {
            get {
                return this.writtenDateField;
            }
            set {
                this.writtenDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType LastFillDate {
            get {
                return this.lastFillDateField;
            }
            set {
                this.lastFillDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType ExpirationDate {
            get {
                return this.expirationDateField;
            }
            set {
                this.expirationDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType EffectiveDate {
            get {
                return this.effectiveDateField;
            }
            set {
                this.effectiveDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType PeriodEnd {
            get {
                return this.periodEndField;
            }
            set {
                this.periodEndField = value;
            }
        }
        
        /// <remarks/>
        public DateType DeliveredOnDate {
            get {
                return this.deliveredOnDateField;
            }
            set {
                this.deliveredOnDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateValidated {
            get {
                return this.dateValidatedField;
            }
            set {
                this.dateValidatedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Diagnosis")]
        public Diagnosis[] Diagnosis {
            get {
                return this.diagnosisField;
            }
            set {
                this.diagnosisField = value;
            }
        }
        
        /// <remarks/>
        public PriorAuthorizationType PriorAuthorization {
            get {
                return this.priorAuthorizationField;
            }
            set {
                this.priorAuthorizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugUseEvaluation")]
        public DrugUseEvaluationType[] DrugUseEvaluation {
            get {
                return this.drugUseEvaluationField;
            }
            set {
                this.drugUseEvaluationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugCoverageStatusCode")]
        public string[] DrugCoverageStatusCode {
            get {
                return this.drugCoverageStatusCodeField;
            }
            set {
                this.drugCoverageStatusCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PriorAuthorizationStatus {
            get {
                return this.priorAuthorizationStatusField;
            }
            set {
                this.priorAuthorizationStatusField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("StructuredSIG")]
        public SIGType[] StructuredSIG {
            get {
                return this.structuredSIGField;
            }
            set {
                this.structuredSIGField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class RefillRequestPrescribedMedicationTypeRefills {
        
        private string qualifierField;
        
        private string valueField;
        
        /// <remarks/>
        public string Qualifier {
            get {
                return this.qualifierField;
            }
            set {
                this.qualifierField = value;
            }
        }
        
        /// <remarks/>
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class SupervisorTypeRefillRequest {
        
        private MandatoryProviderIDType identificationField;
        
        private string specialtyField;
        
        private NameType nameField;
        
        private string clinicNameField;
        
        private AddressType addressField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public MandatoryProviderIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public string Specialty {
            get {
                return this.specialtyField;
            }
            set {
                this.specialtyField = value;
            }
        }
        
        /// <remarks/>
        public NameType Name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public string ClinicName {
            get {
                return this.clinicNameField;
            }
            set {
                this.clinicNameField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class PrescriberTypeRefillRequest {
        
        private MandatoryProviderIDType identificationField;
        
        private string specialtyField;
        
        private string clinicNameField;
        
        private NameType nameField;
        
        private AddressType addressField;
        
        private NameType prescriberAgentField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public MandatoryProviderIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public string Specialty {
            get {
                return this.specialtyField;
            }
            set {
                this.specialtyField = value;
            }
        }
        
        /// <remarks/>
        public string ClinicName {
            get {
                return this.clinicNameField;
            }
            set {
                this.clinicNameField = value;
            }
        }
        
        /// <remarks/>
        public NameType Name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        public NameType PrescriberAgent {
            get {
                return this.prescriberAgentField;
            }
            set {
                this.prescriberAgentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class MandatoryAddressPharmacyType {
        
        private MandatoryProviderIDType identificationField;
        
        private string specialtyField;
        
        private NameType pharmacistField;
        
        private string storeNameField;
        
        private MandatoryAddressType addressField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public MandatoryProviderIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public string Specialty {
            get {
                return this.specialtyField;
            }
            set {
                this.specialtyField = value;
            }
        }
        
        /// <remarks/>
        public NameType Pharmacist {
            get {
                return this.pharmacistField;
            }
            set {
                this.pharmacistField = value;
            }
        }
        
        /// <remarks/>
        public string StoreName {
            get {
                return this.storeNameField;
            }
            set {
                this.storeNameField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryAddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class MandatoryAddressType {
        
        private string addressLine1Field;
        
        private string addressLine2Field;
        
        private string cityField;
        
        private string stateField;
        
        private string zipCodeField;
        
        private string placeLocationQualifierField;
        
        /// <remarks/>
        public string AddressLine1 {
            get {
                return this.addressLine1Field;
            }
            set {
                this.addressLine1Field = value;
            }
        }
        
        /// <remarks/>
        public string AddressLine2 {
            get {
                return this.addressLine2Field;
            }
            set {
                this.addressLine2Field = value;
            }
        }
        
        /// <remarks/>
        public string City {
            get {
                return this.cityField;
            }
            set {
                this.cityField = value;
            }
        }
        
        /// <remarks/>
        public string State {
            get {
                return this.stateField;
            }
            set {
                this.stateField = value;
            }
        }
        
        /// <remarks/>
        public string ZipCode {
            get {
                return this.zipCodeField;
            }
            set {
                this.zipCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PlaceLocationQualifier {
            get {
                return this.placeLocationQualifierField;
            }
            set {
                this.placeLocationQualifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class ShortRequestType {
        
        private string returnReceiptField;
        
        private string requestReferenceNumberField;
        
        /// <remarks/>
        public string ReturnReceipt {
            get {
                return this.returnReceiptField;
            }
            set {
                this.returnReceiptField = value;
            }
        }
        
        /// <remarks/>
        public string RequestReferenceNumber {
            get {
                return this.requestReferenceNumberField;
            }
            set {
                this.requestReferenceNumberField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class OptionalNameType {
        
        private string lastNameField;
        
        private string firstNameField;
        
        private string middleNameField;
        
        private string suffixField;
        
        private string prefixField;
        
        /// <remarks/>
        public string LastName {
            get {
                return this.lastNameField;
            }
            set {
                this.lastNameField = value;
            }
        }
        
        /// <remarks/>
        public string FirstName {
            get {
                return this.firstNameField;
            }
            set {
                this.firstNameField = value;
            }
        }
        
        /// <remarks/>
        public string MiddleName {
            get {
                return this.middleNameField;
            }
            set {
                this.middleNameField = value;
            }
        }
        
        /// <remarks/>
        public string Suffix {
            get {
                return this.suffixField;
            }
            set {
                this.suffixField = value;
            }
        }
        
        /// <remarks/>
        public string Prefix {
            get {
                return this.prefixField;
            }
            set {
                this.prefixField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class BenefitsCoordinationType {
        
        private PayerIDType payerIdentificationField;
        
        private string payerNameField;
        
        private string cardholderIDField;
        
        private OptionalNameType cardHolderNameField;
        
        private string groupIDField;
        
        /// <remarks/>
        public PayerIDType PayerIdentification {
            get {
                return this.payerIdentificationField;
            }
            set {
                this.payerIdentificationField = value;
            }
        }
        
        /// <remarks/>
        public string PayerName {
            get {
                return this.payerNameField;
            }
            set {
                this.payerNameField = value;
            }
        }
        
        /// <remarks/>
        public string CardholderID {
            get {
                return this.cardholderIDField;
            }
            set {
                this.cardholderIDField = value;
            }
        }
        
        /// <remarks/>
        public OptionalNameType CardHolderName {
            get {
                return this.cardHolderNameField;
            }
            set {
                this.cardHolderNameField = value;
            }
        }
        
        /// <remarks/>
        public string GroupID {
            get {
                return this.groupIDField;
            }
            set {
                this.groupIDField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class MeasurementType {
        
        private string dimensionField;
        
        private string valueField;
        
        private DateType observationDateField;
        
        private string measurementDataQualifierField;
        
        private string measurementSourceCodeField;
        
        private string measurementUnitCodeField;
        
        /// <remarks/>
        public string Dimension {
            get {
                return this.dimensionField;
            }
            set {
                this.dimensionField = value;
            }
        }
        
        /// <remarks/>
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
        
        /// <remarks/>
        public DateType ObservationDate {
            get {
                return this.observationDateField;
            }
            set {
                this.observationDateField = value;
            }
        }
        
        /// <remarks/>
        public string MeasurementDataQualifier {
            get {
                return this.measurementDataQualifierField;
            }
            set {
                this.measurementDataQualifierField = value;
            }
        }
        
        /// <remarks/>
        public string MeasurementSourceCode {
            get {
                return this.measurementSourceCodeField;
            }
            set {
                this.measurementSourceCodeField = value;
            }
        }
        
        /// <remarks/>
        public string MeasurementUnitCode {
            get {
                return this.measurementUnitCodeField;
            }
            set {
                this.measurementUnitCodeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class NewRxPrescribedMedicationType {
        
        private string drugDescriptionField;
        
        private DrugCodedType drugCodedField;
        
        private QuantityType quantityField;
        
        private string daysSupplyField;
        
        private string directionsField;
        
        private string noteField;
        
        private NewRxPrescribedMedicationTypeRefills refillsField;
        
        private string substitutionsField;
        
        private DateType writtenDateField;
        
        private DateType lastFillDateField;
        
        private DateType expirationDateField;
        
        private DateType effectiveDateField;
        
        private DateType periodEndField;
        
        private DateType deliveredOnDateField;
        
        private DateType dateValidatedField;
        
        private Diagnosis[] diagnosisField;
        
        private PriorAuthorizationType priorAuthorizationField;
        
        private DrugUseEvaluationType[] drugUseEvaluationField;
        
        private string[] drugCoverageStatusCodeField;
        
        private string priorAuthorizationStatusField;
        
        private string doNotFillField;
        
        private System.DateTime neededNoLaterThanField;
        
        private bool neededNoLaterThanFieldSpecified;
        
        private TimeZone timeZoneField;
        
        private string neededNoLaterThanReasonField;
        
        private SIGType[] structuredSIGField;
        
        /// <remarks/>
        public string DrugDescription {
            get {
                return this.drugDescriptionField;
            }
            set {
                this.drugDescriptionField = value;
            }
        }
        
        /// <remarks/>
        public DrugCodedType DrugCoded {
            get {
                return this.drugCodedField;
            }
            set {
                this.drugCodedField = value;
            }
        }
        
        /// <remarks/>
        public QuantityType Quantity {
            get {
                return this.quantityField;
            }
            set {
                this.quantityField = value;
            }
        }
        
        /// <remarks/>
        public string DaysSupply {
            get {
                return this.daysSupplyField;
            }
            set {
                this.daysSupplyField = value;
            }
        }
        
        /// <remarks/>
        public string Directions {
            get {
                return this.directionsField;
            }
            set {
                this.directionsField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
        
        /// <remarks/>
        public NewRxPrescribedMedicationTypeRefills Refills {
            get {
                return this.refillsField;
            }
            set {
                this.refillsField = value;
            }
        }
        
        /// <remarks/>
        public string Substitutions {
            get {
                return this.substitutionsField;
            }
            set {
                this.substitutionsField = value;
            }
        }
        
        /// <remarks/>
        public DateType WrittenDate {
            get {
                return this.writtenDateField;
            }
            set {
                this.writtenDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType LastFillDate {
            get {
                return this.lastFillDateField;
            }
            set {
                this.lastFillDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType ExpirationDate {
            get {
                return this.expirationDateField;
            }
            set {
                this.expirationDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType EffectiveDate {
            get {
                return this.effectiveDateField;
            }
            set {
                this.effectiveDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType PeriodEnd {
            get {
                return this.periodEndField;
            }
            set {
                this.periodEndField = value;
            }
        }
        
        /// <remarks/>
        public DateType DeliveredOnDate {
            get {
                return this.deliveredOnDateField;
            }
            set {
                this.deliveredOnDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateValidated {
            get {
                return this.dateValidatedField;
            }
            set {
                this.dateValidatedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Diagnosis")]
        public Diagnosis[] Diagnosis {
            get {
                return this.diagnosisField;
            }
            set {
                this.diagnosisField = value;
            }
        }
        
        /// <remarks/>
        public PriorAuthorizationType PriorAuthorization {
            get {
                return this.priorAuthorizationField;
            }
            set {
                this.priorAuthorizationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugUseEvaluation")]
        public DrugUseEvaluationType[] DrugUseEvaluation {
            get {
                return this.drugUseEvaluationField;
            }
            set {
                this.drugUseEvaluationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DrugCoverageStatusCode")]
        public string[] DrugCoverageStatusCode {
            get {
                return this.drugCoverageStatusCodeField;
            }
            set {
                this.drugCoverageStatusCodeField = value;
            }
        }
        
        /// <remarks/>
        public string PriorAuthorizationStatus {
            get {
                return this.priorAuthorizationStatusField;
            }
            set {
                this.priorAuthorizationStatusField = value;
            }
        }
        
        /// <remarks/>
        public string DoNotFill {
            get {
                return this.doNotFillField;
            }
            set {
                this.doNotFillField = value;
            }
        }
        
        /// <remarks/>
        public System.DateTime NeededNoLaterThan {
            get {
                return this.neededNoLaterThanField;
            }
            set {
                this.neededNoLaterThanField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool NeededNoLaterThanSpecified {
            get {
                return this.neededNoLaterThanFieldSpecified;
            }
            set {
                this.neededNoLaterThanFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        public TimeZone TimeZone {
            get {
                return this.timeZoneField;
            }
            set {
                this.timeZoneField = value;
            }
        }
        
        /// <remarks/>
        public string NeededNoLaterThanReason {
            get {
                return this.neededNoLaterThanReasonField;
            }
            set {
                this.neededNoLaterThanReasonField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("StructuredSIG")]
        public SIGType[] StructuredSIG {
            get {
                return this.structuredSIGField;
            }
            set {
                this.structuredSIGField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class NewRxPrescribedMedicationTypeRefills {
        
        private string qualifierField;
        
        private string valueField;
        
        /// <remarks/>
        public string Qualifier {
            get {
                return this.qualifierField;
            }
            set {
                this.qualifierField = value;
            }
        }
        
        /// <remarks/>
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class PatientType {
        
        private string patientRelationshipField;
        
        private PatientIDType identificationField;
        
        private MandatoryPatientNameType nameField;
        
        private string genderField;
        
        private DateType dateOfBirthField;
        
        private AddressType addressField;
        
        private CommunicationType[] communicationNumbersField;
        
        private PatientLocation patientLocationField;
        
        /// <remarks/>
        public string PatientRelationship {
            get {
                return this.patientRelationshipField;
            }
            set {
                this.patientRelationshipField = value;
            }
        }
        
        /// <remarks/>
        public PatientIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryPatientNameType Name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public string Gender {
            get {
                return this.genderField;
            }
            set {
                this.genderField = value;
            }
        }
        
        /// <remarks/>
        public DateType DateOfBirth {
            get {
                return this.dateOfBirthField;
            }
            set {
                this.dateOfBirthField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
        
        /// <remarks/>
        public PatientLocation PatientLocation {
            get {
                return this.patientLocationField;
            }
            set {
                this.patientLocationField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class MandatoryFaciltyType {
        
        private MandatoryProviderIDType identificationField;
        
        private string facilityNameField;
        
        private AddressType addressField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public MandatoryProviderIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public string FacilityName {
            get {
                return this.facilityNameField;
            }
            set {
                this.facilityNameField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class MandatorySupervisorType {
        
        private MandatoryProviderIDType identificationField;
        
        private string specialtyField;
        
        private MandatoryNameType nameField;
        
        private string clinicNameField;
        
        private MandatoryAddressType addressField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public MandatoryProviderIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public string Specialty {
            get {
                return this.specialtyField;
            }
            set {
                this.specialtyField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryNameType Name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public string ClinicName {
            get {
                return this.clinicNameField;
            }
            set {
                this.clinicNameField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryAddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class MandatoryPrescriberType {
        
        private MandatoryProviderIDType identificationField;
        
        private string specialtyField;
        
        private string clinicNameField;
        
        private MandatoryNameType nameField;
        
        private MandatoryAddressType addressField;
        
        private NameType prescriberAgentField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public MandatoryProviderIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public string Specialty {
            get {
                return this.specialtyField;
            }
            set {
                this.specialtyField = value;
            }
        }
        
        /// <remarks/>
        public string ClinicName {
            get {
                return this.clinicNameField;
            }
            set {
                this.clinicNameField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryNameType Name {
            get {
                return this.nameField;
            }
            set {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryAddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        public NameType PrescriberAgent {
            get {
                return this.prescriberAgentField;
            }
            set {
                this.prescriberAgentField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class MandatoryPharmacyType {
        
        private MandatoryProviderIDType identificationField;
        
        private string specialtyField;
        
        private NameType pharmacistField;
        
        private string storeNameField;
        
        private AddressType addressField;
        
        private CommunicationType[] communicationNumbersField;
        
        /// <remarks/>
        public MandatoryProviderIDType Identification {
            get {
                return this.identificationField;
            }
            set {
                this.identificationField = value;
            }
        }
        
        /// <remarks/>
        public string Specialty {
            get {
                return this.specialtyField;
            }
            set {
                this.specialtyField = value;
            }
        }
        
        /// <remarks/>
        public NameType Pharmacist {
            get {
                return this.pharmacistField;
            }
            set {
                this.pharmacistField = value;
            }
        }
        
        /// <remarks/>
        public string StoreName {
            get {
                return this.storeNameField;
            }
            set {
                this.storeNameField = value;
            }
        }
        
        /// <remarks/>
        public AddressType Address {
            get {
                return this.addressField;
            }
            set {
                this.addressField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute("Communication", IsNullable=false)]
        public CommunicationType[] CommunicationNumbers {
            get {
                return this.communicationNumbersField;
            }
            set {
                this.communicationNumbersField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class NewRxRequestType {
        
        private string changeRequestTypeField;
        
        private string returnReceiptField;
        
        private string requestReferenceNumberField;
        
        /// <remarks/>
        public string ChangeRequestType {
            get {
                return this.changeRequestTypeField;
            }
            set {
                this.changeRequestTypeField = value;
            }
        }
        
        /// <remarks/>
        public string ReturnReceipt {
            get {
                return this.returnReceiptField;
            }
            set {
                this.returnReceiptField = value;
            }
        }
        
        /// <remarks/>
        public string RequestReferenceNumber {
            get {
                return this.requestReferenceNumberField;
            }
            set {
                this.requestReferenceNumberField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class BodyType {
        
        private object itemField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("CancelRx", typeof(CancelRx))]
        [System.Xml.Serialization.XmlElementAttribute("CancelRxResponse", typeof(CancelRxResponse))]
        [System.Xml.Serialization.XmlElementAttribute("Census", typeof(Census))]
        [System.Xml.Serialization.XmlElementAttribute("Error", typeof(Error))]
        [System.Xml.Serialization.XmlElementAttribute("GetMessage", typeof(GetMessage))]
        [System.Xml.Serialization.XmlElementAttribute("NewRx", typeof(NewRx))]
        [System.Xml.Serialization.XmlElementAttribute("PasswordChange", typeof(PasswordChange))]
        [System.Xml.Serialization.XmlElementAttribute("RefillRequest", typeof(RefillRequest))]
        [System.Xml.Serialization.XmlElementAttribute("RefillResponse", typeof(RefillResponse))]
        [System.Xml.Serialization.XmlElementAttribute("Resupply", typeof(Resupply))]
        [System.Xml.Serialization.XmlElementAttribute("RxChangeRequest", typeof(RxChangeRequest))]
        [System.Xml.Serialization.XmlElementAttribute("RxChangeResponse", typeof(RxChangeResponse))]
        [System.Xml.Serialization.XmlElementAttribute("RxFill", typeof(RxFill))]
        [System.Xml.Serialization.XmlElementAttribute("RxHistoryRequest", typeof(RxHistoryRequest))]
        [System.Xml.Serialization.XmlElementAttribute("RxHistoryResponse", typeof(RxHistoryResponse))]
        [System.Xml.Serialization.XmlElementAttribute("Status", typeof(Status))]
        [System.Xml.Serialization.XmlElementAttribute("Verify", typeof(Verify))]
        public object Item {
            get {
                return this.itemField;
            }
            set {
                this.itemField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class CancelRx {
        
        private CancelRequestType requestField;
        
        private MandatoryPharmacyType pharmacyField;
        
        private CancelPrescriberType prescriberField;
        
        private CancelSupervisorType supervisorField;
        
        private MandatoryFaciltyType facilityField;
        
        private PatientType patientField;
        
        private PrescribedMedicationType medicationPrescribedField;
        
        /// <remarks/>
        public CancelRequestType Request {
            get {
                return this.requestField;
            }
            set {
                this.requestField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryPharmacyType Pharmacy {
            get {
                return this.pharmacyField;
            }
            set {
                this.pharmacyField = value;
            }
        }
        
        /// <remarks/>
        public CancelPrescriberType Prescriber {
            get {
                return this.prescriberField;
            }
            set {
                this.prescriberField = value;
            }
        }
        
        /// <remarks/>
        public CancelSupervisorType Supervisor {
            get {
                return this.supervisorField;
            }
            set {
                this.supervisorField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryFaciltyType Facility {
            get {
                return this.facilityField;
            }
            set {
                this.facilityField = value;
            }
        }
        
        /// <remarks/>
        public PatientType Patient {
            get {
                return this.patientField;
            }
            set {
                this.patientField = value;
            }
        }
        
        /// <remarks/>
        public PrescribedMedicationType MedicationPrescribed {
            get {
                return this.medicationPrescribedField;
            }
            set {
                this.medicationPrescribedField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class CancelRxResponse {
        
        private CancelRequestType requestField;
        
        private ChangeResponseType responseField;
        
        /// <remarks/>
        public CancelRequestType Request {
            get {
                return this.requestField;
            }
            set {
                this.requestField = value;
            }
        }
        
        /// <remarks/>
        public ChangeResponseType Response {
            get {
                return this.responseField;
            }
            set {
                this.responseField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class Census {
        
        private CensusRequestType requestField;
        
        private PrescriberRxFillType prescriberField;
        
        private MandatoryFaciltyType facilityField;
        
        private PatientType patientField;
        
        private CensusBenefitsCoordinationType[] benefitsCoordinationField;
        
        private AllergyType[] allergyField;
        
        private DiagnosisTypeGeneral[] diagnosisGeneralField;
        
        /// <remarks/>
        public CensusRequestType Request {
            get {
                return this.requestField;
            }
            set {
                this.requestField = value;
            }
        }
        
        /// <remarks/>
        public PrescriberRxFillType Prescriber {
            get {
                return this.prescriberField;
            }
            set {
                this.prescriberField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryFaciltyType Facility {
            get {
                return this.facilityField;
            }
            set {
                this.facilityField = value;
            }
        }
        
        /// <remarks/>
        public PatientType Patient {
            get {
                return this.patientField;
            }
            set {
                this.patientField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("BenefitsCoordination")]
        public CensusBenefitsCoordinationType[] BenefitsCoordination {
            get {
                return this.benefitsCoordinationField;
            }
            set {
                this.benefitsCoordinationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Allergy")]
        public AllergyType[] Allergy {
            get {
                return this.allergyField;
            }
            set {
                this.allergyField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DiagnosisGeneral")]
        public DiagnosisTypeGeneral[] DiagnosisGeneral {
            get {
                return this.diagnosisGeneralField;
            }
            set {
                this.diagnosisGeneralField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute("Allergy", Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class AllergyType {
        
        private string noKnownAllergiesField;
        
        private string sourceOfInformationField;
        
        private DateType effectiveDateField;
        
        private DateType expirationDateField;
        
        private AllergyTypeAdverseEvent adverseEventField;
        
        private AllergyTypeDrugProductCoded drugProductCodedField;
        
        private AllergyTypeReactionCoded reactionCodedField;
        
        private AllergyTypeSeverityCoded severityCodedField;
        
        /// <remarks/>
        public string NoKnownAllergies {
            get {
                return this.noKnownAllergiesField;
            }
            set {
                this.noKnownAllergiesField = value;
            }
        }
        
        /// <remarks/>
        public string SourceOfInformation {
            get {
                return this.sourceOfInformationField;
            }
            set {
                this.sourceOfInformationField = value;
            }
        }
        
        /// <remarks/>
        public DateType EffectiveDate {
            get {
                return this.effectiveDateField;
            }
            set {
                this.effectiveDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType ExpirationDate {
            get {
                return this.expirationDateField;
            }
            set {
                this.expirationDateField = value;
            }
        }
        
        /// <remarks/>
        public AllergyTypeAdverseEvent AdverseEvent {
            get {
                return this.adverseEventField;
            }
            set {
                this.adverseEventField = value;
            }
        }
        
        /// <remarks/>
        public AllergyTypeDrugProductCoded DrugProductCoded {
            get {
                return this.drugProductCodedField;
            }
            set {
                this.drugProductCodedField = value;
            }
        }
        
        /// <remarks/>
        public AllergyTypeReactionCoded ReactionCoded {
            get {
                return this.reactionCodedField;
            }
            set {
                this.reactionCodedField = value;
            }
        }
        
        /// <remarks/>
        public AllergyTypeSeverityCoded SeverityCoded {
            get {
                return this.severityCodedField;
            }
            set {
                this.severityCodedField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class AllergyTypeAdverseEvent {
        
        private string itemDescriptionLongField;
        
        private string itemNumberField;
        
        private string codeListQualifierField;
        
        /// <remarks/>
        public string ItemDescriptionLong {
            get {
                return this.itemDescriptionLongField;
            }
            set {
                this.itemDescriptionLongField = value;
            }
        }
        
        /// <remarks/>
        public string ItemNumber {
            get {
                return this.itemNumberField;
            }
            set {
                this.itemNumberField = value;
            }
        }
        
        /// <remarks/>
        public string CodeListQualifier {
            get {
                return this.codeListQualifierField;
            }
            set {
                this.codeListQualifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class AllergyTypeDrugProductCoded {
        
        private string itemDescriptionLongField;
        
        private string itemNumberField;
        
        private string codeListQualifierField;
        
        /// <remarks/>
        public string ItemDescriptionLong {
            get {
                return this.itemDescriptionLongField;
            }
            set {
                this.itemDescriptionLongField = value;
            }
        }
        
        /// <remarks/>
        public string ItemNumber {
            get {
                return this.itemNumberField;
            }
            set {
                this.itemNumberField = value;
            }
        }
        
        /// <remarks/>
        public string CodeListQualifier {
            get {
                return this.codeListQualifierField;
            }
            set {
                this.codeListQualifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class AllergyTypeReactionCoded {
        
        private string itemDescriptionLongField;
        
        private string itemNumberField;
        
        private string codeListQualifierField;
        
        /// <remarks/>
        public string ItemDescriptionLong {
            get {
                return this.itemDescriptionLongField;
            }
            set {
                this.itemDescriptionLongField = value;
            }
        }
        
        /// <remarks/>
        public string ItemNumber {
            get {
                return this.itemNumberField;
            }
            set {
                this.itemNumberField = value;
            }
        }
        
        /// <remarks/>
        public string CodeListQualifier {
            get {
                return this.codeListQualifierField;
            }
            set {
                this.codeListQualifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class AllergyTypeSeverityCoded {
        
        private string itemDescriptionLongField;
        
        private string itemNumberField;
        
        private string codeListQualifierField;
        
        /// <remarks/>
        public string ItemDescriptionLong {
            get {
                return this.itemDescriptionLongField;
            }
            set {
                this.itemDescriptionLongField = value;
            }
        }
        
        /// <remarks/>
        public string ItemNumber {
            get {
                return this.itemNumberField;
            }
            set {
                this.itemNumberField = value;
            }
        }
        
        /// <remarks/>
        public string CodeListQualifier {
            get {
                return this.codeListQualifierField;
            }
            set {
                this.codeListQualifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute("DiagnosisGeneral", Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class DiagnosisTypeGeneral {
        
        private string sourceOfInformationField;
        
        private DateType effectiveDateField;
        
        private DateType expirationDateField;
        
        private DiagnosisTypeGeneralProblemType problemTypeField;
        
        private DiagnosisTypeGeneralProblemNameCoded problemNameCodedField;
        
        /// <remarks/>
        public string SourceOfInformation {
            get {
                return this.sourceOfInformationField;
            }
            set {
                this.sourceOfInformationField = value;
            }
        }
        
        /// <remarks/>
        public DateType EffectiveDate {
            get {
                return this.effectiveDateField;
            }
            set {
                this.effectiveDateField = value;
            }
        }
        
        /// <remarks/>
        public DateType ExpirationDate {
            get {
                return this.expirationDateField;
            }
            set {
                this.expirationDateField = value;
            }
        }
        
        /// <remarks/>
        public DiagnosisTypeGeneralProblemType ProblemType {
            get {
                return this.problemTypeField;
            }
            set {
                this.problemTypeField = value;
            }
        }
        
        /// <remarks/>
        public DiagnosisTypeGeneralProblemNameCoded ProblemNameCoded {
            get {
                return this.problemNameCodedField;
            }
            set {
                this.problemNameCodedField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class DiagnosisTypeGeneralProblemType {
        
        private string itemDescriptionLongField;
        
        private string itemNumberField;
        
        private string codeListQualifierField;
        
        /// <remarks/>
        public string ItemDescriptionLong {
            get {
                return this.itemDescriptionLongField;
            }
            set {
                this.itemDescriptionLongField = value;
            }
        }
        
        /// <remarks/>
        public string ItemNumber {
            get {
                return this.itemNumberField;
            }
            set {
                this.itemNumberField = value;
            }
        }
        
        /// <remarks/>
        public string CodeListQualifier {
            get {
                return this.codeListQualifierField;
            }
            set {
                this.codeListQualifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class DiagnosisTypeGeneralProblemNameCoded {
        
        private string itemDescriptionLongField;
        
        private string itemNumberField;
        
        private string codeListQualifierField;
        
        /// <remarks/>
        public string ItemDescriptionLong {
            get {
                return this.itemDescriptionLongField;
            }
            set {
                this.itemDescriptionLongField = value;
            }
        }
        
        /// <remarks/>
        public string ItemNumber {
            get {
                return this.itemNumberField;
            }
            set {
                this.itemNumberField = value;
            }
        }
        
        /// <remarks/>
        public string CodeListQualifier {
            get {
                return this.codeListQualifierField;
            }
            set {
                this.codeListQualifierField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class Error {
        
        private string codeField;
        
        private string[] descriptionCodeField;
        
        private string descriptionField;
        
        /// <remarks/>
        public string Code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DescriptionCode")]
        public string[] DescriptionCode {
            get {
                return this.descriptionCodeField;
            }
            set {
                this.descriptionCodeField = value;
            }
        }
        
        /// <remarks/>
        public string Description {
            get {
                return this.descriptionField;
            }
            set {
                this.descriptionField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class GetMessage {
        
        private object getMessage1Field;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("GetMessage")]
        public object GetMessage1 {
            get {
                return this.getMessage1Field;
            }
            set {
                this.getMessage1Field = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class NewRx {
        
        private NewRxRequestType requestField;
        
        private MandatoryPharmacyType pharmacyField;
        
        private MandatoryPrescriberType prescriberField;
        
        private MandatorySupervisorType supervisorField;
        
        private MandatoryFaciltyType facilityField;
        
        private PatientType patientField;
        
        private NewRxPrescribedMedicationType medicationPrescribedField;
        
        private ObservationType observationField;
        
        private BenefitsCoordinationType[] benefitsCoordinationField;
        
        /// <remarks/>
        public NewRxRequestType Request {
            get {
                return this.requestField;
            }
            set {
                this.requestField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryPharmacyType Pharmacy {
            get {
                return this.pharmacyField;
            }
            set {
                this.pharmacyField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryPrescriberType Prescriber {
            get {
                return this.prescriberField;
            }
            set {
                this.prescriberField = value;
            }
        }
        
        /// <remarks/>
        public MandatorySupervisorType Supervisor {
            get {
                return this.supervisorField;
            }
            set {
                this.supervisorField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryFaciltyType Facility {
            get {
                return this.facilityField;
            }
            set {
                this.facilityField = value;
            }
        }
        
        /// <remarks/>
        public PatientType Patient {
            get {
                return this.patientField;
            }
            set {
                this.patientField = value;
            }
        }
        
        /// <remarks/>
        public NewRxPrescribedMedicationType MedicationPrescribed {
            get {
                return this.medicationPrescribedField;
            }
            set {
                this.medicationPrescribedField = value;
            }
        }
        
        /// <remarks/>
        public ObservationType Observation {
            get {
                return this.observationField;
            }
            set {
                this.observationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("BenefitsCoordination")]
        public BenefitsCoordinationType[] BenefitsCoordination {
            get {
                return this.benefitsCoordinationField;
            }
            set {
                this.benefitsCoordinationField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute("Observation", Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class ObservationType {
        
        private MeasurementType[] measurementField;
        
        private string observationNotesField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Measurement")]
        public MeasurementType[] Measurement {
            get {
                return this.measurementField;
            }
            set {
                this.measurementField = value;
            }
        }
        
        /// <remarks/>
        public string ObservationNotes {
            get {
                return this.observationNotesField;
            }
            set {
                this.observationNotesField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class PasswordChange {
        
        private PasswordRequestType requestField;
        
        /// <remarks/>
        public PasswordRequestType Request {
            get {
                return this.requestField;
            }
            set {
                this.requestField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class RefillRequest {
        
        private ShortRequestType requestField;
        
        private MandatoryAddressPharmacyType pharmacyField;
        
        private PrescriberTypeRefillRequest prescriberField;
        
        private SupervisorTypeRefillRequest supervisorField;
        
        private MandatoryFaciltyType facilityField;
        
        private PatientType patientField;
        
        private RefillRequestPrescribedMedicationType medicationPrescribedField;
        
        private RefillRequestDispensedMedicationType medicationDispensedField;
        
        private ObservationType observationField;
        
        private BenefitsCoordinationType[] benefitsCoordinationField;
        
        /// <remarks/>
        public ShortRequestType Request {
            get {
                return this.requestField;
            }
            set {
                this.requestField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryAddressPharmacyType Pharmacy {
            get {
                return this.pharmacyField;
            }
            set {
                this.pharmacyField = value;
            }
        }
        
        /// <remarks/>
        public PrescriberTypeRefillRequest Prescriber {
            get {
                return this.prescriberField;
            }
            set {
                this.prescriberField = value;
            }
        }
        
        /// <remarks/>
        public SupervisorTypeRefillRequest Supervisor {
            get {
                return this.supervisorField;
            }
            set {
                this.supervisorField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryFaciltyType Facility {
            get {
                return this.facilityField;
            }
            set {
                this.facilityField = value;
            }
        }
        
        /// <remarks/>
        public PatientType Patient {
            get {
                return this.patientField;
            }
            set {
                this.patientField = value;
            }
        }
        
        /// <remarks/>
        public RefillRequestPrescribedMedicationType MedicationPrescribed {
            get {
                return this.medicationPrescribedField;
            }
            set {
                this.medicationPrescribedField = value;
            }
        }
        
        /// <remarks/>
        public RefillRequestDispensedMedicationType MedicationDispensed {
            get {
                return this.medicationDispensedField;
            }
            set {
                this.medicationDispensedField = value;
            }
        }
        
        /// <remarks/>
        public ObservationType Observation {
            get {
                return this.observationField;
            }
            set {
                this.observationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("BenefitsCoordination")]
        public BenefitsCoordinationType[] BenefitsCoordination {
            get {
                return this.benefitsCoordinationField;
            }
            set {
                this.benefitsCoordinationField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class RefillResponse {
        
        private ShortRequestType requestField;
        
        private ResponseType responseField;
        
        private PharmacyType pharmacyField;
        
        private PrescriberType prescriberField;
        
        private SupervisorType supervisorField;
        
        private MandatoryFaciltyType facilityField;
        
        private PatientType patientField;
        
        private RefillResponsePrescribedMedicationType medicationPrescribedField;
        
        private RefillResponseDispensedMedicationType medicationDispensedField;
        
        private ObservationType observationField;
        
        /// <remarks/>
        public ShortRequestType Request {
            get {
                return this.requestField;
            }
            set {
                this.requestField = value;
            }
        }
        
        /// <remarks/>
        public ResponseType Response {
            get {
                return this.responseField;
            }
            set {
                this.responseField = value;
            }
        }
        
        /// <remarks/>
        public PharmacyType Pharmacy {
            get {
                return this.pharmacyField;
            }
            set {
                this.pharmacyField = value;
            }
        }
        
        /// <remarks/>
        public PrescriberType Prescriber {
            get {
                return this.prescriberField;
            }
            set {
                this.prescriberField = value;
            }
        }
        
        /// <remarks/>
        public SupervisorType Supervisor {
            get {
                return this.supervisorField;
            }
            set {
                this.supervisorField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryFaciltyType Facility {
            get {
                return this.facilityField;
            }
            set {
                this.facilityField = value;
            }
        }
        
        /// <remarks/>
        public PatientType Patient {
            get {
                return this.patientField;
            }
            set {
                this.patientField = value;
            }
        }
        
        /// <remarks/>
        public RefillResponsePrescribedMedicationType MedicationPrescribed {
            get {
                return this.medicationPrescribedField;
            }
            set {
                this.medicationPrescribedField = value;
            }
        }
        
        /// <remarks/>
        public RefillResponseDispensedMedicationType MedicationDispensed {
            get {
                return this.medicationDispensedField;
            }
            set {
                this.medicationDispensedField = value;
            }
        }
        
        /// <remarks/>
        public ObservationType Observation {
            get {
                return this.observationField;
            }
            set {
                this.observationField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class Resupply {
        
        private ShortRequestType requestField;
        
        private MandatoryAddressPharmacyType pharmacyField;
        
        private PrescriberTypeRefillRequest prescriberField;
        
        private SupervisorTypeRefillRequest supervisorField;
        
        private MandatoryFaciltyType facilityField;
        
        private PatientType patientField;
        
        private ResupplyMedicationType medicationPrescribedField;
        
        private ResupplyMedicationType medicationDispensedField;
        
        private ObservationType observationField;
        
        private BenefitsCoordinationType[] benefitsCoordinationField;
        
        /// <remarks/>
        public ShortRequestType Request {
            get {
                return this.requestField;
            }
            set {
                this.requestField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryAddressPharmacyType Pharmacy {
            get {
                return this.pharmacyField;
            }
            set {
                this.pharmacyField = value;
            }
        }
        
        /// <remarks/>
        public PrescriberTypeRefillRequest Prescriber {
            get {
                return this.prescriberField;
            }
            set {
                this.prescriberField = value;
            }
        }
        
        /// <remarks/>
        public SupervisorTypeRefillRequest Supervisor {
            get {
                return this.supervisorField;
            }
            set {
                this.supervisorField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryFaciltyType Facility {
            get {
                return this.facilityField;
            }
            set {
                this.facilityField = value;
            }
        }
        
        /// <remarks/>
        public PatientType Patient {
            get {
                return this.patientField;
            }
            set {
                this.patientField = value;
            }
        }
        
        /// <remarks/>
        public ResupplyMedicationType MedicationPrescribed {
            get {
                return this.medicationPrescribedField;
            }
            set {
                this.medicationPrescribedField = value;
            }
        }
        
        /// <remarks/>
        public ResupplyMedicationType MedicationDispensed {
            get {
                return this.medicationDispensedField;
            }
            set {
                this.medicationDispensedField = value;
            }
        }
        
        /// <remarks/>
        public ObservationType Observation {
            get {
                return this.observationField;
            }
            set {
                this.observationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("BenefitsCoordination")]
        public BenefitsCoordinationType[] BenefitsCoordination {
            get {
                return this.benefitsCoordinationField;
            }
            set {
                this.benefitsCoordinationField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class RxChangeRequest {
        
        private RequestType requestField;
        
        private RxChangeRequestPharmacyType pharmacyField;
        
        private PrescriberType prescriberField;
        
        private SupervisorType supervisorField;
        
        private MandatoryFaciltyType facilityField;
        
        private PatientType patientField;
        
        private RxChangePrescribedMedicationType medicationPrescribedField;
        
        private RxChangeDispensedMedicationType[] medicationRequestedField;
        
        private ObservationType observationField;
        
        private BenefitsCoordinationType[] benefitsCoordinationField;
        
        /// <remarks/>
        public RequestType Request {
            get {
                return this.requestField;
            }
            set {
                this.requestField = value;
            }
        }
        
        /// <remarks/>
        public RxChangeRequestPharmacyType Pharmacy {
            get {
                return this.pharmacyField;
            }
            set {
                this.pharmacyField = value;
            }
        }
        
        /// <remarks/>
        public PrescriberType Prescriber {
            get {
                return this.prescriberField;
            }
            set {
                this.prescriberField = value;
            }
        }
        
        /// <remarks/>
        public SupervisorType Supervisor {
            get {
                return this.supervisorField;
            }
            set {
                this.supervisorField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryFaciltyType Facility {
            get {
                return this.facilityField;
            }
            set {
                this.facilityField = value;
            }
        }
        
        /// <remarks/>
        public PatientType Patient {
            get {
                return this.patientField;
            }
            set {
                this.patientField = value;
            }
        }
        
        /// <remarks/>
        public RxChangePrescribedMedicationType MedicationPrescribed {
            get {
                return this.medicationPrescribedField;
            }
            set {
                this.medicationPrescribedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("MedicationRequested")]
        public RxChangeDispensedMedicationType[] MedicationRequested {
            get {
                return this.medicationRequestedField;
            }
            set {
                this.medicationRequestedField = value;
            }
        }
        
        /// <remarks/>
        public ObservationType Observation {
            get {
                return this.observationField;
            }
            set {
                this.observationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("BenefitsCoordination")]
        public BenefitsCoordinationType[] BenefitsCoordination {
            get {
                return this.benefitsCoordinationField;
            }
            set {
                this.benefitsCoordinationField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class RxChangeResponse {
        
        private RequestType requestField;
        
        private ChangeResponseType responseField;
        
        private MandatoryPharmacyType pharmacyField;
        
        private PrescriberType prescriberField;
        
        private SupervisorType supervisorField;
        
        private MandatoryFaciltyType facilityField;
        
        private PatientType patientField;
        
        private RxChangeResponseMedicationType medicationPrescribedField;
        
        private ObservationType observationField;
        
        /// <remarks/>
        public RequestType Request {
            get {
                return this.requestField;
            }
            set {
                this.requestField = value;
            }
        }
        
        /// <remarks/>
        public ChangeResponseType Response {
            get {
                return this.responseField;
            }
            set {
                this.responseField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryPharmacyType Pharmacy {
            get {
                return this.pharmacyField;
            }
            set {
                this.pharmacyField = value;
            }
        }
        
        /// <remarks/>
        public PrescriberType Prescriber {
            get {
                return this.prescriberField;
            }
            set {
                this.prescriberField = value;
            }
        }
        
        /// <remarks/>
        public SupervisorType Supervisor {
            get {
                return this.supervisorField;
            }
            set {
                this.supervisorField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryFaciltyType Facility {
            get {
                return this.facilityField;
            }
            set {
                this.facilityField = value;
            }
        }
        
        /// <remarks/>
        public PatientType Patient {
            get {
                return this.patientField;
            }
            set {
                this.patientField = value;
            }
        }
        
        /// <remarks/>
        public RxChangeResponseMedicationType MedicationPrescribed {
            get {
                return this.medicationPrescribedField;
            }
            set {
                this.medicationPrescribedField = value;
            }
        }
        
        /// <remarks/>
        public ObservationType Observation {
            get {
                return this.observationField;
            }
            set {
                this.observationField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class RxFill {
        
        private ShortRequestType requestField;
        
        private FillStatusType fillStatusField;
        
        private MandatoryAddressPharmacyType pharmacyField;
        
        private PrescriberRxFillType prescriberField;
        
        private SupervisorRxFillType supervisorField;
        
        private FaciltyType facilityField;
        
        private PatientType patientField;
        
        private RxFillMedicationType medicationPrescribedField;
        
        private RxFillDispensedMedicationType medicationDispensedField;
        
        /// <remarks/>
        public ShortRequestType Request {
            get {
                return this.requestField;
            }
            set {
                this.requestField = value;
            }
        }
        
        /// <remarks/>
        public FillStatusType FillStatus {
            get {
                return this.fillStatusField;
            }
            set {
                this.fillStatusField = value;
            }
        }
        
        /// <remarks/>
        public MandatoryAddressPharmacyType Pharmacy {
            get {
                return this.pharmacyField;
            }
            set {
                this.pharmacyField = value;
            }
        }
        
        /// <remarks/>
        public PrescriberRxFillType Prescriber {
            get {
                return this.prescriberField;
            }
            set {
                this.prescriberField = value;
            }
        }
        
        /// <remarks/>
        public SupervisorRxFillType Supervisor {
            get {
                return this.supervisorField;
            }
            set {
                this.supervisorField = value;
            }
        }
        
        /// <remarks/>
        public FaciltyType Facility {
            get {
                return this.facilityField;
            }
            set {
                this.facilityField = value;
            }
        }
        
        /// <remarks/>
        public PatientType Patient {
            get {
                return this.patientField;
            }
            set {
                this.patientField = value;
            }
        }
        
        /// <remarks/>
        public RxFillMedicationType MedicationPrescribed {
            get {
                return this.medicationPrescribedField;
            }
            set {
                this.medicationPrescribedField = value;
            }
        }
        
        /// <remarks/>
        public RxFillDispensedMedicationType MedicationDispensed {
            get {
                return this.medicationDispensedField;
            }
            set {
                this.medicationDispensedField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class RxHistoryRequest {
        
        private OptionalPharmacyType pharmacyField;
        
        private OptionalPrescriberType prescriberField;
        
        private HistoryRequestPatientType patientField;
        
        private BenefitsCoordinationRequestType[] benefitsCoordinationField;
        
        /// <remarks/>
        public OptionalPharmacyType Pharmacy {
            get {
                return this.pharmacyField;
            }
            set {
                this.pharmacyField = value;
            }
        }
        
        /// <remarks/>
        public OptionalPrescriberType Prescriber {
            get {
                return this.prescriberField;
            }
            set {
                this.prescriberField = value;
            }
        }
        
        /// <remarks/>
        public HistoryRequestPatientType Patient {
            get {
                return this.patientField;
            }
            set {
                this.patientField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("BenefitsCoordination")]
        public BenefitsCoordinationRequestType[] BenefitsCoordination {
            get {
                return this.benefitsCoordinationField;
            }
            set {
                this.benefitsCoordinationField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class RxHistoryResponse {
        
        private HistoryResponseType responseField;
        
        private OptionalPharmacyType pharmacyField;
        
        private HistoryPrescriberType prescriberField;
        
        private HistoryResponsePatientType patientField;
        
        private BenefitsCoordinationResponseType[] benefitsCoordinationField;
        
        private object[] itemsField;
        
        /// <remarks/>
        public HistoryResponseType Response {
            get {
                return this.responseField;
            }
            set {
                this.responseField = value;
            }
        }
        
        /// <remarks/>
        public OptionalPharmacyType Pharmacy {
            get {
                return this.pharmacyField;
            }
            set {
                this.pharmacyField = value;
            }
        }
        
        /// <remarks/>
        public HistoryPrescriberType Prescriber {
            get {
                return this.prescriberField;
            }
            set {
                this.prescriberField = value;
            }
        }
        
        /// <remarks/>
        public HistoryResponsePatientType Patient {
            get {
                return this.patientField;
            }
            set {
                this.patientField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("BenefitsCoordination")]
        public BenefitsCoordinationResponseType[] BenefitsCoordination {
            get {
                return this.benefitsCoordinationField;
            }
            set {
                this.benefitsCoordinationField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("MedicationDispensed", typeof(HistoryDispensedMedicationType))]
        [System.Xml.Serialization.XmlElementAttribute("MedicationPrescribed", typeof(HistoryPrescribedMedicationType))]
        public object[] Items {
            get {
                return this.itemsField;
            }
            set {
                this.itemsField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class Status {
        
        private string codeField;
        
        private string[] descriptionCodeField;
        
        private string descriptionField;
        
        /// <remarks/>
        public string Code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("DescriptionCode")]
        public string[] DescriptionCode {
            get {
                return this.descriptionCodeField;
            }
            set {
                this.descriptionCodeField = value;
            }
        }
        
        /// <remarks/>
        public string Description {
            get {
                return this.descriptionField;
            }
            set {
                this.descriptionField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class Verify {
        
        private VerifyVerifyStatus verifyStatusField;
        
        /// <remarks/>
        public VerifyVerifyStatus VerifyStatus {
            get {
                return this.verifyStatusField;
            }
            set {
                this.verifyStatusField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class VerifyVerifyStatus {
        
        private string codeField;
        
        private string descriptionField;
        
        /// <remarks/>
        public string Code {
            get {
                return this.codeField;
            }
            set {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        public string Description {
            get {
                return this.descriptionField;
            }
            set {
                this.descriptionField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class MailboxType {
        
        private string mailboxIDField;
        
        private string deliveredIDField;
        
        private string additionalTraceNumberField;
        
        private string acknowledgementIDField;
        
        /// <remarks/>
        public string MailboxID {
            get {
                return this.mailboxIDField;
            }
            set {
                this.mailboxIDField = value;
            }
        }
        
        /// <remarks/>
        public string DeliveredID {
            get {
                return this.deliveredIDField;
            }
            set {
                this.deliveredIDField = value;
            }
        }
        
        /// <remarks/>
        public string AdditionalTraceNumber {
            get {
                return this.additionalTraceNumberField;
            }
            set {
                this.additionalTraceNumberField = value;
            }
        }
        
        /// <remarks/>
        public string AcknowledgementID {
            get {
                return this.acknowledgementIDField;
            }
            set {
                this.acknowledgementIDField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class SenderSoftwareType {
        
        private string senderSoftwareDeveloperField;
        
        private string senderSoftwareProductField;
        
        private string senderSoftwareVersionReleaseField;
        
        /// <remarks/>
        public string SenderSoftwareDeveloper {
            get {
                return this.senderSoftwareDeveloperField;
            }
            set {
                this.senderSoftwareDeveloperField = value;
            }
        }
        
        /// <remarks/>
        public string SenderSoftwareProduct {
            get {
                return this.senderSoftwareProductField;
            }
            set {
                this.senderSoftwareProductField = value;
            }
        }
        
        /// <remarks/>
        public string SenderSoftwareVersionRelease {
            get {
                return this.senderSoftwareVersionReleaseField;
            }
            set {
                this.senderSoftwareVersionReleaseField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class SecurityIdentificationType {
        
        private string secondaryIdentificationField;
        
        private string tertiaryIdentificationField;
        
        /// <remarks/>
        public string SecondaryIdentification {
            get {
                return this.secondaryIdentificationField;
            }
            set {
                this.secondaryIdentificationField = value;
            }
        }
        
        /// <remarks/>
        public string TertiaryIdentification {
            get {
                return this.tertiaryIdentificationField;
            }
            set {
                this.tertiaryIdentificationField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class PasswordType {
        
        private string typeField;
        
        private string valueField;
        
        public PasswordType() {
            this.typeField = "PasswordDigest";
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string Type {
            get {
                return this.typeField;
            }
            set {
                this.typeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class UsernameTokenType {
        
        private string usernameField;
        
        private PasswordType passwordField;
        
        private string nonceField;
        
        private System.DateTime createdField;
        
        private bool createdFieldSpecified;
        
        /// <remarks/>
        public string Username {
            get {
                return this.usernameField;
            }
            set {
                this.usernameField = value;
            }
        }
        
        /// <remarks/>
        public PasswordType Password {
            get {
                return this.passwordField;
            }
            set {
                this.passwordField = value;
            }
        }
        
        /// <remarks/>
        public string Nonce {
            get {
                return this.nonceField;
            }
            set {
                this.nonceField = value;
            }
        }
        
        /// <remarks/>
        public System.DateTime Created {
            get {
                return this.createdField;
            }
            set {
                this.createdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool CreatedSpecified {
            get {
                return this.createdFieldSpecified;
            }
            set {
                this.createdFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    public partial class SecurityType {
        
        private UsernameTokenType usernameTokenField;
        
        private SecurityIdentificationType senderField;
        
        private SecurityIdentificationType receiverField;
        
        /// <remarks/>
        public UsernameTokenType UsernameToken {
            get {
                return this.usernameTokenField;
            }
            set {
                this.usernameTokenField = value;
            }
        }
        
        /// <remarks/>
        public SecurityIdentificationType Sender {
            get {
                return this.senderField;
            }
            set {
                this.senderField = value;
            }
        }
        
        /// <remarks/>
        public SecurityIdentificationType Receiver {
            get {
                return this.receiverField;
            }
            set {
                this.receiverField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class HeaderTypeFrom {
        
        private string qualifierField;
        
        private string valueField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string Qualifier {
            get {
                return this.qualifierField;
            }
            set {
                this.qualifierField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.surescripts.com/messaging")]
    public partial class HeaderTypeDigitalSignature {
        
        private string digestValueField;
        
        private string signatureValueField;
        
        private string x509DataField;
        
        private string versionField;
        
        public HeaderTypeDigitalSignature() {
            this.versionField = "1.0";
        }
        
        /// <remarks/>
        public string DigestValue {
            get {
                return this.digestValueField;
            }
            set {
                this.digestValueField = value;
            }
        }
        
        /// <remarks/>
        public string SignatureValue {
            get {
                return this.signatureValueField;
            }
            set {
                this.signatureValueField = value;
            }
        }
        
        /// <remarks/>
        public string X509Data {
            get {
                return this.x509DataField;
            }
            set {
                this.x509DataField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string version {
            get {
                return this.versionField;
            }
            set {
                this.versionField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute("DrugReferenceNumber", Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class DrugReferenceIDType {
        
        private IDOptionalType idField;
        
        /// <remarks/>
        public IDOptionalType ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.surescripts.com/messaging")]
    [System.Xml.Serialization.XmlRootAttribute("CommunicationNumbers", Namespace="http://www.surescripts.com/messaging", IsNullable=false)]
    public partial class CommunicationNumbersType {
        
        private CommunicationType[] communicationField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Communication")]
        public CommunicationType[] Communication {
            get {
                return this.communicationField;
            }
            set {
                this.communicationField = value;
            }
        }
    }
}

Open in new window


Then you can use XML serialization to deserialize an XML file into this class.

e.g.

using System.Xml.Serialization;
using System.IO;
using System.Xml;

...

XmlSerializer deserializer = new XmlSerializer(typeof(XmlClasses.NewRx));
XmlReader reader = XmlReader.Create(@"C:\path\to\your\file.xml");

XmlClasses.NewRx instance = (XmlClasses.NewRx)deserializer.Deserialize(reader);

Open in new window

0
 

Author Comment

by:JDL129
ID: 39254585
kaufmed!!!  THANKS for the post!!!

This looks like exactly what we need if you can show an xml new y like me how to use it.  I've created the test class you described in you article but can't figure out how to call it.  I have also added the created class above to my program.  How do I process my data using the classes?

Thanks again,
Jerry
0
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 39255061
Did you note the bottom of my last post? I gave a quick intro to the information that I linked to in a 2nd article reference. Basically, if you have an XML file that corresponds to that schema, then so long as you know which particular "class" your XML file is, then you can simply deserialize that XML file into an instance of the class. In the above example, I used NewRx as an example. This is just one class in the numerous ones that were generated by the utility when I processed your schema. The serializer class will do all of the "heavy lifting" of turning the XML file into a class instance that you can interact with in code. Carrying on with my sample above, once I hit line 10, I can go further to do stuff like this:

string relationship = instance.Patient.PatientRelationship;
DateTime birthDate = instance.Patient.DateOfBirth;

Open in new window

0
 

Author Comment

by:JDL129
ID: 39260954
kaufmed!!!  Thanks for the post!!

I'm still a little fuzzy about this, but I'm trying my best.  This is what I put under a button procedure:

                XmlSerializer deserializer = new XmlSerializer(typeof(XmlClasses.NewRx));
                XmlReader reader = XmlReader.Create(@"C:\SureScriptEngine\SureScriptengine\FTP\xml\06_19_13_04_22_42_578.XML");

                XmlClasses.NewRx instance = (XmlClasses.NewRx)deserializer.Deserialize(reader);

This is a test xml and is a NewRX.  This is the error I received when processing the first line:
Pharmacy.XmlClasses is inaccessible due to its protection level. Only public types can be processed.

Normally this would be private and I would change it to public but this is a class name where the code I'm trying to run resides.

Does this sound familiar?

I wish I could give you some more points!!!!

Jerry
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:JDL129
ID: 39260981
kaufmed!!

I put 'public' in front of the class XmlClasses and now the first line runs but the the third line gives this error: 'There is an error in XML document (2, 2).'

Thanks,
Jerry
0
 

Author Comment

by:JDL129
ID: 39261412
kaufmed!!!

Below is the xml I am getting the error with:

 <?xml version="1.0" encoding="utf-8" ?>
- <Message xmlns="http://www.surescripts.com/messaging">
- <Header>
  <To>mailto:1212126.ncpdp@surescripts.com</To>
  <From>mailto:9900000009001.spi@surescripts.com</From>
  <MessageID>2ac914bd81e8477b8a21a041d46605e9</MessageID>
  <SentTime>2013-01-28T20:29:31.3Z</SentTime>
  </Header>
- <Body>
- <NewRx>
  <PrescriberOrderNumber>ORD-888514</PrescriberOrderNumber>
- <Pharmacy>
- <Identification>
  <NCPDPID>1212126</NCPDPID>
  </Identification>
  <StoreName>Test Pharmacy 1212126</StoreName>
- <Address>
  <AddressLine1>123 Sesame Street</AddressLine1>
  <City>Oklahoma City</City>
  <State>OK</State>
  <ZipCode>73000</ZipCode>
  </Address>
- <PhoneNumbers>
- <Phone>
  <Number>4051112222</Number>
  <Qualifier>TE</Qualifier>
  </Phone>
- <Phone>
  <Number>4051112222</Number>
  <Qualifier>FX</Qualifier>
  </Phone>
  </PhoneNumbers>
  </Pharmacy>
- <Prescriber>
- <Identification>
  <SPI>9900000009001</SPI>
  </Identification>
- <Name>
  <LastName>Lincoln</LastName>
  <FirstName>Jennifer</FirstName>
  </Name>
- <Address>
  <AddressLine1>801 Seabreeze Dr.</AddressLine1>
  <City>Ft. Myers</City>
  <State>FL</State>
  <ZipCode>33901</ZipCode>
  </Address>
- <PhoneNumbers>
- <Phone>
  <Number>4078930495</Number>
  <Qualifier>TE</Qualifier>
  </Phone>
  </PhoneNumbers>
  </Prescriber>
- <Patient>
- <Name>
  <LastName>Tate</LastName>
  <FirstName>Travis</FirstName>
  </Name>
  <Gender>M</Gender>
  <DateOfBirth>20020812</DateOfBirth>
- <Address>
  <AddressLine1>548 Remington Way</AddressLine1>
  <City>Oklahoma City</City>
  <State>OK</State>
  <ZipCode>74152</ZipCode>
  </Address>
- <PhoneNumbers>
- <Phone>
  <Number>4056477447</Number>
  <Qualifier>TE</Qualifier>
  </Phone>
  </PhoneNumbers>
  </Patient>
- <MedicationPrescribed>
  <DrugDescription>azithromycin 100 mg/5 mL oral liquid</DrugDescription>
- <DrugCoded>
  <ProductCode>54569580700</ProductCode>
  <ProductCodeQualifier>ND</ProductCodeQualifier>
  </DrugCoded>
- <Quantity>
  <Qualifier>ML</Qualifier>
  <Value>18</Value>
  </Quantity>
  <Directions>6 mL PO 1 time only,Instr:Then 60 mg =3 mL PO once daily for days 2-5</Directions>
- <Refills>
  <Qualifier>R</Qualifier>
  <Quantity>0</Quantity>
  </Refills>
  <Substitutions>0</Substitutions>
  <WrittenDate>20110822</WrittenDate>
  </MedicationPrescribed>
  </NewRx>
  </Body>
  </Message>

Thanks,

Jerry
0
 
LVL 74

Expert Comment

by:käµfm³d 👽
ID: 39262740
I'll look at this later this evening.
0
 

Author Comment

by:JDL129
ID: 39268463
OK!!
0
 

Author Comment

by:JDL129
ID: 39269905
kaufman!!!

Is everythink OK?

Jerry
0
 

Author Comment

by:JDL129
ID: 39298832
kaufman???

Are we done???

Thanks for the try.  Sorry I'm so ignorant.

Jerry
0
 

Author Closing Comment

by:JDL129
ID: 39314970
kaufmed!!!  Thanks for the time invested!!!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now