using System.Collections.Generic;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO.Compression;
public static class XmlExtensions
static readonly Dictionary<(Assembly, string), XmlSerializer> serializers = new();
public static XmlSerializer GetSerializer(Assembly assembly, string @namespace)
if (!serializers.TryGetValue((assembly, @namespace), out var serializer))
serializer = serializers[(assembly, @namespace)] = CreateSerializer(assembly, @namespace);
static XmlSerializer CreateSerializer(Assembly assembly, string @namespace)
var generatedTypes = assembly.GetTypes().Where(t => t.Namespace == @namespace);
List<Type> expectedTypes = new List<Type>();
foreach (Type type in generatedTypes)
return new XmlSerializer(typeof(object), expectedTypes.ToArray());
public static void Serialize(ICollection<object> objects, string filename)
var serializer = XmlExtensions.GetSerializer(Assembly.GetExecutingAssembly(), "GenericNamespace");
var serializerNamespaces = new XmlSerializerNamespaces();
serializerNamespaces.Add("", "");
var settings = new XmlWriterSettings();
using (var writer = XmlWriter.Create(filename, settings))
foreach (var obj1 in objects)
Type objType = obj1.GetType();
string objTypeName = objType.Name;
string objNamespace = null;
XmlRootAttribute xmlRoot = objType.GetCustomAttribute<XmlRootAttribute>();
objNamespace = objType.Namespace;
writer.WriteStartElement(objTypeName, "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns");
serializer.Serialize(writer, obj1, serializerNamespaces);
objNamespace = objType.Namespace;
writer.WriteStartElement(objTypeName, "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns");
serializer.Serialize(writer, obj1, serializerNamespaces);
writer.WriteEndElement();
writer.WriteEndElement();
public static void Test()
new CDSInterchange_StructureCDSBulkGroup160Message()
EmergencyCare = new EmergencyCare_Stucture()
PatientPathway = new PatientPathway_EC_Structure()
PatientPathwayIdentity = new PatientPathway_EC_StructurePatientPathwayIdentity()
ItemElementName = ItemChoiceType.UniqueBookingReferenceNumber_Converted,
OrganisationIdentifier_PatientPathwayIdentifierIssuer = "bar",
public static void Test<T>(T objects)
XmlSerializer serializer = new XmlSerializer(objects.GetType());
using (TextWriter writer = new StreamWriter("output.xml"))
serializer.Serialize(writer, objects);
Console.WriteLine("Successfully serialized {0}:", objects);
Console.WriteLine(File.ReadAllText("output.xml"));
File.Delete("output.xml");
public static void Main()
Console.WriteLine("Environment version: {0} ({1}, {2})", System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription , Environment.Version, Environment.OSVersion);
Console.WriteLine("Failed with unhandled exception: ");
namespace Question75454684
using System.Xml.Serialization;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
[System.Xml.Serialization.XmlRootAttribute("CDS-XMLInterchange", Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns", IsNullable = false)]
public partial class CDSXMLInterchange : CDSInterchange_Structure
private string schemaVersionField;
private System.DateTime schemaDateField;
public CDSXMLInterchange()
this.schemaVersionField = "6-2-3";
this.schemaDateField = new System.DateTime(634722912000000000);
[System.Xml.Serialization.XmlAttributeAttribute(DataType = "NMTOKEN")]
public string SchemaVersion
return this.schemaVersionField;
this.schemaVersionField = value;
[System.Xml.Serialization.XmlAttributeAttribute(DataType = "date")]
public System.DateTime SchemaDate
return this.schemaDateField;
this.schemaDateField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class CDSInterchange_Structure
private CDSInterchangeHeader_Structure cDSInterchangeHeaderField;
private object[] itemsField;
private CDSInterchangeTrailer_Structure cDSInterchangeTrailerField;
public CDSInterchangeHeader_Structure CDSInterchangeHeader
return this.cDSInterchangeHeaderField;
this.cDSInterchangeHeaderField = value;
[System.Xml.Serialization.XmlElementAttribute("CDSBulkGroup-160-Message", typeof(CDSInterchange_StructureCDSBulkGroup160Message))]
[System.Xml.Serialization.XmlElementAttribute("CDSNetChange-All-MessageTypes", typeof(CDSInterchange_StructureCDSNetChangeAllMessageTypes))]
public CDSInterchangeTrailer_Structure CDSInterchangeTrailer
return this.cDSInterchangeTrailerField;
this.cDSInterchangeTrailerField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class CDSInterchangeHeader_Structure
private string cDSInterchangeSenderIdentityField;
private string cDSInterchangeReceiverIdentityField;
private string cDSInterchangeControlReferenceField;
private System.DateTime cDSInterchangeDateOfPreparationField;
private System.DateTime cDSInterchangeTimeOfPreparationField;
private string cDSInterchangeApplicationReferenceField;
private string cDSInterchangeTestIndicatorField;
public string CDSInterchangeSenderIdentity
return this.cDSInterchangeSenderIdentityField;
this.cDSInterchangeSenderIdentityField = value;
public string CDSInterchangeReceiverIdentity
return this.cDSInterchangeReceiverIdentityField;
this.cDSInterchangeReceiverIdentityField = value;
public string CDSInterchangeControlReference
return this.cDSInterchangeControlReferenceField;
this.cDSInterchangeControlReferenceField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime CDSInterchangeDateOfPreparation
return this.cDSInterchangeDateOfPreparationField;
this.cDSInterchangeDateOfPreparationField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime CDSInterchangeTimeOfPreparation
return this.cDSInterchangeTimeOfPreparationField;
this.cDSInterchangeTimeOfPreparationField = value;
public string CDSInterchangeApplicationReference
return this.cDSInterchangeApplicationReferenceField;
this.cDSInterchangeApplicationReferenceField = value;
public string CDSInterchangeTestIndicator
return this.cDSInterchangeTestIndicatorField;
this.cDSInterchangeTestIndicatorField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class CDSInterchangeTrailer_Structure
private string cDSInterchangeControlReferenceField;
private string cDSInterchangeControlCountField;
private string cDSInterchangeSenderIdentityField;
private string cDSInterchangeReceiverIdentityField;
public string CDSInterchangeControlReference
return this.cDSInterchangeControlReferenceField;
this.cDSInterchangeControlReferenceField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "positiveInteger")]
public string CDSInterchangeControlCount
return this.cDSInterchangeControlCountField;
this.cDSInterchangeControlCountField = value;
public string CDSInterchangeSenderIdentity
return this.cDSInterchangeSenderIdentityField;
this.cDSInterchangeSenderIdentityField = value;
public string CDSInterchangeReceiverIdentity
return this.cDSInterchangeReceiverIdentityField;
this.cDSInterchangeReceiverIdentityField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class CDSTransactionHeader_BulkUpdate_Structure
private CDSTypeCode_Type cDSTypeCodeField;
private CDSProtocolIdentifierCode_Type cDSProtocolIdentifierCodeField;
private string cDSUniqueIdentifierField;
private CDSBulkReplacementGroupCode_Type cDSBulkReplacementGroupCodeField;
private System.DateTime cDSExtractDateField;
private System.DateTime cDSExtractTimeField;
private System.DateTime cDSReportPeriodStartDateField;
private System.DateTime cDSReportPeriodEndDateField;
private System.DateTime cDSActivityDateField;
private string organisationIdentifier_CDSSenderField;
private string[] organisationIdentifier_CDSRecipientField;
public CDSTypeCode_Type CDSTypeCode
return this.cDSTypeCodeField;
this.cDSTypeCodeField = value;
public CDSProtocolIdentifierCode_Type CDSProtocolIdentifierCode
return this.cDSProtocolIdentifierCodeField;
this.cDSProtocolIdentifierCodeField = value;
public string CDSUniqueIdentifier
return this.cDSUniqueIdentifierField;
this.cDSUniqueIdentifierField = value;
public CDSBulkReplacementGroupCode_Type CDSBulkReplacementGroupCode
return this.cDSBulkReplacementGroupCodeField;
this.cDSBulkReplacementGroupCodeField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime CDSExtractDate
return this.cDSExtractDateField;
this.cDSExtractDateField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime CDSExtractTime
return this.cDSExtractTimeField;
this.cDSExtractTimeField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime CDSReportPeriodStartDate
return this.cDSReportPeriodStartDateField;
this.cDSReportPeriodStartDateField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime CDSReportPeriodEndDate
return this.cDSReportPeriodEndDateField;
this.cDSReportPeriodEndDateField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime CDSActivityDate
return this.cDSActivityDateField;
this.cDSActivityDateField = value;
public string OrganisationIdentifier_CDSSender
return this.organisationIdentifier_CDSSenderField;
this.organisationIdentifier_CDSSenderField = value;
[System.Xml.Serialization.XmlElementAttribute("OrganisationIdentifier_CDSRecipient")]
public string[] OrganisationIdentifier_CDSRecipient
return this.organisationIdentifier_CDSRecipientField;
this.organisationIdentifier_CDSRecipientField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public enum CDSTypeCode_Type
[System.Xml.Serialization.XmlEnumAttribute("011")]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public enum CDSProtocolIdentifierCode_Type
[System.Xml.Serialization.XmlEnumAttribute("010")]
[System.Xml.Serialization.XmlEnumAttribute("020")]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public enum CDSBulkReplacementGroupCode_Type
[System.Xml.Serialization.XmlEnumAttribute("160")]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class CDSMessageTrailer_Structure
private string cDSMessageReferenceNumberField;
[System.Xml.Serialization.XmlElementAttribute(DataType = "positiveInteger")]
public string CDSMessageReferenceNumber
return this.cDSMessageReferenceNumberField;
this.cDSMessageReferenceNumberField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class AttendanceOccurrence_EC_Structure
private AttendanceOccurrence_EC_StructureAmbulanceDetails ambulanceDetailsField;
private AttendanceOccurrence_EC_StructureExpectedDateTimeOfTreatment[] expectedDateTimeOfTreatmentField;
private AttendanceOccurrence_EC_StructureEmergencyCareAttendanceActivityCharacteristics emergencyCareAttendanceActivityCharacteristicsField;
private AttendanceOccurrence_EC_StructureCodedScoredAssessment[] codedScoredAssessmentField;
private AttendanceOccurrence_EC_StructureCodedClinicalObservations[] codedClinicalObservationsField;
private AttendanceOccurrence_EC_StructureCodedClinicalFinding[] codedClinicalFindingField;
private AttendanceOccurrence_EC_StructureInjuryCharacteristics injuryCharacteristicsField;
private string[] patientClinicalHistoryField;
private AttendanceOccurrence_EC_StructureServiceAgreementDetails serviceAgreementDetailsField;
private AttendanceOccurrence_EC_StructureCareProfessionals_EmergencyCare[] careProfessionals_EmergencyCareField;
private AttendanceOccurrence_EC_StructureEmergencyCareDiagnoses_SnomedCt[] emergencyCareDiagnoses_SnomedCtField;
private AttendanceOccurrence_EC_StructureEmergencyCareInvestigations_SnomedCt[] emergencyCareInvestigations_SnomedCtField;
private AttendanceOccurrence_EC_StructureEmergencyCareTreatments_SnomedCt[] emergencyCareTreatments_SnomedCtField;
private AttendanceOccurrence_EC_StructureReferralsToOtherServices[] referralsToOtherServicesField;
private AttendanceOccurrence_EC_StructureDischargeFromEmergencyCare dischargeFromEmergencyCareField;
private AttendanceOccurrence_EC_StructureResearchAndDiseaseOutbreakNotification researchAndDiseaseOutbreakNotificationField;
public AttendanceOccurrence_EC_StructureAmbulanceDetails AmbulanceDetails
return this.ambulanceDetailsField;
this.ambulanceDetailsField = value;
[System.Xml.Serialization.XmlElementAttribute("ExpectedDateTimeOfTreatment")]
public AttendanceOccurrence_EC_StructureExpectedDateTimeOfTreatment[] ExpectedDateTimeOfTreatment
return this.expectedDateTimeOfTreatmentField;
this.expectedDateTimeOfTreatmentField = value;
public AttendanceOccurrence_EC_StructureEmergencyCareAttendanceActivityCharacteristics EmergencyCareAttendanceActivityCharacteristics
return this.emergencyCareAttendanceActivityCharacteristicsField;
this.emergencyCareAttendanceActivityCharacteristicsField = value;
[System.Xml.Serialization.XmlElementAttribute("CodedScoredAssessment")]
public AttendanceOccurrence_EC_StructureCodedScoredAssessment[] CodedScoredAssessment
return this.codedScoredAssessmentField;
this.codedScoredAssessmentField = value;
[System.Xml.Serialization.XmlElementAttribute("CodedClinicalObservations")]
public AttendanceOccurrence_EC_StructureCodedClinicalObservations[] CodedClinicalObservations
return this.codedClinicalObservationsField;
this.codedClinicalObservationsField = value;
[System.Xml.Serialization.XmlElementAttribute("CodedClinicalFinding")]
public AttendanceOccurrence_EC_StructureCodedClinicalFinding[] CodedClinicalFinding
return this.codedClinicalFindingField;
this.codedClinicalFindingField = value;
public AttendanceOccurrence_EC_StructureInjuryCharacteristics InjuryCharacteristics
return this.injuryCharacteristicsField;
this.injuryCharacteristicsField = value;
[System.Xml.Serialization.XmlArrayItemAttribute("Comorbidity_SnomedCt", IsNullable = false)]
public string[] PatientClinicalHistory
return this.patientClinicalHistoryField;
this.patientClinicalHistoryField = value;
public AttendanceOccurrence_EC_StructureServiceAgreementDetails ServiceAgreementDetails
return this.serviceAgreementDetailsField;
this.serviceAgreementDetailsField = value;
[System.Xml.Serialization.XmlElementAttribute("CareProfessionals_EmergencyCare")]
public AttendanceOccurrence_EC_StructureCareProfessionals_EmergencyCare[] CareProfessionals_EmergencyCare
return this.careProfessionals_EmergencyCareField;
this.careProfessionals_EmergencyCareField = value;
[System.Xml.Serialization.XmlElementAttribute("EmergencyCareDiagnoses_SnomedCt")]
public AttendanceOccurrence_EC_StructureEmergencyCareDiagnoses_SnomedCt[] EmergencyCareDiagnoses_SnomedCt
return this.emergencyCareDiagnoses_SnomedCtField;
this.emergencyCareDiagnoses_SnomedCtField = value;
[System.Xml.Serialization.XmlElementAttribute("EmergencyCareInvestigations_SnomedCt")]
public AttendanceOccurrence_EC_StructureEmergencyCareInvestigations_SnomedCt[] EmergencyCareInvestigations_SnomedCt
return this.emergencyCareInvestigations_SnomedCtField;
this.emergencyCareInvestigations_SnomedCtField = value;
[System.Xml.Serialization.XmlElementAttribute("EmergencyCareTreatments_SnomedCt")]
public AttendanceOccurrence_EC_StructureEmergencyCareTreatments_SnomedCt[] EmergencyCareTreatments_SnomedCt
return this.emergencyCareTreatments_SnomedCtField;
this.emergencyCareTreatments_SnomedCtField = value;
[System.Xml.Serialization.XmlElementAttribute("ReferralsToOtherServices")]
public AttendanceOccurrence_EC_StructureReferralsToOtherServices[] ReferralsToOtherServices
return this.referralsToOtherServicesField;
this.referralsToOtherServicesField = value;
public AttendanceOccurrence_EC_StructureDischargeFromEmergencyCare DischargeFromEmergencyCare
return this.dischargeFromEmergencyCareField;
this.dischargeFromEmergencyCareField = value;
public AttendanceOccurrence_EC_StructureResearchAndDiseaseOutbreakNotification ResearchAndDiseaseOutbreakNotification
return this.researchAndDiseaseOutbreakNotificationField;
this.researchAndDiseaseOutbreakNotificationField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class AttendanceOccurrence_EC_StructureAmbulanceDetails
private string ambulanceCallIdentifierField;
private string organisationIdentifier_ConveyingAmbulanceTrustField;
private string careContactIdentifier_AmbulanceServiceField;
public string AmbulanceCallIdentifier
return this.ambulanceCallIdentifierField;
this.ambulanceCallIdentifierField = value;
public string OrganisationIdentifier_ConveyingAmbulanceTrust
return this.organisationIdentifier_ConveyingAmbulanceTrustField;
this.organisationIdentifier_ConveyingAmbulanceTrustField = value;
public string CareContactIdentifier_AmbulanceService
return this.careContactIdentifier_AmbulanceServiceField;
this.careContactIdentifier_AmbulanceServiceField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class AttendanceOccurrence_EC_StructureExpectedDateTimeOfTreatment
private System.DateTime emergencyCareExpectedDateTimestampTreatmentField;
private bool emergencyCareExpectedDateTimestampTreatmentFieldSpecified;
private System.DateTime emergencyCareTreatmentTimestampField;
private bool emergencyCareTreatmentTimestampFieldSpecified;
public System.DateTime EmergencyCareExpectedDateTimestampTreatment
return this.emergencyCareExpectedDateTimestampTreatmentField;
this.emergencyCareExpectedDateTimestampTreatmentField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareExpectedDateTimestampTreatmentSpecified
return this.emergencyCareExpectedDateTimestampTreatmentFieldSpecified;
this.emergencyCareExpectedDateTimestampTreatmentFieldSpecified = value;
public System.DateTime EmergencyCareTreatmentTimestamp
return this.emergencyCareTreatmentTimestampField;
this.emergencyCareTreatmentTimestampField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareTreatmentTimestampSpecified
return this.emergencyCareTreatmentTimestampFieldSpecified;
this.emergencyCareTreatmentTimestampFieldSpecified = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class AttendanceOccurrence_EC_StructureEmergencyCareAttendanceActivityCharacteristics
private string emergencyCareAttendanceIdentifierField;
private string emergencyCareArrivalMode_SnomedCtField;
private AttendCat_EC_Type emergencyCareAttendanceCategoryField;
private bool emergencyCareAttendanceCategoryFieldSpecified;
private string emergencyCareAttendanceSource_SnomedCtField;
private string organisationSiteIdentifier_EmergencyCareAttendanceSourceField;
private System.DateTime emergencyCareArrivalDateField;
private System.DateTime emergencyCareArrivalTimeField;
private string ageAtCdsActivityDateField;
private System.DateTime emergencyCareInitialAssessmentDateField;
private bool emergencyCareInitialAssessmentDateFieldSpecified;
private System.DateTime emergencyCareInitialAssessmentTimeField;
private bool emergencyCareInitialAssessmentTimeFieldSpecified;
private string emergencyCareAcuity_SnomedCtField;
private string emergencyCareChiefComplaint_SnomedCtField;
private System.DateTime emergencyCareDateSeenForTreatmentField;
private bool emergencyCareDateSeenForTreatmentFieldSpecified;
private System.DateTime emergencyCareTimeSeenForTreatmentField;
private bool emergencyCareTimeSeenForTreatmentFieldSpecified;
public string EmergencyCareAttendanceIdentifier
return this.emergencyCareAttendanceIdentifierField;
this.emergencyCareAttendanceIdentifierField = value;
public string EmergencyCareArrivalMode_SnomedCt
return this.emergencyCareArrivalMode_SnomedCtField;
this.emergencyCareArrivalMode_SnomedCtField = value;
public AttendCat_EC_Type EmergencyCareAttendanceCategory
return this.emergencyCareAttendanceCategoryField;
this.emergencyCareAttendanceCategoryField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareAttendanceCategorySpecified
return this.emergencyCareAttendanceCategoryFieldSpecified;
this.emergencyCareAttendanceCategoryFieldSpecified = value;
public string EmergencyCareAttendanceSource_SnomedCt
return this.emergencyCareAttendanceSource_SnomedCtField;
this.emergencyCareAttendanceSource_SnomedCtField = value;
public string OrganisationSiteIdentifier_EmergencyCareAttendanceSource
return this.organisationSiteIdentifier_EmergencyCareAttendanceSourceField;
this.organisationSiteIdentifier_EmergencyCareAttendanceSourceField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime EmergencyCareArrivalDate
return this.emergencyCareArrivalDateField;
this.emergencyCareArrivalDateField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime EmergencyCareArrivalTime
return this.emergencyCareArrivalTimeField;
this.emergencyCareArrivalTimeField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "nonNegativeInteger")]
public string AgeAtCdsActivityDate
return this.ageAtCdsActivityDateField;
this.ageAtCdsActivityDateField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime EmergencyCareInitialAssessmentDate
return this.emergencyCareInitialAssessmentDateField;
this.emergencyCareInitialAssessmentDateField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareInitialAssessmentDateSpecified
return this.emergencyCareInitialAssessmentDateFieldSpecified;
this.emergencyCareInitialAssessmentDateFieldSpecified = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime EmergencyCareInitialAssessmentTime
return this.emergencyCareInitialAssessmentTimeField;
this.emergencyCareInitialAssessmentTimeField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareInitialAssessmentTimeSpecified
return this.emergencyCareInitialAssessmentTimeFieldSpecified;
this.emergencyCareInitialAssessmentTimeFieldSpecified = value;
public string EmergencyCareAcuity_SnomedCt
return this.emergencyCareAcuity_SnomedCtField;
this.emergencyCareAcuity_SnomedCtField = value;
public string EmergencyCareChiefComplaint_SnomedCt
return this.emergencyCareChiefComplaint_SnomedCtField;
this.emergencyCareChiefComplaint_SnomedCtField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime EmergencyCareDateSeenForTreatment
return this.emergencyCareDateSeenForTreatmentField;
this.emergencyCareDateSeenForTreatmentField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareDateSeenForTreatmentSpecified
return this.emergencyCareDateSeenForTreatmentFieldSpecified;
this.emergencyCareDateSeenForTreatmentFieldSpecified = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime EmergencyCareTimeSeenForTreatment
return this.emergencyCareTimeSeenForTreatmentField;
this.emergencyCareTimeSeenForTreatmentField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareTimeSeenForTreatmentSpecified
return this.emergencyCareTimeSeenForTreatmentFieldSpecified;
this.emergencyCareTimeSeenForTreatmentFieldSpecified = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public enum AttendCat_EC_Type
[System.Xml.Serialization.XmlEnumAttribute("1")]
[System.Xml.Serialization.XmlEnumAttribute("2")]
[System.Xml.Serialization.XmlEnumAttribute("3")]
[System.Xml.Serialization.XmlEnumAttribute("4")]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class AttendanceOccurrence_EC_StructureCodedScoredAssessment
private string codedAssessmentToolType_SnomedCtField;
private string personScoreField;
private System.DateTime assessmentToolValidationTimestampField;
public string CodedAssessmentToolType_SnomedCt
return this.codedAssessmentToolType_SnomedCtField;
this.codedAssessmentToolType_SnomedCtField = value;
public string PersonScore
return this.personScoreField;
this.personScoreField = value;
public System.DateTime AssessmentToolValidationTimestamp
return this.assessmentToolValidationTimestampField;
this.assessmentToolValidationTimestampField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class AttendanceOccurrence_EC_StructureCodedClinicalObservations
private string codedObservation_SnomedCtField;
private string observationValueField;
private string uCUMunitOfMeasurementField;
private System.DateTime codedObservationTimeStampField;
public string CodedObservation_SnomedCt
return this.codedObservation_SnomedCtField;
this.codedObservation_SnomedCtField = value;
public string ObservationValue
return this.observationValueField;
this.observationValueField = value;
public string UCUMunitOfMeasurement
return this.uCUMunitOfMeasurementField;
this.uCUMunitOfMeasurementField = value;
public System.DateTime CodedObservationTimeStamp
return this.codedObservationTimeStampField;
this.codedObservationTimeStampField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class AttendanceOccurrence_EC_StructureCodedClinicalFinding
private string codedFinding_SnomedCtField;
private System.DateTime codedFinding_TimeStampField;
public string CodedFinding_SnomedCt
return this.codedFinding_SnomedCtField;
this.codedFinding_SnomedCtField = value;
public System.DateTime CodedFinding_TimeStamp
return this.codedFinding_TimeStampField;
this.codedFinding_TimeStampField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class AttendanceOccurrence_EC_StructureInjuryCharacteristics
private System.DateTime injuryDateField;
private System.DateTime injuryTimeField;
private string emergencyCarePlaceOfInjury_SnomedCtField;
private AttendanceOccurrence_EC_StructureInjuryCharacteristicsEmergencyCarePlaceOfInjury_LatitudeAndLongitude emergencyCarePlaceOfInjury_LatitudeAndLongitudeField;
private string emergencyCareInjuryIntent_SnomedCtField;
private string emergencyCareInjuryActivityStatus_SnomedCtField;
private string emergencyCareInjuryActivityType_SnomedCtField;
private string emergencyCareInjuryMechanism_SnomedCtField;
private string[] emergencyCareInjuryAlcoholOrDrugInvolvement_SnomedCtField;
private string assaultLocationDescriptionField;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime InjuryDate
return this.injuryDateField;
this.injuryDateField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime InjuryTime
return this.injuryTimeField;
this.injuryTimeField = value;
public string EmergencyCarePlaceOfInjury_SnomedCt
return this.emergencyCarePlaceOfInjury_SnomedCtField;
this.emergencyCarePlaceOfInjury_SnomedCtField = value;
public AttendanceOccurrence_EC_StructureInjuryCharacteristicsEmergencyCarePlaceOfInjury_LatitudeAndLongitude EmergencyCarePlaceOfInjury_LatitudeAndLongitude
return this.emergencyCarePlaceOfInjury_LatitudeAndLongitudeField;
this.emergencyCarePlaceOfInjury_LatitudeAndLongitudeField = value;
public string EmergencyCareInjuryIntent_SnomedCt
return this.emergencyCareInjuryIntent_SnomedCtField;
this.emergencyCareInjuryIntent_SnomedCtField = value;
public string EmergencyCareInjuryActivityStatus_SnomedCt
return this.emergencyCareInjuryActivityStatus_SnomedCtField;
this.emergencyCareInjuryActivityStatus_SnomedCtField = value;
public string EmergencyCareInjuryActivityType_SnomedCt
return this.emergencyCareInjuryActivityType_SnomedCtField;
this.emergencyCareInjuryActivityType_SnomedCtField = value;
public string EmergencyCareInjuryMechanism_SnomedCt
return this.emergencyCareInjuryMechanism_SnomedCtField;
this.emergencyCareInjuryMechanism_SnomedCtField = value;
[System.Xml.Serialization.XmlElementAttribute("EmergencyCareInjuryAlcoholOrDrugInvolvement_SnomedCt")]
public string[] EmergencyCareInjuryAlcoholOrDrugInvolvement_SnomedCt
return this.emergencyCareInjuryAlcoholOrDrugInvolvement_SnomedCtField;
this.emergencyCareInjuryAlcoholOrDrugInvolvement_SnomedCtField = value;
public string AssaultLocationDescription
return this.assaultLocationDescriptionField;
this.assaultLocationDescriptionField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class AttendanceOccurrence_EC_StructureInjuryCharacteristicsEmergencyCarePlaceOfInjury_LatitudeAndLongitude
private decimal latitudeField;
private decimal longitudeField;
return this.latitudeField;
this.latitudeField = value;
return this.longitudeField;
this.longitudeField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class AttendanceOccurrence_EC_StructureServiceAgreementDetails
private string commissioningSerialNumberField;
private string nhsServiceAgreementLineNumberField;
private string providerReferenceNumberField;
private string commissionerReferenceNumberField;
private string organisationIdentifier_CodeOfProviderField;
private string organisationIdentifier_CodeOfCommissionerField;
public string CommissioningSerialNumber
return this.commissioningSerialNumberField;
this.commissioningSerialNumberField = value;
public string NhsServiceAgreementLineNumber
return this.nhsServiceAgreementLineNumberField;
this.nhsServiceAgreementLineNumberField = value;
public string ProviderReferenceNumber
return this.providerReferenceNumberField;
this.providerReferenceNumberField = value;
public string CommissionerReferenceNumber
return this.commissionerReferenceNumberField;
this.commissionerReferenceNumberField = value;
public string OrganisationIdentifier_CodeOfProvider
return this.organisationIdentifier_CodeOfProviderField;
this.organisationIdentifier_CodeOfProviderField = value;
public string OrganisationIdentifier_CodeOfCommissioner
return this.organisationIdentifier_CodeOfCommissionerField;
this.organisationIdentifier_CodeOfCommissionerField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class AttendanceOccurrence_EC_StructureCareProfessionals_EmergencyCare
private string professionalRegistrationIssuerCodeField;
private string professionalRegistrationEntryIdentifierField;
private CareProfessionalTier_EC_Type careProfessionalTier_EmergencyCareField;
private Yes_No_EC_Type careProfessionalDischargeResponsibilityIndicator_EmergencyCareField;
private System.DateTime careProfessionalClinicalResponsibilityTimeStampField;
private bool careProfessionalClinicalResponsibilityTimeStampFieldSpecified;
public string ProfessionalRegistrationIssuerCode
return this.professionalRegistrationIssuerCodeField;
this.professionalRegistrationIssuerCodeField = value;
public string ProfessionalRegistrationEntryIdentifier
return this.professionalRegistrationEntryIdentifierField;
this.professionalRegistrationEntryIdentifierField = value;
public CareProfessionalTier_EC_Type CareProfessionalTier_EmergencyCare
return this.careProfessionalTier_EmergencyCareField;
this.careProfessionalTier_EmergencyCareField = value;
public Yes_No_EC_Type CareProfessionalDischargeResponsibilityIndicator_EmergencyCare
return this.careProfessionalDischargeResponsibilityIndicator_EmergencyCareField;
this.careProfessionalDischargeResponsibilityIndicator_EmergencyCareField = value;
public System.DateTime CareProfessionalClinicalResponsibilityTimeStamp
return this.careProfessionalClinicalResponsibilityTimeStampField;
this.careProfessionalClinicalResponsibilityTimeStampField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool CareProfessionalClinicalResponsibilityTimeStampSpecified
return this.careProfessionalClinicalResponsibilityTimeStampFieldSpecified;
this.careProfessionalClinicalResponsibilityTimeStampFieldSpecified = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public enum CareProfessionalTier_EC_Type
[System.Xml.Serialization.XmlEnumAttribute("01")]
[System.Xml.Serialization.XmlEnumAttribute("02")]
[System.Xml.Serialization.XmlEnumAttribute("03")]
[System.Xml.Serialization.XmlEnumAttribute("04")]
[System.Xml.Serialization.XmlEnumAttribute("05")]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public enum Yes_No_EC_Type
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class AttendanceOccurrence_EC_StructureEmergencyCareDiagnoses_SnomedCt
private string emergencyCareDiagnosis_SnomedCtField;
private string codedClinicalEntrySequenceNumberField;
private string emergencyCareDiagnosisQualifier_SnomedCtField;
public string EmergencyCareDiagnosis_SnomedCt
return this.emergencyCareDiagnosis_SnomedCtField;
this.emergencyCareDiagnosis_SnomedCtField = value;
public string CodedClinicalEntrySequenceNumber
return this.codedClinicalEntrySequenceNumberField;
this.codedClinicalEntrySequenceNumberField = value;
public string EmergencyCareDiagnosisQualifier_SnomedCt
return this.emergencyCareDiagnosisQualifier_SnomedCtField;
this.emergencyCareDiagnosisQualifier_SnomedCtField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class AttendanceOccurrence_EC_StructureEmergencyCareInvestigations_SnomedCt
private string emergencyCareClinicalInvestigation_SnomedCtField;
private System.DateTime procedureDate_EmergencyCareClinicalInvestigationField;
private bool procedureDate_EmergencyCareClinicalInvestigationFieldSpecified;
private System.DateTime procedureTime_EmergencyCareClinicalInvestigationField;
private bool procedureTime_EmergencyCareClinicalInvestigationFieldSpecified;
public string EmergencyCareClinicalInvestigation_SnomedCt
return this.emergencyCareClinicalInvestigation_SnomedCtField;
this.emergencyCareClinicalInvestigation_SnomedCtField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime ProcedureDate_EmergencyCareClinicalInvestigation
return this.procedureDate_EmergencyCareClinicalInvestigationField;
this.procedureDate_EmergencyCareClinicalInvestigationField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ProcedureDate_EmergencyCareClinicalInvestigationSpecified
return this.procedureDate_EmergencyCareClinicalInvestigationFieldSpecified;
this.procedureDate_EmergencyCareClinicalInvestigationFieldSpecified = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime ProcedureTime_EmergencyCareClinicalInvestigation
return this.procedureTime_EmergencyCareClinicalInvestigationField;
this.procedureTime_EmergencyCareClinicalInvestigationField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ProcedureTime_EmergencyCareClinicalInvestigationSpecified
return this.procedureTime_EmergencyCareClinicalInvestigationFieldSpecified;
this.procedureTime_EmergencyCareClinicalInvestigationFieldSpecified = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class AttendanceOccurrence_EC_StructureEmergencyCareTreatments_SnomedCt
private string emergencyCareProcedure_SnomedCtField;
private System.DateTime procedureDate_EmergencyCareProcedureField;
private bool procedureDate_EmergencyCareProcedureFieldSpecified;
private System.DateTime procedureTime_EmergencyCareProcedureField;
private bool procedureTime_EmergencyCareProcedureFieldSpecified;
public string EmergencyCareProcedure_SnomedCt
return this.emergencyCareProcedure_SnomedCtField;
this.emergencyCareProcedure_SnomedCtField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime ProcedureDate_EmergencyCareProcedure
return this.procedureDate_EmergencyCareProcedureField;
this.procedureDate_EmergencyCareProcedureField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ProcedureDate_EmergencyCareProcedureSpecified
return this.procedureDate_EmergencyCareProcedureFieldSpecified;
this.procedureDate_EmergencyCareProcedureFieldSpecified = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime ProcedureTime_EmergencyCareProcedure
return this.procedureTime_EmergencyCareProcedureField;
this.procedureTime_EmergencyCareProcedureField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ProcedureTime_EmergencyCareProcedureSpecified
return this.procedureTime_EmergencyCareProcedureFieldSpecified;
this.procedureTime_EmergencyCareProcedureFieldSpecified = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class AttendanceOccurrence_EC_StructureReferralsToOtherServices
private string referredToService_SnomedCtField;
private System.DateTime activityServiceRequestDate_EmergencyCareField;
private System.DateTime activityServiceRequestTime_EmergencyCareField;
private System.DateTime referredToServiceAssessmentDateField;
private bool referredToServiceAssessmentDateFieldSpecified;
private System.DateTime referredToServiceAssessmentTimeField;
private bool referredToServiceAssessmentTimeFieldSpecified;
public string ReferredToService_SnomedCt
return this.referredToService_SnomedCtField;
this.referredToService_SnomedCtField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime ActivityServiceRequestDate_EmergencyCare
return this.activityServiceRequestDate_EmergencyCareField;
this.activityServiceRequestDate_EmergencyCareField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime ActivityServiceRequestTime_EmergencyCare
return this.activityServiceRequestTime_EmergencyCareField;
this.activityServiceRequestTime_EmergencyCareField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime ReferredToServiceAssessmentDate
return this.referredToServiceAssessmentDateField;
this.referredToServiceAssessmentDateField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ReferredToServiceAssessmentDateSpecified
return this.referredToServiceAssessmentDateFieldSpecified;
this.referredToServiceAssessmentDateFieldSpecified = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime ReferredToServiceAssessmentTime
return this.referredToServiceAssessmentTimeField;
this.referredToServiceAssessmentTimeField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ReferredToServiceAssessmentTimeSpecified
return this.referredToServiceAssessmentTimeFieldSpecified;
this.referredToServiceAssessmentTimeFieldSpecified = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class AttendanceOccurrence_EC_StructureDischargeFromEmergencyCare
private System.DateTime decidedToAdmitDateField;
private bool decidedToAdmitDateFieldSpecified;
private System.DateTime decidedToAdmitTimeField;
private bool decidedToAdmitTimeFieldSpecified;
private string activityTreatmentFunctionCode_DecisionToAdmitField;
private System.DateTime emergencyCareClinicallyReadyToProceedTimeStampField;
private bool emergencyCareClinicallyReadyToProceedTimeStampFieldSpecified;
private string emergencyCareDischargeStatus_SnomedCtField;
private System.DateTime emergencyCareDepartureDateField;
private bool emergencyCareDepartureDateFieldSpecified;
private System.DateTime emergencyCareDepartureTimeField;
private bool emergencyCareDepartureTimeFieldSpecified;
private string[] safeguardingConcern_SnomedCtField;
private string emergencyCareDischargeDestination_SnomedCtField;
private string organisationSiteIdentifier_DischargeFromEmergencyCareField;
private string emergencyCareDischargeFollowUp_SnomedCtField;
private string emergencyCareDischargeInformationGiven_SnomedCtField;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime DecidedToAdmitDate
return this.decidedToAdmitDateField;
this.decidedToAdmitDateField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool DecidedToAdmitDateSpecified
return this.decidedToAdmitDateFieldSpecified;
this.decidedToAdmitDateFieldSpecified = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime DecidedToAdmitTime
return this.decidedToAdmitTimeField;
this.decidedToAdmitTimeField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool DecidedToAdmitTimeSpecified
return this.decidedToAdmitTimeFieldSpecified;
this.decidedToAdmitTimeFieldSpecified = value;
public string ActivityTreatmentFunctionCode_DecisionToAdmit
return this.activityTreatmentFunctionCode_DecisionToAdmitField;
this.activityTreatmentFunctionCode_DecisionToAdmitField = value;
public System.DateTime EmergencyCareClinicallyReadyToProceedTimeStamp
return this.emergencyCareClinicallyReadyToProceedTimeStampField;
this.emergencyCareClinicallyReadyToProceedTimeStampField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareClinicallyReadyToProceedTimeStampSpecified
return this.emergencyCareClinicallyReadyToProceedTimeStampFieldSpecified;
this.emergencyCareClinicallyReadyToProceedTimeStampFieldSpecified = value;
public string EmergencyCareDischargeStatus_SnomedCt
return this.emergencyCareDischargeStatus_SnomedCtField;
this.emergencyCareDischargeStatus_SnomedCtField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime EmergencyCareDepartureDate
return this.emergencyCareDepartureDateField;
this.emergencyCareDepartureDateField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareDepartureDateSpecified
return this.emergencyCareDepartureDateFieldSpecified;
this.emergencyCareDepartureDateFieldSpecified = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime EmergencyCareDepartureTime
return this.emergencyCareDepartureTimeField;
this.emergencyCareDepartureTimeField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareDepartureTimeSpecified
return this.emergencyCareDepartureTimeFieldSpecified;
this.emergencyCareDepartureTimeFieldSpecified = value;
[System.Xml.Serialization.XmlElementAttribute("SafeguardingConcern_SnomedCt")]
public string[] SafeguardingConcern_SnomedCt
return this.safeguardingConcern_SnomedCtField;
this.safeguardingConcern_SnomedCtField = value;
public string EmergencyCareDischargeDestination_SnomedCt
return this.emergencyCareDischargeDestination_SnomedCtField;
this.emergencyCareDischargeDestination_SnomedCtField = value;
public string OrganisationSiteIdentifier_DischargeFromEmergencyCare
return this.organisationSiteIdentifier_DischargeFromEmergencyCareField;
this.organisationSiteIdentifier_DischargeFromEmergencyCareField = value;
public string EmergencyCareDischargeFollowUp_SnomedCt
return this.emergencyCareDischargeFollowUp_SnomedCtField;
this.emergencyCareDischargeFollowUp_SnomedCtField = value;
public string EmergencyCareDischargeInformationGiven_SnomedCt
return this.emergencyCareDischargeInformationGiven_SnomedCtField;
this.emergencyCareDischargeInformationGiven_SnomedCtField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class AttendanceOccurrence_EC_StructureResearchAndDiseaseOutbreakNotification
private string clinicalTrialIdentifierField;
private string diseaseOutBreakNotificationSnomedCtField;
private string diseaseOutBreakNotificationDescriptionField;
public string ClinicalTrialIdentifier
return this.clinicalTrialIdentifierField;
this.clinicalTrialIdentifierField = value;
public string DiseaseOutBreakNotificationSnomedCt
return this.diseaseOutBreakNotificationSnomedCtField;
this.diseaseOutBreakNotificationSnomedCtField = value;
public string DiseaseOutBreakNotificationDescription
return this.diseaseOutBreakNotificationDescriptionField;
this.diseaseOutBreakNotificationDescriptionField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class GPRegistration_Structure
private string generalMedicalPractitioner_Specified1Field;
private string generalPractice_PatientRegistrationField;
[System.Xml.Serialization.XmlElementAttribute("GeneralMedicalPractitioner_Specified")]
public string GeneralMedicalPractitioner_Specified1
return this.generalMedicalPractitioner_Specified1Field;
this.generalMedicalPractitioner_Specified1Field = value;
public string GeneralPractice_PatientRegistration
return this.generalPractice_PatientRegistrationField;
this.generalPractice_PatientRegistrationField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PatientCharacteristics_EmergencyCare_Structure
private PersonStatedGenderCode_EC_Type personStatedGenderCodeField;
private bool personStatedGenderCodeFieldSpecified;
private string ethnicCategoryField;
private string ethnicCategory2021Field;
private string accommodationStatus_SnomedCtField;
private string preferredSpokenLanguage_SnomedCtField;
private string accessibleInformationProfessionalRequiredCode_SnomedCtField;
private string interpreterLanguage_SnomedCtField;
private Overseas_EC_Type overseasVisitorChargingCategoryAtCdsActivityDateField;
private bool overseasVisitorChargingCategoryAtCdsActivityDateFieldSpecified;
public PersonStatedGenderCode_EC_Type PersonStatedGenderCode
return this.personStatedGenderCodeField;
this.personStatedGenderCodeField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool PersonStatedGenderCodeSpecified
return this.personStatedGenderCodeFieldSpecified;
this.personStatedGenderCodeFieldSpecified = value;
public string EthnicCategory
return this.ethnicCategoryField;
this.ethnicCategoryField = value;
public string EthnicCategory2021
return this.ethnicCategory2021Field;
this.ethnicCategory2021Field = value;
public string AccommodationStatus_SnomedCt
return this.accommodationStatus_SnomedCtField;
this.accommodationStatus_SnomedCtField = value;
public string PreferredSpokenLanguage_SnomedCt
return this.preferredSpokenLanguage_SnomedCtField;
this.preferredSpokenLanguage_SnomedCtField = value;
public string AccessibleInformationProfessionalRequiredCode_SnomedCt
return this.accessibleInformationProfessionalRequiredCode_SnomedCtField;
this.accessibleInformationProfessionalRequiredCode_SnomedCtField = value;
public string InterpreterLanguage_SnomedCt
return this.interpreterLanguage_SnomedCtField;
this.interpreterLanguage_SnomedCtField = value;
public Overseas_EC_Type OverseasVisitorChargingCategoryAtCdsActivityDate
return this.overseasVisitorChargingCategoryAtCdsActivityDateField;
this.overseasVisitorChargingCategoryAtCdsActivityDateField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool OverseasVisitorChargingCategoryAtCdsActivityDateSpecified
return this.overseasVisitorChargingCategoryAtCdsActivityDateFieldSpecified;
this.overseasVisitorChargingCategoryAtCdsActivityDateFieldSpecified = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public enum PersonStatedGenderCode_EC_Type
[System.Xml.Serialization.XmlEnumAttribute("1")]
[System.Xml.Serialization.XmlEnumAttribute("2")]
[System.Xml.Serialization.XmlEnumAttribute("9")]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public enum Overseas_EC_Type
[System.Xml.Serialization.XmlEnumAttribute("9")]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class Address_Structure
private string[] itemsField;
private ItemsChoiceType[] itemsElementNameField;
[System.Xml.Serialization.XmlElementAttribute("StructuredAddress", typeof(string))]
[System.Xml.Serialization.XmlElementAttribute("UnstructuredAddress", typeof(string))]
[System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
[System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
[System.Xml.Serialization.XmlIgnoreAttribute()]
public ItemsChoiceType[] ItemsElementName
return this.itemsElementNameField;
this.itemsElementNameField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns", IncludeInSchema = false)]
public enum ItemsChoiceType
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PersonName_Structure
private object itemField;
private ItemChoiceType1 itemElementNameField;
[System.Xml.Serialization.XmlElementAttribute("PersonFullName", typeof(string))]
[System.Xml.Serialization.XmlElementAttribute("PersonName_Structured", typeof(PersonName_StructurePersonName_Structured))]
[System.Xml.Serialization.XmlElementAttribute("PersonRequestedName", typeof(string))]
[System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")]
[System.Xml.Serialization.XmlIgnoreAttribute()]
public ItemChoiceType1 ItemElementName
return this.itemElementNameField;
this.itemElementNameField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PersonName_StructurePersonName_Structured
private string personTitleField;
private string personGivenNameField;
private string personFamilyNameField;
private string personNameSuffixField;
private string personInitialsField;
public string PersonTitle
return this.personTitleField;
this.personTitleField = value;
public string PersonGivenName
return this.personGivenNameField;
this.personGivenNameField = value;
public string PersonFamilyName
return this.personFamilyNameField;
this.personFamilyNameField = value;
public string PersonNameSuffix
return this.personNameSuffixField;
this.personNameSuffixField = value;
public string PersonInitials
return this.personInitialsField;
this.personInitialsField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns", IncludeInSchema = false)]
public enum ItemChoiceType1
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PatientIdentity
private object itemField;
[System.Xml.Serialization.XmlElementAttribute("UnverifiedIdentity_Structure", typeof(PatientIdentityUnverifiedIdentity_Structure))]
[System.Xml.Serialization.XmlElementAttribute("VerifiedIdentity_Structure", typeof(PatientIdentityVerifiedIdentity_Structure))]
[System.Xml.Serialization.XmlElementAttribute("WithheldIdentity_Structure", typeof(PatientIdentityWithheldIdentity_Structure))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PatientIdentityUnverifiedIdentity_Structure
private PatientIdentityUnverifiedIdentity_StructureLocalIdentifierStructure localIdentifierStructureField;
private PatientIdentityUnverifiedIdentity_StructureDataElementStructure dataElementStructureField;
private PatientIdentityUnverifiedIdentity_StructureDataElementStructure2 dataElementStructure2Field;
private NHSNumberStatusIndicatorCode_Unverified_Type nHSNumberStatusIndicatorCodeField;
public PatientIdentityUnverifiedIdentity_StructureLocalIdentifierStructure LocalIdentifierStructure
return this.localIdentifierStructureField;
this.localIdentifierStructureField = value;
public PatientIdentityUnverifiedIdentity_StructureDataElementStructure DataElementStructure
return this.dataElementStructureField;
this.dataElementStructureField = value;
public PatientIdentityUnverifiedIdentity_StructureDataElementStructure2 DataElementStructure2
return this.dataElementStructure2Field;
this.dataElementStructure2Field = value;
[System.Xml.Serialization.XmlAttributeAttribute()]
public NHSNumberStatusIndicatorCode_Unverified_Type NHSNumberStatusIndicatorCode
return this.nHSNumberStatusIndicatorCodeField;
this.nHSNumberStatusIndicatorCodeField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PatientIdentityUnverifiedIdentity_StructureLocalIdentifierStructure
private string localPatientIdentifier_ExtendedField;
private string organisationIdentifier_LocalPatientIdentifierField;
public string LocalPatientIdentifier_Extended
return this.localPatientIdentifier_ExtendedField;
this.localPatientIdentifier_ExtendedField = value;
public string OrganisationIdentifier_LocalPatientIdentifier
return this.organisationIdentifier_LocalPatientIdentifierField;
this.organisationIdentifier_LocalPatientIdentifierField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PatientIdentityUnverifiedIdentity_StructureDataElementStructure
private string nHSNumberField;
private NHSNumberStatusIndicatorCode_Unverified_Type nHSNumberStatusIndicatorCodeField;
private PersonName_Structure patientNameField;
private Address_Structure patientUsualAddressField;
return this.nHSNumberField;
this.nHSNumberField = value;
public NHSNumberStatusIndicatorCode_Unverified_Type NHSNumberStatusIndicatorCode
return this.nHSNumberStatusIndicatorCodeField;
this.nHSNumberStatusIndicatorCodeField = value;
public PersonName_Structure PatientName
return this.patientNameField;
this.patientNameField = value;
public Address_Structure PatientUsualAddress
return this.patientUsualAddressField;
this.patientUsualAddressField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public enum NHSNumberStatusIndicatorCode_Unverified_Type
[System.Xml.Serialization.XmlEnumAttribute("02")]
[System.Xml.Serialization.XmlEnumAttribute("03")]
[System.Xml.Serialization.XmlEnumAttribute("04")]
[System.Xml.Serialization.XmlEnumAttribute("05")]
[System.Xml.Serialization.XmlEnumAttribute("06")]
[System.Xml.Serialization.XmlEnumAttribute("07")]
[System.Xml.Serialization.XmlEnumAttribute("08")]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PatientIdentityUnverifiedIdentity_StructureDataElementStructure2
private string postcodeOfUsualAddressField;
private string organisationIdentifier_ResidenceResponsibilityField;
private System.DateTime personBirthDateField;
private bool personBirthDateFieldSpecified;
public string PostcodeOfUsualAddress
return this.postcodeOfUsualAddressField;
this.postcodeOfUsualAddressField = value;
public string OrganisationIdentifier_ResidenceResponsibility
return this.organisationIdentifier_ResidenceResponsibilityField;
this.organisationIdentifier_ResidenceResponsibilityField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime PersonBirthDate
return this.personBirthDateField;
this.personBirthDateField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool PersonBirthDateSpecified
return this.personBirthDateFieldSpecified;
this.personBirthDateFieldSpecified = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PatientIdentityVerifiedIdentity_Structure
private PatientIdentityVerifiedIdentity_StructureLocalIdentifierStructure localIdentifierStructureField;
private PatientIdentityVerifiedIdentity_StructureDataElementStructure dataElementStructureField;
private NHSNumberStatusIndicatorCode_Verified_Type nHSNumberStatusIndicatorCodeField;
public PatientIdentityVerifiedIdentity_StructureLocalIdentifierStructure LocalIdentifierStructure
return this.localIdentifierStructureField;
this.localIdentifierStructureField = value;
public PatientIdentityVerifiedIdentity_StructureDataElementStructure DataElementStructure
return this.dataElementStructureField;
this.dataElementStructureField = value;
[System.Xml.Serialization.XmlAttributeAttribute()]
public NHSNumberStatusIndicatorCode_Verified_Type NHSNumberStatusIndicatorCode
return this.nHSNumberStatusIndicatorCodeField;
this.nHSNumberStatusIndicatorCodeField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PatientIdentityVerifiedIdentity_StructureLocalIdentifierStructure
private string localPatientIdentifier_ExtendedField;
private string organisationIdentifier_LocalPatientIdentifierField;
public string LocalPatientIdentifier_Extended
return this.localPatientIdentifier_ExtendedField;
this.localPatientIdentifier_ExtendedField = value;
public string OrganisationIdentifier_LocalPatientIdentifier
return this.organisationIdentifier_LocalPatientIdentifierField;
this.organisationIdentifier_LocalPatientIdentifierField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PatientIdentityVerifiedIdentity_StructureDataElementStructure
private string nHSNumberField;
private NHSNumberStatusIndicatorCode_Verified_Type nHSNumberStatusIndicatorCodeField;
private string postcodeOfUsualAddressField;
private string organisationIdentifier_ResidenceResponsibilityField;
private System.DateTime personBirthDateField;
private bool personBirthDateFieldSpecified;
return this.nHSNumberField;
this.nHSNumberField = value;
public NHSNumberStatusIndicatorCode_Verified_Type NHSNumberStatusIndicatorCode
return this.nHSNumberStatusIndicatorCodeField;
this.nHSNumberStatusIndicatorCodeField = value;
public string PostcodeOfUsualAddress
return this.postcodeOfUsualAddressField;
this.postcodeOfUsualAddressField = value;
public string OrganisationIdentifier_ResidenceResponsibility
return this.organisationIdentifier_ResidenceResponsibilityField;
this.organisationIdentifier_ResidenceResponsibilityField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime PersonBirthDate
return this.personBirthDateField;
this.personBirthDateField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool PersonBirthDateSpecified
return this.personBirthDateFieldSpecified;
this.personBirthDateFieldSpecified = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public enum NHSNumberStatusIndicatorCode_Verified_Type
[System.Xml.Serialization.XmlEnumAttribute("01")]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PatientIdentityWithheldIdentity_Structure
private NHSNumberStatusIndicatorCode_Withheld_Type nHSNumberStatusIndicatorCodeField;
private string organisationIdentifier_ResidenceResponsibilityField;
private WithheldIdentityReason_Type withheldIdentityReasonField;
private bool withheldIdentityReasonFieldSpecified;
private NHSNumberStatusIndicatorCode_Withheld_Type nHSNumberStatusIndicatorCode1Field;
public NHSNumberStatusIndicatorCode_Withheld_Type NHSNumberStatusIndicatorCode
return this.nHSNumberStatusIndicatorCodeField;
this.nHSNumberStatusIndicatorCodeField = value;
public string OrganisationIdentifier_ResidenceResponsibility
return this.organisationIdentifier_ResidenceResponsibilityField;
this.organisationIdentifier_ResidenceResponsibilityField = value;
public WithheldIdentityReason_Type WithheldIdentityReason
return this.withheldIdentityReasonField;
this.withheldIdentityReasonField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool WithheldIdentityReasonSpecified
return this.withheldIdentityReasonFieldSpecified;
this.withheldIdentityReasonFieldSpecified = value;
[System.Xml.Serialization.XmlAttributeAttribute("NHSNumberStatusIndicatorCode")]
public NHSNumberStatusIndicatorCode_Withheld_Type NHSNumberStatusIndicatorCode1
return this.nHSNumberStatusIndicatorCode1Field;
this.nHSNumberStatusIndicatorCode1Field = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public enum NHSNumberStatusIndicatorCode_Withheld_Type
[System.Xml.Serialization.XmlEnumAttribute("01")]
[System.Xml.Serialization.XmlEnumAttribute("02")]
[System.Xml.Serialization.XmlEnumAttribute("03")]
[System.Xml.Serialization.XmlEnumAttribute("04")]
[System.Xml.Serialization.XmlEnumAttribute("05")]
[System.Xml.Serialization.XmlEnumAttribute("06")]
[System.Xml.Serialization.XmlEnumAttribute("07")]
[System.Xml.Serialization.XmlEnumAttribute("08")]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public enum WithheldIdentityReason_Type
[System.Xml.Serialization.XmlEnumAttribute("01")]
[System.Xml.Serialization.XmlEnumAttribute("02")]
[System.Xml.Serialization.XmlEnumAttribute("03")]
[System.Xml.Serialization.XmlEnumAttribute("97")]
[System.Xml.Serialization.XmlEnumAttribute("99")]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PersonGroupPatient_EC_Structure
private PatientIdentity patientIdentityField;
private PatientCharacteristics_EmergencyCare_Structure patientCharacteristics_EmergencyCareField;
private PersonGroupPatient_EC_StructureMentalHealthActLegalStatus[] mentalHealthActLegalStatusField;
public PatientIdentity PatientIdentity
return this.patientIdentityField;
this.patientIdentityField = value;
public PatientCharacteristics_EmergencyCare_Structure PatientCharacteristics_EmergencyCare
return this.patientCharacteristics_EmergencyCareField;
this.patientCharacteristics_EmergencyCareField = value;
[System.Xml.Serialization.XmlElementAttribute("MentalHealthActLegalStatus")]
public PersonGroupPatient_EC_StructureMentalHealthActLegalStatus[] MentalHealthActLegalStatus
return this.mentalHealthActLegalStatusField;
this.mentalHealthActLegalStatusField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PersonGroupPatient_EC_StructureMentalHealthActLegalStatus
private System.DateTime startDate_MentalHealthActLegalStatusClassificationAssignmentPeriodField;
private bool startDate_MentalHealthActLegalStatusClassificationAssignmentPeriodFieldSpecified;
private System.DateTime startTime_MentalHealthActLegalStatusClassificationAssignmentPeriodField;
private bool startTime_MentalHealthActLegalStatusClassificationAssignmentPeriodFieldSpecified;
private System.DateTime expiryDate_MentalHealthActLegalStatusClassificationField;
private bool expiryDate_MentalHealthActLegalStatusClassificationFieldSpecified;
private System.DateTime expiryTime_MentalHealthActLegalStatusClassificationField;
private bool expiryTime_MentalHealthActLegalStatusClassificationFieldSpecified;
private string mentalHealthActLegalStatusClassificationCodeField;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime StartDate_MentalHealthActLegalStatusClassificationAssignmentPeriod
return this.startDate_MentalHealthActLegalStatusClassificationAssignmentPeriodField;
this.startDate_MentalHealthActLegalStatusClassificationAssignmentPeriodField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool StartDate_MentalHealthActLegalStatusClassificationAssignmentPeriodSpecified
return this.startDate_MentalHealthActLegalStatusClassificationAssignmentPeriodFieldSpecified;
this.startDate_MentalHealthActLegalStatusClassificationAssignmentPeriodFieldSpecified = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime StartTime_MentalHealthActLegalStatusClassificationAssignmentPeriod
return this.startTime_MentalHealthActLegalStatusClassificationAssignmentPeriodField;
this.startTime_MentalHealthActLegalStatusClassificationAssignmentPeriodField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool StartTime_MentalHealthActLegalStatusClassificationAssignmentPeriodSpecified
return this.startTime_MentalHealthActLegalStatusClassificationAssignmentPeriodFieldSpecified;
this.startTime_MentalHealthActLegalStatusClassificationAssignmentPeriodFieldSpecified = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime ExpiryDate_MentalHealthActLegalStatusClassification
return this.expiryDate_MentalHealthActLegalStatusClassificationField;
this.expiryDate_MentalHealthActLegalStatusClassificationField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ExpiryDate_MentalHealthActLegalStatusClassificationSpecified
return this.expiryDate_MentalHealthActLegalStatusClassificationFieldSpecified;
this.expiryDate_MentalHealthActLegalStatusClassificationFieldSpecified = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime ExpiryTime_MentalHealthActLegalStatusClassification
return this.expiryTime_MentalHealthActLegalStatusClassificationField;
this.expiryTime_MentalHealthActLegalStatusClassificationField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ExpiryTime_MentalHealthActLegalStatusClassificationSpecified
return this.expiryTime_MentalHealthActLegalStatusClassificationFieldSpecified;
this.expiryTime_MentalHealthActLegalStatusClassificationFieldSpecified = value;
public string MentalHealthActLegalStatusClassificationCode
return this.mentalHealthActLegalStatusClassificationCodeField;
this.mentalHealthActLegalStatusClassificationCodeField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PatientPathway_EC_Structure
private PatientPathway_EC_StructurePatientPathwayIdentity patientPathwayIdentityField;
private PatientPathway_EC_StructureRTTPeriodCharacteristics rTTPeriodCharacteristicsField;
public PatientPathway_EC_StructurePatientPathwayIdentity PatientPathwayIdentity
return this.patientPathwayIdentityField;
this.patientPathwayIdentityField = value;
public PatientPathway_EC_StructureRTTPeriodCharacteristics RTTPeriodCharacteristics
return this.rTTPeriodCharacteristicsField;
this.rTTPeriodCharacteristicsField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PatientPathway_EC_StructurePatientPathwayIdentity
private string itemField;
private ItemChoiceType itemElementNameField;
private string organisationIdentifier_PatientPathwayIdentifierIssuerField;
[System.Xml.Serialization.XmlElementAttribute("PatientPathwayIdentifier", typeof(string))]
[System.Xml.Serialization.XmlElementAttribute("UniqueBookingReferenceNumber_Converted", typeof(string))]
[System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")]
[System.Xml.Serialization.XmlIgnoreAttribute()]
public ItemChoiceType ItemElementName
return this.itemElementNameField;
this.itemElementNameField = value;
public string OrganisationIdentifier_PatientPathwayIdentifierIssuer
return this.organisationIdentifier_PatientPathwayIdentifierIssuerField;
this.organisationIdentifier_PatientPathwayIdentifierIssuerField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns", IncludeInSchema = false)]
public enum ItemChoiceType
PatientPathwayIdentifier,
UniqueBookingReferenceNumber_Converted,
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PatientPathway_EC_StructureRTTPeriodCharacteristics
private ReferralToTreatmentPeriod_Status_Type referralToTreatmentPeriod_StatusField;
private WaitingTimeMeasurementType_Type waitingTimeMeasurementTypeField;
private System.DateTime referralToTreatmentPeriod_StartDateField;
private bool referralToTreatmentPeriod_StartDateFieldSpecified;
private System.DateTime referralToTreatmentPeriod_EndDateField;
private bool referralToTreatmentPeriod_EndDateFieldSpecified;
public ReferralToTreatmentPeriod_Status_Type ReferralToTreatmentPeriod_Status
return this.referralToTreatmentPeriod_StatusField;
this.referralToTreatmentPeriod_StatusField = value;
public WaitingTimeMeasurementType_Type WaitingTimeMeasurementType
return this.waitingTimeMeasurementTypeField;
this.waitingTimeMeasurementTypeField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime ReferralToTreatmentPeriod_StartDate
return this.referralToTreatmentPeriod_StartDateField;
this.referralToTreatmentPeriod_StartDateField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ReferralToTreatmentPeriod_StartDateSpecified
return this.referralToTreatmentPeriod_StartDateFieldSpecified;
this.referralToTreatmentPeriod_StartDateFieldSpecified = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime ReferralToTreatmentPeriod_EndDate
return this.referralToTreatmentPeriod_EndDateField;
this.referralToTreatmentPeriod_EndDateField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ReferralToTreatmentPeriod_EndDateSpecified
return this.referralToTreatmentPeriod_EndDateFieldSpecified;
this.referralToTreatmentPeriod_EndDateFieldSpecified = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public enum ReferralToTreatmentPeriod_Status_Type
[System.Xml.Serialization.XmlEnumAttribute("10")]
[System.Xml.Serialization.XmlEnumAttribute("11")]
[System.Xml.Serialization.XmlEnumAttribute("12")]
[System.Xml.Serialization.XmlEnumAttribute("20")]
[System.Xml.Serialization.XmlEnumAttribute("21")]
[System.Xml.Serialization.XmlEnumAttribute("30")]
[System.Xml.Serialization.XmlEnumAttribute("31")]
[System.Xml.Serialization.XmlEnumAttribute("32")]
[System.Xml.Serialization.XmlEnumAttribute("33")]
[System.Xml.Serialization.XmlEnumAttribute("34")]
[System.Xml.Serialization.XmlEnumAttribute("35")]
[System.Xml.Serialization.XmlEnumAttribute("36")]
[System.Xml.Serialization.XmlEnumAttribute("90")]
[System.Xml.Serialization.XmlEnumAttribute("91")]
[System.Xml.Serialization.XmlEnumAttribute("92")]
[System.Xml.Serialization.XmlEnumAttribute("98")]
[System.Xml.Serialization.XmlEnumAttribute("99")]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public enum WaitingTimeMeasurementType_Type
[System.Xml.Serialization.XmlEnumAttribute("01")]
[System.Xml.Serialization.XmlEnumAttribute("02")]
[System.Xml.Serialization.XmlEnumAttribute("09")]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class EmergencyCare_Stucture
private PatientPathway_EC_Structure patientPathwayField;
private PersonGroupPatient_EC_Structure personGroupPatientField;
private GPRegistration_Structure gPRegistrationField;
private EmergencyCare_StuctureEmergencyCareAttendanceLocation emergencyCareAttendanceLocationField;
private AttendanceOccurrence_EC_Structure attendanceOccurrenceField;
public PatientPathway_EC_Structure PatientPathway
return this.patientPathwayField;
this.patientPathwayField = value;
public PersonGroupPatient_EC_Structure PersonGroupPatient
return this.personGroupPatientField;
this.personGroupPatientField = value;
public GPRegistration_Structure GPRegistration
return this.gPRegistrationField;
this.gPRegistrationField = value;
public EmergencyCare_StuctureEmergencyCareAttendanceLocation EmergencyCareAttendanceLocation
return this.emergencyCareAttendanceLocationField;
this.emergencyCareAttendanceLocationField = value;
public AttendanceOccurrence_EC_Structure AttendanceOccurrence
return this.attendanceOccurrenceField;
this.attendanceOccurrenceField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class EmergencyCare_StuctureEmergencyCareAttendanceLocation
private string organisationSiteIdentifier_OfTreatmentField;
private string emergencyCareDepartmentTypeField;
public string OrganisationSiteIdentifier_OfTreatment
return this.organisationSiteIdentifier_OfTreatmentField;
this.organisationSiteIdentifier_OfTreatmentField = value;
public string EmergencyCareDepartmentType
return this.emergencyCareDepartmentTypeField;
this.emergencyCareDepartmentTypeField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class CDSTransactionHeader_NetChange_Structure
private CDSTypeCode_Type cDSTypeCodeField;
private CDSProtocolIdentifierCode_Type cDSProtocolIdentifierCodeField;
private string cDSUniqueIdentifierField;
private CDSUpdateType_Type cDSUpdateTypeField;
private System.DateTime cDSApplicableDateField;
private System.DateTime cDSApplicableTimeField;
private System.DateTime cDSActivityDateField;
private string organisationIdentifier_CDSSenderField;
private string[] organisationIdentifier_CDSRecipientField;
public CDSTypeCode_Type CDSTypeCode
return this.cDSTypeCodeField;
this.cDSTypeCodeField = value;
public CDSProtocolIdentifierCode_Type CDSProtocolIdentifierCode
return this.cDSProtocolIdentifierCodeField;
this.cDSProtocolIdentifierCodeField = value;
public string CDSUniqueIdentifier
return this.cDSUniqueIdentifierField;
this.cDSUniqueIdentifierField = value;
public CDSUpdateType_Type CDSUpdateType
return this.cDSUpdateTypeField;
this.cDSUpdateTypeField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime CDSApplicableDate
return this.cDSApplicableDateField;
this.cDSApplicableDateField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime CDSApplicableTime
return this.cDSApplicableTimeField;
this.cDSApplicableTimeField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime CDSActivityDate
return this.cDSActivityDateField;
this.cDSActivityDateField = value;
public string OrganisationIdentifier_CDSSender
return this.organisationIdentifier_CDSSenderField;
this.organisationIdentifier_CDSSenderField = value;
[System.Xml.Serialization.XmlElementAttribute("OrganisationIdentifier_CDSRecipient")]
public string[] OrganisationIdentifier_CDSRecipient
return this.organisationIdentifier_CDSRecipientField;
this.organisationIdentifier_CDSRecipientField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public enum CDSUpdateType_Type
[System.Xml.Serialization.XmlEnumAttribute("1")]
[System.Xml.Serialization.XmlEnumAttribute("9")]
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class CDSMessageHeader_Structure
private CDSMessageType_Type cDSMessageTypeField;
private CDSMessageVersionNumber_Type cDSMessageVersionNumberField;
private string cDSMessageReferenceNumberField;
private string cDSMessageRecordIdentifierField;
public CDSMessageType_Type CDSMessageType
return this.cDSMessageTypeField;
this.cDSMessageTypeField = value;
public CDSMessageVersionNumber_Type CDSMessageVersionNumber
return this.cDSMessageVersionNumberField;
this.cDSMessageVersionNumberField = value;
[System.Xml.Serialization.XmlElementAttribute(DataType = "positiveInteger")]
public string CDSMessageReferenceNumber
return this.cDSMessageReferenceNumberField;
this.cDSMessageReferenceNumberField = value;
public string CDSMessageRecordIdentifier
return this.cDSMessageRecordIdentifierField;
this.cDSMessageRecordIdentifierField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public enum CDSMessageType_Type
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public enum CDSMessageVersionNumber_Type
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class CDSInterchange_StructureCDSBulkGroup160Message
private CDSMessageHeader_Structure cDSMessageHeaderField;
private CDSTransactionHeader_BulkUpdate_Structure cDSTransactionHeader_BulkUpdateField;
private EmergencyCare_Stucture emergencyCareField;
private CDSMessageTrailer_Structure cDSMessageTrailerField;
private CDSProtocolIdentifierCode_Type cDSProtocolIdentifierCodeField;
private CDSBulkReplacementGroupCode_Type cDSBulkReplacementGroupCodeField;
private CDSTypeCode_Type cDSTypeCodeField;
public CDSInterchange_StructureCDSBulkGroup160Message()
this.cDSProtocolIdentifierCodeField = CDSProtocolIdentifierCode_Type.Item020;
this.cDSBulkReplacementGroupCodeField = CDSBulkReplacementGroupCode_Type.Item160;
public CDSMessageHeader_Structure CDSMessageHeader
return this.cDSMessageHeaderField;
this.cDSMessageHeaderField = value;
public CDSTransactionHeader_BulkUpdate_Structure CDSTransactionHeader_BulkUpdate
return this.cDSTransactionHeader_BulkUpdateField;
this.cDSTransactionHeader_BulkUpdateField = value;
public EmergencyCare_Stucture EmergencyCare
return this.emergencyCareField;
this.emergencyCareField = value;
public CDSMessageTrailer_Structure CDSMessageTrailer
return this.cDSMessageTrailerField;
this.cDSMessageTrailerField = value;
[System.Xml.Serialization.XmlAttributeAttribute()]
public CDSProtocolIdentifierCode_Type CDSProtocolIdentifierCode
return this.cDSProtocolIdentifierCodeField;
this.cDSProtocolIdentifierCodeField = value;
[System.Xml.Serialization.XmlAttributeAttribute()]
public CDSBulkReplacementGroupCode_Type CDSBulkReplacementGroupCode
return this.cDSBulkReplacementGroupCodeField;
this.cDSBulkReplacementGroupCodeField = value;
[System.Xml.Serialization.XmlAttributeAttribute()]
public CDSTypeCode_Type CDSTypeCode
return this.cDSTypeCodeField;
this.cDSTypeCodeField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class CDSInterchange_StructureCDSNetChangeAllMessageTypes
private CDSMessageHeader_Structure cDSMessageHeaderField;
private CDSTransactionHeader_NetChange_Structure cDSTransactionHeader_NetChangeField;
private object itemField;
private CDSMessageTrailer_Structure cDSMessageTrailerField;
private CDSProtocolIdentifierCode_Type cDSProtocolIdentifierCodeField;
private CDSTypeCode_Type cDSTypeCodeField;
public CDSInterchange_StructureCDSNetChangeAllMessageTypes()
this.cDSProtocolIdentifierCodeField = CDSProtocolIdentifierCode_Type.Item010;
public CDSMessageHeader_Structure CDSMessageHeader
return this.cDSMessageHeaderField;
this.cDSMessageHeaderField = value;
public CDSTransactionHeader_NetChange_Structure CDSTransactionHeader_NetChange
return this.cDSTransactionHeader_NetChangeField;
this.cDSTransactionHeader_NetChangeField = value;
[System.Xml.Serialization.XmlElementAttribute("DeleteTransaction", typeof(CDSInterchange_StructureCDSNetChangeAllMessageTypesDeleteTransaction))]
[System.Xml.Serialization.XmlElementAttribute("EmergencyCare", typeof(EmergencyCare_Stucture))]
public CDSMessageTrailer_Structure CDSMessageTrailer
return this.cDSMessageTrailerField;
this.cDSMessageTrailerField = value;
[System.Xml.Serialization.XmlAttributeAttribute()]
public CDSProtocolIdentifierCode_Type CDSProtocolIdentifierCode
return this.cDSProtocolIdentifierCodeField;
this.cDSProtocolIdentifierCodeField = value;
[System.Xml.Serialization.XmlAttributeAttribute()]
public CDSTypeCode_Type CDSTypeCode
return this.cDSTypeCodeField;
this.cDSTypeCodeField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class CDSInterchange_StructureCDSNetChangeAllMessageTypesDeleteTransaction