CSharp · Console
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Xml.Serialization;
using System.Xml;
using System.Xml.Linq;
using System.IO;
using System.Data;
using NUnit.Framework; //NUnit.Framework.AssertionException
using GenericNamespace;
//https://stackoverflow.com/questions/75454684/serialise-c-sharp-classes-to-xml-keeping-the-structure
#nullable enable
public static partial class XmlExtensions
{
/// Serialize a collection of items to a single XML File, combining their children under the root element of the first item
public static void SerializeCollectionToCombinedXml<T>(this IEnumerable<T> collection, XmlWriter writer, Func<Type, XmlSerializer>? serializer = default, bool omitStandardNamespaces = false)
{
XName? firstRootName = null;
foreach (var item in collection)
{
var doc = item.SerializeToXDocument(serializer, omitStandardNamespaces);
if (doc == null || doc.Root == null)
continue;
if (firstRootName == null)
{
writer.WriteStartDocument();
writer.WriteStartElement(doc.Root.GetPrefixOfNamespace(doc.Root.Name.Namespace), doc.Root.Name.LocalName, doc.Root.Name.NamespaceName);
foreach (var attr in doc.Root.Attributes())
{
writer.WriteAttributeString(doc.Root.GetPrefixOfNamespace(attr.Name.Namespace), attr.Name.LocalName, attr.Name.NamespaceName, attr.Value);
}
firstRootName = doc.Root.Name;
}
else
{
// TODO: decide whether to throw an exception if the current doc's root element differs from the first doc's root element;
//if (doc.Root.Name != firstRootName)
// throw new XmlException("doc.Root.Name != firstRootName");
}
foreach (var node in doc.Root.Nodes())
{
node.WriteTo(writer);
}
}
if (firstRootName == null)
throw new XmlException("Nothing written");
else
{
writer.WriteEndElement();
writer.WriteEndDocument();
}
}
/// Serialize a collection of items to a single XDocument, combining their children under the root element of the first item
public static XDocument SerializeCollectionToCombinedXDocument<T>(this IEnumerable<T> collection, Func<Type, XmlSerializer>? serializer = default, bool omitStandardNamespaces = false)
{
var doc = new XDocument();
using (var writer = doc.CreateWriter())
{
collection.SerializeCollectionToCombinedXml(writer, serializer, omitStandardNamespaces);
}
return doc;
}
public static XDocument SerializeToXDocument<T>(this T obj, Func<Type, XmlSerializer>? serializer = default, bool omitStandardNamespaces = false)
{
XmlSerializerNamespaces? ns = null;
if (omitStandardNamespaces)
(ns = new XmlSerializerNamespaces()).Add("", ""); // Disable the xmlns:xsi and xmlns:xsd lines.
return SerializeToXDocument(obj, serializer, ns);
}
public static XDocument SerializeToXDocument<T>(this T obj, Func<Type, XmlSerializer>? serializer, XmlSerializerNamespaces? ns)
{
var doc = new XDocument();
using (var writer = doc.CreateWriter())
{
(serializer?.Invoke(obj?.GetType() ?? typeof(T)) ?? new XmlSerializer(obj?.GetType() ?? typeof(T))).Serialize(writer, obj, ns);
}
return doc;
}
}
public static partial class XmlExtensions
{
static readonly Dictionary<(Type, string), XmlSerializer> serializers = new();
public static XmlSerializer GetSerializer(Type rootType, string includeClrNamespace)
{
lock (serializers)
{
if (!serializers.TryGetValue((rootType, includeClrNamespace), out var serializer))
serializer = serializers[(rootType, includeClrNamespace)] = CreateSerializer(rootType, includeClrNamespace);
return serializer;
}
}
static XmlSerializer CreateSerializer(Type rootType, string includeClrNamespace)
{
// Get all types in the GeneratedClasses namespace
var generatedTypes = rootType.Assembly.GetTypes().Where(t => t.Namespace == includeClrNamespace).ToArray();
return new XmlSerializer(rootType, generatedTypes);
}
}
public class TestClass
{
public static void Serialize<T>(List<T> objects, string filename)
{
using (var writer = XmlWriter.Create(filename, new XmlWriterSettings { Indent = true }))
{
objects.SerializeCollectionToCombinedXml(writer, t => XmlExtensions.GetSerializer(t, "GenericNamespace"), true);
}
// TODO: handle empty collections.
}
public static void Test()
{
// No definition for "objects" so I used CDSXMLInterchange from CDS-XML_Message_Root-V6-2-3.xsd and populated it with a few values.
List<object> objects = new()
{
new CDSXMLInterchange
{
Items = new object []
{
new CDSInterchange_StructureCDSBulkGroup160Message()
{
EmergencyCare = new EmergencyCare_Stucture()
{
PatientPathway = new PatientPathway_EC_Structure()
{
PatientPathwayIdentity = new PatientPathway_EC_StructurePatientPathwayIdentity()
{
Item = "bar",
ItemElementName = ItemChoiceType.UniqueBookingReferenceNumber_Converted,
OrganisationIdentifier_PatientPathwayIdentifierIssuer = "IdentifierIssuer bar",
},
},
},
},
},
},
new CDSXMLInterchange
{
Items = new object []
{
new CDSInterchange_StructureCDSBulkGroup160Message()
{
EmergencyCare = new EmergencyCare_Stucture()
{
PatientPathway = new PatientPathway_EC_Structure()
{
PatientPathwayIdentity = new PatientPathway_EC_StructurePatientPathwayIdentity()
{
Item = "foo",
ItemElementName = ItemChoiceType.UniqueBookingReferenceNumber_Converted,
OrganisationIdentifier_PatientPathwayIdentifierIssuer = "IdentifierIssuer foo",
},
},
},
},
},
},
};
Test(objects);
Console.WriteLine();
}
public static void Test(List<object> objects)
{
var filename = "Question75454684.xml";
Serialize(objects, filename);
Console.WriteLine("Successfully serialized objects:");
Console.WriteLine(File.ReadAllText(filename));
File.Delete(filename);
Console.WriteLine("\nEach item serialized individually:");
foreach (var item in objects)
{
var doc = new [] { item }.SerializeCollectionToCombinedXDocument(t => XmlExtensions.GetSerializer(t, "GenericNamespace"), true);
Console.WriteLine(doc);
Console.WriteLine();
}
}
}
public class Program
{
public static void Main()
{
Console.WriteLine("Environment version: {0} ({1}, {2})", System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription , Environment.Version, Environment.OSVersion);
Console.WriteLine();
try
{
TestClass.Test();
}
catch (Exception ex)
{
Console.WriteLine("Failed with unhandled exception: ");
Console.WriteLine(ex);
throw;
}
}
}
/****************************/
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.8806
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
//
// This source code was auto-generated by xsd, Version=2.0.50727.3038.
//
namespace GenericNamespace
{
using System.Xml.Serialization;
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(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);
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute(DataType = "NMTOKEN")]
public string SchemaVersion
{
get
{
return this.schemaVersionField;
}
set
{
this.schemaVersionField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute(DataType = "date")]
public System.DateTime SchemaDate
{
get
{
return this.schemaDateField;
}
set
{
this.schemaDateField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class CDSInterchange_Structure
{
private CDSInterchangeHeader_Structure cDSInterchangeHeaderField;
private object[] itemsField;
private CDSInterchangeTrailer_Structure cDSInterchangeTrailerField;
/// <remarks/>
public CDSInterchangeHeader_Structure CDSInterchangeHeader
{
get
{
return this.cDSInterchangeHeaderField;
}
set
{
this.cDSInterchangeHeaderField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("CDSBulkGroup-160-Message", typeof(CDSInterchange_StructureCDSBulkGroup160Message))]
[System.Xml.Serialization.XmlElementAttribute("CDSNetChange-All-MessageTypes", typeof(CDSInterchange_StructureCDSNetChangeAllMessageTypes))]
public object[] Items
{
get
{
return this.itemsField;
}
set
{
this.itemsField = value;
}
}
/// <remarks/>
public CDSInterchangeTrailer_Structure CDSInterchangeTrailer
{
get
{
return this.cDSInterchangeTrailerField;
}
set
{
this.cDSInterchangeTrailerField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://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;
/// <remarks/>
public string CDSInterchangeSenderIdentity
{
get
{
return this.cDSInterchangeSenderIdentityField;
}
set
{
this.cDSInterchangeSenderIdentityField = value;
}
}
/// <remarks/>
public string CDSInterchangeReceiverIdentity
{
get
{
return this.cDSInterchangeReceiverIdentityField;
}
set
{
this.cDSInterchangeReceiverIdentityField = value;
}
}
/// <remarks/>
public string CDSInterchangeControlReference
{
get
{
return this.cDSInterchangeControlReferenceField;
}
set
{
this.cDSInterchangeControlReferenceField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime CDSInterchangeDateOfPreparation
{
get
{
return this.cDSInterchangeDateOfPreparationField;
}
set
{
this.cDSInterchangeDateOfPreparationField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime CDSInterchangeTimeOfPreparation
{
get
{
return this.cDSInterchangeTimeOfPreparationField;
}
set
{
this.cDSInterchangeTimeOfPreparationField = value;
}
}
/// <remarks/>
public string CDSInterchangeApplicationReference
{
get
{
return this.cDSInterchangeApplicationReferenceField;
}
set
{
this.cDSInterchangeApplicationReferenceField = value;
}
}
/// <remarks/>
public string CDSInterchangeTestIndicator
{
get
{
return this.cDSInterchangeTestIndicatorField;
}
set
{
this.cDSInterchangeTestIndicatorField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://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;
/// <remarks/>
public string CDSInterchangeControlReference
{
get
{
return this.cDSInterchangeControlReferenceField;
}
set
{
this.cDSInterchangeControlReferenceField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "positiveInteger")]
public string CDSInterchangeControlCount
{
get
{
return this.cDSInterchangeControlCountField;
}
set
{
this.cDSInterchangeControlCountField = value;
}
}
/// <remarks/>
public string CDSInterchangeSenderIdentity
{
get
{
return this.cDSInterchangeSenderIdentityField;
}
set
{
this.cDSInterchangeSenderIdentityField = value;
}
}
/// <remarks/>
public string CDSInterchangeReceiverIdentity
{
get
{
return this.cDSInterchangeReceiverIdentityField;
}
set
{
this.cDSInterchangeReceiverIdentityField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://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;
/// <remarks/>
public CDSTypeCode_Type CDSTypeCode
{
get
{
return this.cDSTypeCodeField;
}
set
{
this.cDSTypeCodeField = value;
}
}
/// <remarks/>
public CDSProtocolIdentifierCode_Type CDSProtocolIdentifierCode
{
get
{
return this.cDSProtocolIdentifierCodeField;
}
set
{
this.cDSProtocolIdentifierCodeField = value;
}
}
/// <remarks/>
public string CDSUniqueIdentifier
{
get
{
return this.cDSUniqueIdentifierField;
}
set
{
this.cDSUniqueIdentifierField = value;
}
}
/// <remarks/>
public CDSBulkReplacementGroupCode_Type CDSBulkReplacementGroupCode
{
get
{
return this.cDSBulkReplacementGroupCodeField;
}
set
{
this.cDSBulkReplacementGroupCodeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime CDSExtractDate
{
get
{
return this.cDSExtractDateField;
}
set
{
this.cDSExtractDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime CDSExtractTime
{
get
{
return this.cDSExtractTimeField;
}
set
{
this.cDSExtractTimeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime CDSReportPeriodStartDate
{
get
{
return this.cDSReportPeriodStartDateField;
}
set
{
this.cDSReportPeriodStartDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime CDSReportPeriodEndDate
{
get
{
return this.cDSReportPeriodEndDateField;
}
set
{
this.cDSReportPeriodEndDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime CDSActivityDate
{
get
{
return this.cDSActivityDateField;
}
set
{
this.cDSActivityDateField = value;
}
}
/// <remarks/>
public string OrganisationIdentifier_CDSSender
{
get
{
return this.organisationIdentifier_CDSSenderField;
}
set
{
this.organisationIdentifier_CDSSenderField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("OrganisationIdentifier_CDSRecipient")]
public string[] OrganisationIdentifier_CDSRecipient
{
get
{
return this.organisationIdentifier_CDSRecipientField;
}
set
{
this.organisationIdentifier_CDSRecipientField = value;
}
}
}
/// <remarks/>
[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
{
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("011")]
Item011,
}
/// <remarks/>
[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
{
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("010")]
Item010,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("020")]
Item020,
}
/// <remarks/>
[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
{
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("160")]
Item160,
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class CDSMessageTrailer_Structure
{
private string cDSMessageReferenceNumberField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "positiveInteger")]
public string CDSMessageReferenceNumber
{
get
{
return this.cDSMessageReferenceNumberField;
}
set
{
this.cDSMessageReferenceNumberField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://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;
/// <remarks/>
public AttendanceOccurrence_EC_StructureAmbulanceDetails AmbulanceDetails
{
get
{
return this.ambulanceDetailsField;
}
set
{
this.ambulanceDetailsField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("ExpectedDateTimeOfTreatment")]
public AttendanceOccurrence_EC_StructureExpectedDateTimeOfTreatment[] ExpectedDateTimeOfTreatment
{
get
{
return this.expectedDateTimeOfTreatmentField;
}
set
{
this.expectedDateTimeOfTreatmentField = value;
}
}
/// <remarks/>
public AttendanceOccurrence_EC_StructureEmergencyCareAttendanceActivityCharacteristics EmergencyCareAttendanceActivityCharacteristics
{
get
{
return this.emergencyCareAttendanceActivityCharacteristicsField;
}
set
{
this.emergencyCareAttendanceActivityCharacteristicsField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("CodedScoredAssessment")]
public AttendanceOccurrence_EC_StructureCodedScoredAssessment[] CodedScoredAssessment
{
get
{
return this.codedScoredAssessmentField;
}
set
{
this.codedScoredAssessmentField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("CodedClinicalObservations")]
public AttendanceOccurrence_EC_StructureCodedClinicalObservations[] CodedClinicalObservations
{
get
{
return this.codedClinicalObservationsField;
}
set
{
this.codedClinicalObservationsField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("CodedClinicalFinding")]
public AttendanceOccurrence_EC_StructureCodedClinicalFinding[] CodedClinicalFinding
{
get
{
return this.codedClinicalFindingField;
}
set
{
this.codedClinicalFindingField = value;
}
}
/// <remarks/>
public AttendanceOccurrence_EC_StructureInjuryCharacteristics InjuryCharacteristics
{
get
{
return this.injuryCharacteristicsField;
}
set
{
this.injuryCharacteristicsField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlArrayItemAttribute("Comorbidity_SnomedCt", IsNullable = false)]
public string[] PatientClinicalHistory
{
get
{
return this.patientClinicalHistoryField;
}
set
{
this.patientClinicalHistoryField = value;
}
}
/// <remarks/>
public AttendanceOccurrence_EC_StructureServiceAgreementDetails ServiceAgreementDetails
{
get
{
return this.serviceAgreementDetailsField;
}
set
{
this.serviceAgreementDetailsField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("CareProfessionals_EmergencyCare")]
public AttendanceOccurrence_EC_StructureCareProfessionals_EmergencyCare[] CareProfessionals_EmergencyCare
{
get
{
return this.careProfessionals_EmergencyCareField;
}
set
{
this.careProfessionals_EmergencyCareField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("EmergencyCareDiagnoses_SnomedCt")]
public AttendanceOccurrence_EC_StructureEmergencyCareDiagnoses_SnomedCt[] EmergencyCareDiagnoses_SnomedCt
{
get
{
return this.emergencyCareDiagnoses_SnomedCtField;
}
set
{
this.emergencyCareDiagnoses_SnomedCtField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("EmergencyCareInvestigations_SnomedCt")]
public AttendanceOccurrence_EC_StructureEmergencyCareInvestigations_SnomedCt[] EmergencyCareInvestigations_SnomedCt
{
get
{
return this.emergencyCareInvestigations_SnomedCtField;
}
set
{
this.emergencyCareInvestigations_SnomedCtField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("EmergencyCareTreatments_SnomedCt")]
public AttendanceOccurrence_EC_StructureEmergencyCareTreatments_SnomedCt[] EmergencyCareTreatments_SnomedCt
{
get
{
return this.emergencyCareTreatments_SnomedCtField;
}
set
{
this.emergencyCareTreatments_SnomedCtField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("ReferralsToOtherServices")]
public AttendanceOccurrence_EC_StructureReferralsToOtherServices[] ReferralsToOtherServices
{
get
{
return this.referralsToOtherServicesField;
}
set
{
this.referralsToOtherServicesField = value;
}
}
/// <remarks/>
public AttendanceOccurrence_EC_StructureDischargeFromEmergencyCare DischargeFromEmergencyCare
{
get
{
return this.dischargeFromEmergencyCareField;
}
set
{
this.dischargeFromEmergencyCareField = value;
}
}
/// <remarks/>
public AttendanceOccurrence_EC_StructureResearchAndDiseaseOutbreakNotification ResearchAndDiseaseOutbreakNotification
{
get
{
return this.researchAndDiseaseOutbreakNotificationField;
}
set
{
this.researchAndDiseaseOutbreakNotificationField = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
public string AmbulanceCallIdentifier
{
get
{
return this.ambulanceCallIdentifierField;
}
set
{
this.ambulanceCallIdentifierField = value;
}
}
/// <remarks/>
public string OrganisationIdentifier_ConveyingAmbulanceTrust
{
get
{
return this.organisationIdentifier_ConveyingAmbulanceTrustField;
}
set
{
this.organisationIdentifier_ConveyingAmbulanceTrustField = value;
}
}
/// <remarks/>
public string CareContactIdentifier_AmbulanceService
{
get
{
return this.careContactIdentifier_AmbulanceServiceField;
}
set
{
this.careContactIdentifier_AmbulanceServiceField = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
public System.DateTime EmergencyCareExpectedDateTimestampTreatment
{
get
{
return this.emergencyCareExpectedDateTimestampTreatmentField;
}
set
{
this.emergencyCareExpectedDateTimestampTreatmentField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareExpectedDateTimestampTreatmentSpecified
{
get
{
return this.emergencyCareExpectedDateTimestampTreatmentFieldSpecified;
}
set
{
this.emergencyCareExpectedDateTimestampTreatmentFieldSpecified = value;
}
}
/// <remarks/>
public System.DateTime EmergencyCareTreatmentTimestamp
{
get
{
return this.emergencyCareTreatmentTimestampField;
}
set
{
this.emergencyCareTreatmentTimestampField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareTreatmentTimestampSpecified
{
get
{
return this.emergencyCareTreatmentTimestampFieldSpecified;
}
set
{
this.emergencyCareTreatmentTimestampFieldSpecified = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
public string EmergencyCareAttendanceIdentifier
{
get
{
return this.emergencyCareAttendanceIdentifierField;
}
set
{
this.emergencyCareAttendanceIdentifierField = value;
}
}
/// <remarks/>
public string EmergencyCareArrivalMode_SnomedCt
{
get
{
return this.emergencyCareArrivalMode_SnomedCtField;
}
set
{
this.emergencyCareArrivalMode_SnomedCtField = value;
}
}
/// <remarks/>
public AttendCat_EC_Type EmergencyCareAttendanceCategory
{
get
{
return this.emergencyCareAttendanceCategoryField;
}
set
{
this.emergencyCareAttendanceCategoryField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareAttendanceCategorySpecified
{
get
{
return this.emergencyCareAttendanceCategoryFieldSpecified;
}
set
{
this.emergencyCareAttendanceCategoryFieldSpecified = value;
}
}
/// <remarks/>
public string EmergencyCareAttendanceSource_SnomedCt
{
get
{
return this.emergencyCareAttendanceSource_SnomedCtField;
}
set
{
this.emergencyCareAttendanceSource_SnomedCtField = value;
}
}
/// <remarks/>
public string OrganisationSiteIdentifier_EmergencyCareAttendanceSource
{
get
{
return this.organisationSiteIdentifier_EmergencyCareAttendanceSourceField;
}
set
{
this.organisationSiteIdentifier_EmergencyCareAttendanceSourceField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime EmergencyCareArrivalDate
{
get
{
return this.emergencyCareArrivalDateField;
}
set
{
this.emergencyCareArrivalDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime EmergencyCareArrivalTime
{
get
{
return this.emergencyCareArrivalTimeField;
}
set
{
this.emergencyCareArrivalTimeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "nonNegativeInteger")]
public string AgeAtCdsActivityDate
{
get
{
return this.ageAtCdsActivityDateField;
}
set
{
this.ageAtCdsActivityDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime EmergencyCareInitialAssessmentDate
{
get
{
return this.emergencyCareInitialAssessmentDateField;
}
set
{
this.emergencyCareInitialAssessmentDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareInitialAssessmentDateSpecified
{
get
{
return this.emergencyCareInitialAssessmentDateFieldSpecified;
}
set
{
this.emergencyCareInitialAssessmentDateFieldSpecified = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime EmergencyCareInitialAssessmentTime
{
get
{
return this.emergencyCareInitialAssessmentTimeField;
}
set
{
this.emergencyCareInitialAssessmentTimeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareInitialAssessmentTimeSpecified
{
get
{
return this.emergencyCareInitialAssessmentTimeFieldSpecified;
}
set
{
this.emergencyCareInitialAssessmentTimeFieldSpecified = value;
}
}
/// <remarks/>
public string EmergencyCareAcuity_SnomedCt
{
get
{
return this.emergencyCareAcuity_SnomedCtField;
}
set
{
this.emergencyCareAcuity_SnomedCtField = value;
}
}
/// <remarks/>
public string EmergencyCareChiefComplaint_SnomedCt
{
get
{
return this.emergencyCareChiefComplaint_SnomedCtField;
}
set
{
this.emergencyCareChiefComplaint_SnomedCtField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime EmergencyCareDateSeenForTreatment
{
get
{
return this.emergencyCareDateSeenForTreatmentField;
}
set
{
this.emergencyCareDateSeenForTreatmentField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareDateSeenForTreatmentSpecified
{
get
{
return this.emergencyCareDateSeenForTreatmentFieldSpecified;
}
set
{
this.emergencyCareDateSeenForTreatmentFieldSpecified = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime EmergencyCareTimeSeenForTreatment
{
get
{
return this.emergencyCareTimeSeenForTreatmentField;
}
set
{
this.emergencyCareTimeSeenForTreatmentField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareTimeSeenForTreatmentSpecified
{
get
{
return this.emergencyCareTimeSeenForTreatmentFieldSpecified;
}
set
{
this.emergencyCareTimeSeenForTreatmentFieldSpecified = value;
}
}
}
/// <remarks/>
[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
{
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("1")]
Item1,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("2")]
Item2,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("3")]
Item3,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("4")]
Item4,
/// <remarks/>
X,
}
/// <remarks/>
[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;
/// <remarks/>
public string CodedAssessmentToolType_SnomedCt
{
get
{
return this.codedAssessmentToolType_SnomedCtField;
}
set
{
this.codedAssessmentToolType_SnomedCtField = value;
}
}
/// <remarks/>
public string PersonScore
{
get
{
return this.personScoreField;
}
set
{
this.personScoreField = value;
}
}
/// <remarks/>
public System.DateTime AssessmentToolValidationTimestamp
{
get
{
return this.assessmentToolValidationTimestampField;
}
set
{
this.assessmentToolValidationTimestampField = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
public string CodedObservation_SnomedCt
{
get
{
return this.codedObservation_SnomedCtField;
}
set
{
this.codedObservation_SnomedCtField = value;
}
}
/// <remarks/>
public string ObservationValue
{
get
{
return this.observationValueField;
}
set
{
this.observationValueField = value;
}
}
/// <remarks/>
public string UCUMunitOfMeasurement
{
get
{
return this.uCUMunitOfMeasurementField;
}
set
{
this.uCUMunitOfMeasurementField = value;
}
}
/// <remarks/>
public System.DateTime CodedObservationTimeStamp
{
get
{
return this.codedObservationTimeStampField;
}
set
{
this.codedObservationTimeStampField = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
public string CodedFinding_SnomedCt
{
get
{
return this.codedFinding_SnomedCtField;
}
set
{
this.codedFinding_SnomedCtField = value;
}
}
/// <remarks/>
public System.DateTime CodedFinding_TimeStamp
{
get
{
return this.codedFinding_TimeStampField;
}
set
{
this.codedFinding_TimeStampField = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime InjuryDate
{
get
{
return this.injuryDateField;
}
set
{
this.injuryDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime InjuryTime
{
get
{
return this.injuryTimeField;
}
set
{
this.injuryTimeField = value;
}
}
/// <remarks/>
public string EmergencyCarePlaceOfInjury_SnomedCt
{
get
{
return this.emergencyCarePlaceOfInjury_SnomedCtField;
}
set
{
this.emergencyCarePlaceOfInjury_SnomedCtField = value;
}
}
/// <remarks/>
public AttendanceOccurrence_EC_StructureInjuryCharacteristicsEmergencyCarePlaceOfInjury_LatitudeAndLongitude EmergencyCarePlaceOfInjury_LatitudeAndLongitude
{
get
{
return this.emergencyCarePlaceOfInjury_LatitudeAndLongitudeField;
}
set
{
this.emergencyCarePlaceOfInjury_LatitudeAndLongitudeField = value;
}
}
/// <remarks/>
public string EmergencyCareInjuryIntent_SnomedCt
{
get
{
return this.emergencyCareInjuryIntent_SnomedCtField;
}
set
{
this.emergencyCareInjuryIntent_SnomedCtField = value;
}
}
/// <remarks/>
public string EmergencyCareInjuryActivityStatus_SnomedCt
{
get
{
return this.emergencyCareInjuryActivityStatus_SnomedCtField;
}
set
{
this.emergencyCareInjuryActivityStatus_SnomedCtField = value;
}
}
/// <remarks/>
public string EmergencyCareInjuryActivityType_SnomedCt
{
get
{
return this.emergencyCareInjuryActivityType_SnomedCtField;
}
set
{
this.emergencyCareInjuryActivityType_SnomedCtField = value;
}
}
/// <remarks/>
public string EmergencyCareInjuryMechanism_SnomedCt
{
get
{
return this.emergencyCareInjuryMechanism_SnomedCtField;
}
set
{
this.emergencyCareInjuryMechanism_SnomedCtField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("EmergencyCareInjuryAlcoholOrDrugInvolvement_SnomedCt")]
public string[] EmergencyCareInjuryAlcoholOrDrugInvolvement_SnomedCt
{
get
{
return this.emergencyCareInjuryAlcoholOrDrugInvolvement_SnomedCtField;
}
set
{
this.emergencyCareInjuryAlcoholOrDrugInvolvement_SnomedCtField = value;
}
}
/// <remarks/>
public string AssaultLocationDescription
{
get
{
return this.assaultLocationDescriptionField;
}
set
{
this.assaultLocationDescriptionField = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
public decimal Latitude
{
get
{
return this.latitudeField;
}
set
{
this.latitudeField = value;
}
}
/// <remarks/>
public decimal Longitude
{
get
{
return this.longitudeField;
}
set
{
this.longitudeField = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
public string CommissioningSerialNumber
{
get
{
return this.commissioningSerialNumberField;
}
set
{
this.commissioningSerialNumberField = value;
}
}
/// <remarks/>
public string NhsServiceAgreementLineNumber
{
get
{
return this.nhsServiceAgreementLineNumberField;
}
set
{
this.nhsServiceAgreementLineNumberField = value;
}
}
/// <remarks/>
public string ProviderReferenceNumber
{
get
{
return this.providerReferenceNumberField;
}
set
{
this.providerReferenceNumberField = value;
}
}
/// <remarks/>
public string CommissionerReferenceNumber
{
get
{
return this.commissionerReferenceNumberField;
}
set
{
this.commissionerReferenceNumberField = value;
}
}
/// <remarks/>
public string OrganisationIdentifier_CodeOfProvider
{
get
{
return this.organisationIdentifier_CodeOfProviderField;
}
set
{
this.organisationIdentifier_CodeOfProviderField = value;
}
}
/// <remarks/>
public string OrganisationIdentifier_CodeOfCommissioner
{
get
{
return this.organisationIdentifier_CodeOfCommissionerField;
}
set
{
this.organisationIdentifier_CodeOfCommissionerField = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
public string ProfessionalRegistrationIssuerCode
{
get
{
return this.professionalRegistrationIssuerCodeField;
}
set
{
this.professionalRegistrationIssuerCodeField = value;
}
}
/// <remarks/>
public string ProfessionalRegistrationEntryIdentifier
{
get
{
return this.professionalRegistrationEntryIdentifierField;
}
set
{
this.professionalRegistrationEntryIdentifierField = value;
}
}
/// <remarks/>
public CareProfessionalTier_EC_Type CareProfessionalTier_EmergencyCare
{
get
{
return this.careProfessionalTier_EmergencyCareField;
}
set
{
this.careProfessionalTier_EmergencyCareField = value;
}
}
/// <remarks/>
public Yes_No_EC_Type CareProfessionalDischargeResponsibilityIndicator_EmergencyCare
{
get
{
return this.careProfessionalDischargeResponsibilityIndicator_EmergencyCareField;
}
set
{
this.careProfessionalDischargeResponsibilityIndicator_EmergencyCareField = value;
}
}
/// <remarks/>
public System.DateTime CareProfessionalClinicalResponsibilityTimeStamp
{
get
{
return this.careProfessionalClinicalResponsibilityTimeStampField;
}
set
{
this.careProfessionalClinicalResponsibilityTimeStampField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool CareProfessionalClinicalResponsibilityTimeStampSpecified
{
get
{
return this.careProfessionalClinicalResponsibilityTimeStampFieldSpecified;
}
set
{
this.careProfessionalClinicalResponsibilityTimeStampFieldSpecified = value;
}
}
}
/// <remarks/>
[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
{
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("01")]
Item01,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("02")]
Item02,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("03")]
Item03,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("04")]
Item04,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("05")]
Item05,
}
/// <remarks/>
[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
{
/// <remarks/>
Y,
/// <remarks/>
N,
}
/// <remarks/>
[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;
/// <remarks/>
public string EmergencyCareDiagnosis_SnomedCt
{
get
{
return this.emergencyCareDiagnosis_SnomedCtField;
}
set
{
this.emergencyCareDiagnosis_SnomedCtField = value;
}
}
/// <remarks/>
public string CodedClinicalEntrySequenceNumber
{
get
{
return this.codedClinicalEntrySequenceNumberField;
}
set
{
this.codedClinicalEntrySequenceNumberField = value;
}
}
/// <remarks/>
public string EmergencyCareDiagnosisQualifier_SnomedCt
{
get
{
return this.emergencyCareDiagnosisQualifier_SnomedCtField;
}
set
{
this.emergencyCareDiagnosisQualifier_SnomedCtField = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
public string EmergencyCareClinicalInvestigation_SnomedCt
{
get
{
return this.emergencyCareClinicalInvestigation_SnomedCtField;
}
set
{
this.emergencyCareClinicalInvestigation_SnomedCtField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime ProcedureDate_EmergencyCareClinicalInvestigation
{
get
{
return this.procedureDate_EmergencyCareClinicalInvestigationField;
}
set
{
this.procedureDate_EmergencyCareClinicalInvestigationField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ProcedureDate_EmergencyCareClinicalInvestigationSpecified
{
get
{
return this.procedureDate_EmergencyCareClinicalInvestigationFieldSpecified;
}
set
{
this.procedureDate_EmergencyCareClinicalInvestigationFieldSpecified = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime ProcedureTime_EmergencyCareClinicalInvestigation
{
get
{
return this.procedureTime_EmergencyCareClinicalInvestigationField;
}
set
{
this.procedureTime_EmergencyCareClinicalInvestigationField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ProcedureTime_EmergencyCareClinicalInvestigationSpecified
{
get
{
return this.procedureTime_EmergencyCareClinicalInvestigationFieldSpecified;
}
set
{
this.procedureTime_EmergencyCareClinicalInvestigationFieldSpecified = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
public string EmergencyCareProcedure_SnomedCt
{
get
{
return this.emergencyCareProcedure_SnomedCtField;
}
set
{
this.emergencyCareProcedure_SnomedCtField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime ProcedureDate_EmergencyCareProcedure
{
get
{
return this.procedureDate_EmergencyCareProcedureField;
}
set
{
this.procedureDate_EmergencyCareProcedureField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ProcedureDate_EmergencyCareProcedureSpecified
{
get
{
return this.procedureDate_EmergencyCareProcedureFieldSpecified;
}
set
{
this.procedureDate_EmergencyCareProcedureFieldSpecified = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime ProcedureTime_EmergencyCareProcedure
{
get
{
return this.procedureTime_EmergencyCareProcedureField;
}
set
{
this.procedureTime_EmergencyCareProcedureField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ProcedureTime_EmergencyCareProcedureSpecified
{
get
{
return this.procedureTime_EmergencyCareProcedureFieldSpecified;
}
set
{
this.procedureTime_EmergencyCareProcedureFieldSpecified = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
public string ReferredToService_SnomedCt
{
get
{
return this.referredToService_SnomedCtField;
}
set
{
this.referredToService_SnomedCtField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime ActivityServiceRequestDate_EmergencyCare
{
get
{
return this.activityServiceRequestDate_EmergencyCareField;
}
set
{
this.activityServiceRequestDate_EmergencyCareField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime ActivityServiceRequestTime_EmergencyCare
{
get
{
return this.activityServiceRequestTime_EmergencyCareField;
}
set
{
this.activityServiceRequestTime_EmergencyCareField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime ReferredToServiceAssessmentDate
{
get
{
return this.referredToServiceAssessmentDateField;
}
set
{
this.referredToServiceAssessmentDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ReferredToServiceAssessmentDateSpecified
{
get
{
return this.referredToServiceAssessmentDateFieldSpecified;
}
set
{
this.referredToServiceAssessmentDateFieldSpecified = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime ReferredToServiceAssessmentTime
{
get
{
return this.referredToServiceAssessmentTimeField;
}
set
{
this.referredToServiceAssessmentTimeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ReferredToServiceAssessmentTimeSpecified
{
get
{
return this.referredToServiceAssessmentTimeFieldSpecified;
}
set
{
this.referredToServiceAssessmentTimeFieldSpecified = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime DecidedToAdmitDate
{
get
{
return this.decidedToAdmitDateField;
}
set
{
this.decidedToAdmitDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool DecidedToAdmitDateSpecified
{
get
{
return this.decidedToAdmitDateFieldSpecified;
}
set
{
this.decidedToAdmitDateFieldSpecified = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime DecidedToAdmitTime
{
get
{
return this.decidedToAdmitTimeField;
}
set
{
this.decidedToAdmitTimeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool DecidedToAdmitTimeSpecified
{
get
{
return this.decidedToAdmitTimeFieldSpecified;
}
set
{
this.decidedToAdmitTimeFieldSpecified = value;
}
}
/// <remarks/>
public string ActivityTreatmentFunctionCode_DecisionToAdmit
{
get
{
return this.activityTreatmentFunctionCode_DecisionToAdmitField;
}
set
{
this.activityTreatmentFunctionCode_DecisionToAdmitField = value;
}
}
/// <remarks/>
public System.DateTime EmergencyCareClinicallyReadyToProceedTimeStamp
{
get
{
return this.emergencyCareClinicallyReadyToProceedTimeStampField;
}
set
{
this.emergencyCareClinicallyReadyToProceedTimeStampField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareClinicallyReadyToProceedTimeStampSpecified
{
get
{
return this.emergencyCareClinicallyReadyToProceedTimeStampFieldSpecified;
}
set
{
this.emergencyCareClinicallyReadyToProceedTimeStampFieldSpecified = value;
}
}
/// <remarks/>
public string EmergencyCareDischargeStatus_SnomedCt
{
get
{
return this.emergencyCareDischargeStatus_SnomedCtField;
}
set
{
this.emergencyCareDischargeStatus_SnomedCtField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime EmergencyCareDepartureDate
{
get
{
return this.emergencyCareDepartureDateField;
}
set
{
this.emergencyCareDepartureDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareDepartureDateSpecified
{
get
{
return this.emergencyCareDepartureDateFieldSpecified;
}
set
{
this.emergencyCareDepartureDateFieldSpecified = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime EmergencyCareDepartureTime
{
get
{
return this.emergencyCareDepartureTimeField;
}
set
{
this.emergencyCareDepartureTimeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool EmergencyCareDepartureTimeSpecified
{
get
{
return this.emergencyCareDepartureTimeFieldSpecified;
}
set
{
this.emergencyCareDepartureTimeFieldSpecified = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("SafeguardingConcern_SnomedCt")]
public string[] SafeguardingConcern_SnomedCt
{
get
{
return this.safeguardingConcern_SnomedCtField;
}
set
{
this.safeguardingConcern_SnomedCtField = value;
}
}
/// <remarks/>
public string EmergencyCareDischargeDestination_SnomedCt
{
get
{
return this.emergencyCareDischargeDestination_SnomedCtField;
}
set
{
this.emergencyCareDischargeDestination_SnomedCtField = value;
}
}
/// <remarks/>
public string OrganisationSiteIdentifier_DischargeFromEmergencyCare
{
get
{
return this.organisationSiteIdentifier_DischargeFromEmergencyCareField;
}
set
{
this.organisationSiteIdentifier_DischargeFromEmergencyCareField = value;
}
}
/// <remarks/>
public string EmergencyCareDischargeFollowUp_SnomedCt
{
get
{
return this.emergencyCareDischargeFollowUp_SnomedCtField;
}
set
{
this.emergencyCareDischargeFollowUp_SnomedCtField = value;
}
}
/// <remarks/>
public string EmergencyCareDischargeInformationGiven_SnomedCt
{
get
{
return this.emergencyCareDischargeInformationGiven_SnomedCtField;
}
set
{
this.emergencyCareDischargeInformationGiven_SnomedCtField = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
public string ClinicalTrialIdentifier
{
get
{
return this.clinicalTrialIdentifierField;
}
set
{
this.clinicalTrialIdentifierField = value;
}
}
/// <remarks/>
public string DiseaseOutBreakNotificationSnomedCt
{
get
{
return this.diseaseOutBreakNotificationSnomedCtField;
}
set
{
this.diseaseOutBreakNotificationSnomedCtField = value;
}
}
/// <remarks/>
public string DiseaseOutBreakNotificationDescription
{
get
{
return this.diseaseOutBreakNotificationDescriptionField;
}
set
{
this.diseaseOutBreakNotificationDescriptionField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class GPRegistration_Structure
{
private string generalMedicalPractitioner_Specified1Field;
private string generalPractice_PatientRegistrationField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("GeneralMedicalPractitioner_Specified")]
public string GeneralMedicalPractitioner_Specified1
{
get
{
return this.generalMedicalPractitioner_Specified1Field;
}
set
{
this.generalMedicalPractitioner_Specified1Field = value;
}
}
/// <remarks/>
public string GeneralPractice_PatientRegistration
{
get
{
return this.generalPractice_PatientRegistrationField;
}
set
{
this.generalPractice_PatientRegistrationField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://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;
/// <remarks/>
public PersonStatedGenderCode_EC_Type PersonStatedGenderCode
{
get
{
return this.personStatedGenderCodeField;
}
set
{
this.personStatedGenderCodeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool PersonStatedGenderCodeSpecified
{
get
{
return this.personStatedGenderCodeFieldSpecified;
}
set
{
this.personStatedGenderCodeFieldSpecified = value;
}
}
/// <remarks/>
public string EthnicCategory
{
get
{
return this.ethnicCategoryField;
}
set
{
this.ethnicCategoryField = value;
}
}
/// <remarks/>
public string EthnicCategory2021
{
get
{
return this.ethnicCategory2021Field;
}
set
{
this.ethnicCategory2021Field = value;
}
}
/// <remarks/>
public string AccommodationStatus_SnomedCt
{
get
{
return this.accommodationStatus_SnomedCtField;
}
set
{
this.accommodationStatus_SnomedCtField = value;
}
}
/// <remarks/>
public string PreferredSpokenLanguage_SnomedCt
{
get
{
return this.preferredSpokenLanguage_SnomedCtField;
}
set
{
this.preferredSpokenLanguage_SnomedCtField = value;
}
}
/// <remarks/>
public string AccessibleInformationProfessionalRequiredCode_SnomedCt
{
get
{
return this.accessibleInformationProfessionalRequiredCode_SnomedCtField;
}
set
{
this.accessibleInformationProfessionalRequiredCode_SnomedCtField = value;
}
}
/// <remarks/>
public string InterpreterLanguage_SnomedCt
{
get
{
return this.interpreterLanguage_SnomedCtField;
}
set
{
this.interpreterLanguage_SnomedCtField = value;
}
}
/// <remarks/>
public Overseas_EC_Type OverseasVisitorChargingCategoryAtCdsActivityDate
{
get
{
return this.overseasVisitorChargingCategoryAtCdsActivityDateField;
}
set
{
this.overseasVisitorChargingCategoryAtCdsActivityDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool OverseasVisitorChargingCategoryAtCdsActivityDateSpecified
{
get
{
return this.overseasVisitorChargingCategoryAtCdsActivityDateFieldSpecified;
}
set
{
this.overseasVisitorChargingCategoryAtCdsActivityDateFieldSpecified = value;
}
}
}
/// <remarks/>
[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
{
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("1")]
Item1,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("2")]
Item2,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("9")]
Item9,
/// <remarks/>
X,
}
/// <remarks/>
[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
{
/// <remarks/>
A,
/// <remarks/>
B,
/// <remarks/>
C,
/// <remarks/>
D,
/// <remarks/>
E,
/// <remarks/>
F,
/// <remarks/>
P,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("9")]
Item9,
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class Address_Structure
{
private string[] itemsField;
private ItemsChoiceType[] itemsElementNameField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("StructuredAddress", typeof(string))]
[System.Xml.Serialization.XmlElementAttribute("UnstructuredAddress", typeof(string))]
[System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
public string[] Items
{
get
{
return this.itemsField;
}
set
{
this.itemsField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
[System.Xml.Serialization.XmlIgnoreAttribute()]
public ItemsChoiceType[] ItemsElementName
{
get
{
return this.itemsElementNameField;
}
set
{
this.itemsElementNameField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "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
{
/// <remarks/>
StructuredAddress,
/// <remarks/>
UnstructuredAddress,
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PersonName_Structure
{
private object itemField;
private ItemChoiceType1 itemElementNameField;
/// <remarks/>
[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")]
public object Item
{
get
{
return this.itemField;
}
set
{
this.itemField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public ItemChoiceType1 ItemElementName
{
get
{
return this.itemElementNameField;
}
set
{
this.itemElementNameField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "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;
/// <remarks/>
public string PersonTitle
{
get
{
return this.personTitleField;
}
set
{
this.personTitleField = value;
}
}
/// <remarks/>
public string PersonGivenName
{
get
{
return this.personGivenNameField;
}
set
{
this.personGivenNameField = value;
}
}
/// <remarks/>
public string PersonFamilyName
{
get
{
return this.personFamilyNameField;
}
set
{
this.personFamilyNameField = value;
}
}
/// <remarks/>
public string PersonNameSuffix
{
get
{
return this.personNameSuffixField;
}
set
{
this.personNameSuffixField = value;
}
}
/// <remarks/>
public string PersonInitials
{
get
{
return this.personInitialsField;
}
set
{
this.personInitialsField = value;
}
}
}
/// <remarks/>
[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
{
/// <remarks/>
PersonFullName,
/// <remarks/>
PersonName_Structured,
/// <remarks/>
PersonRequestedName,
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PatientIdentity
{
private object itemField;
/// <remarks/>
[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))]
public object Item
{
get
{
return this.itemField;
}
set
{
this.itemField = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
public PatientIdentityUnverifiedIdentity_StructureLocalIdentifierStructure LocalIdentifierStructure
{
get
{
return this.localIdentifierStructureField;
}
set
{
this.localIdentifierStructureField = value;
}
}
/// <remarks/>
public PatientIdentityUnverifiedIdentity_StructureDataElementStructure DataElementStructure
{
get
{
return this.dataElementStructureField;
}
set
{
this.dataElementStructureField = value;
}
}
/// <remarks/>
public PatientIdentityUnverifiedIdentity_StructureDataElementStructure2 DataElementStructure2
{
get
{
return this.dataElementStructure2Field;
}
set
{
this.dataElementStructure2Field = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public NHSNumberStatusIndicatorCode_Unverified_Type NHSNumberStatusIndicatorCode
{
get
{
return this.nHSNumberStatusIndicatorCodeField;
}
set
{
this.nHSNumberStatusIndicatorCodeField = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
public string LocalPatientIdentifier_Extended
{
get
{
return this.localPatientIdentifier_ExtendedField;
}
set
{
this.localPatientIdentifier_ExtendedField = value;
}
}
/// <remarks/>
public string OrganisationIdentifier_LocalPatientIdentifier
{
get
{
return this.organisationIdentifier_LocalPatientIdentifierField;
}
set
{
this.organisationIdentifier_LocalPatientIdentifierField = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
public string NHSNumber
{
get
{
return this.nHSNumberField;
}
set
{
this.nHSNumberField = value;
}
}
/// <remarks/>
public NHSNumberStatusIndicatorCode_Unverified_Type NHSNumberStatusIndicatorCode
{
get
{
return this.nHSNumberStatusIndicatorCodeField;
}
set
{
this.nHSNumberStatusIndicatorCodeField = value;
}
}
/// <remarks/>
public PersonName_Structure PatientName
{
get
{
return this.patientNameField;
}
set
{
this.patientNameField = value;
}
}
/// <remarks/>
public Address_Structure PatientUsualAddress
{
get
{
return this.patientUsualAddressField;
}
set
{
this.patientUsualAddressField = value;
}
}
}
/// <remarks/>
[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
{
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("02")]
Item02,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("03")]
Item03,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("04")]
Item04,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("05")]
Item05,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("06")]
Item06,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("07")]
Item07,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("08")]
Item08,
}
/// <remarks/>
[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;
/// <remarks/>
public string PostcodeOfUsualAddress
{
get
{
return this.postcodeOfUsualAddressField;
}
set
{
this.postcodeOfUsualAddressField = value;
}
}
/// <remarks/>
public string OrganisationIdentifier_ResidenceResponsibility
{
get
{
return this.organisationIdentifier_ResidenceResponsibilityField;
}
set
{
this.organisationIdentifier_ResidenceResponsibilityField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime PersonBirthDate
{
get
{
return this.personBirthDateField;
}
set
{
this.personBirthDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool PersonBirthDateSpecified
{
get
{
return this.personBirthDateFieldSpecified;
}
set
{
this.personBirthDateFieldSpecified = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
public PatientIdentityVerifiedIdentity_StructureLocalIdentifierStructure LocalIdentifierStructure
{
get
{
return this.localIdentifierStructureField;
}
set
{
this.localIdentifierStructureField = value;
}
}
/// <remarks/>
public PatientIdentityVerifiedIdentity_StructureDataElementStructure DataElementStructure
{
get
{
return this.dataElementStructureField;
}
set
{
this.dataElementStructureField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public NHSNumberStatusIndicatorCode_Verified_Type NHSNumberStatusIndicatorCode
{
get
{
return this.nHSNumberStatusIndicatorCodeField;
}
set
{
this.nHSNumberStatusIndicatorCodeField = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
public string LocalPatientIdentifier_Extended
{
get
{
return this.localPatientIdentifier_ExtendedField;
}
set
{
this.localPatientIdentifier_ExtendedField = value;
}
}
/// <remarks/>
public string OrganisationIdentifier_LocalPatientIdentifier
{
get
{
return this.organisationIdentifier_LocalPatientIdentifierField;
}
set
{
this.organisationIdentifier_LocalPatientIdentifierField = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
public string NHSNumber
{
get
{
return this.nHSNumberField;
}
set
{
this.nHSNumberField = value;
}
}
/// <remarks/>
public NHSNumberStatusIndicatorCode_Verified_Type NHSNumberStatusIndicatorCode
{
get
{
return this.nHSNumberStatusIndicatorCodeField;
}
set
{
this.nHSNumberStatusIndicatorCodeField = value;
}
}
/// <remarks/>
public string PostcodeOfUsualAddress
{
get
{
return this.postcodeOfUsualAddressField;
}
set
{
this.postcodeOfUsualAddressField = value;
}
}
/// <remarks/>
public string OrganisationIdentifier_ResidenceResponsibility
{
get
{
return this.organisationIdentifier_ResidenceResponsibilityField;
}
set
{
this.organisationIdentifier_ResidenceResponsibilityField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime PersonBirthDate
{
get
{
return this.personBirthDateField;
}
set
{
this.personBirthDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool PersonBirthDateSpecified
{
get
{
return this.personBirthDateFieldSpecified;
}
set
{
this.personBirthDateFieldSpecified = value;
}
}
}
/// <remarks/>
[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
{
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("01")]
Item01,
}
/// <remarks/>
[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;
/// <remarks/>
public NHSNumberStatusIndicatorCode_Withheld_Type NHSNumberStatusIndicatorCode
{
get
{
return this.nHSNumberStatusIndicatorCodeField;
}
set
{
this.nHSNumberStatusIndicatorCodeField = value;
}
}
/// <remarks/>
public string OrganisationIdentifier_ResidenceResponsibility
{
get
{
return this.organisationIdentifier_ResidenceResponsibilityField;
}
set
{
this.organisationIdentifier_ResidenceResponsibilityField = value;
}
}
/// <remarks/>
public WithheldIdentityReason_Type WithheldIdentityReason
{
get
{
return this.withheldIdentityReasonField;
}
set
{
this.withheldIdentityReasonField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool WithheldIdentityReasonSpecified
{
get
{
return this.withheldIdentityReasonFieldSpecified;
}
set
{
this.withheldIdentityReasonFieldSpecified = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute("NHSNumberStatusIndicatorCode")]
public NHSNumberStatusIndicatorCode_Withheld_Type NHSNumberStatusIndicatorCode1
{
get
{
return this.nHSNumberStatusIndicatorCode1Field;
}
set
{
this.nHSNumberStatusIndicatorCode1Field = value;
}
}
}
/// <remarks/>
[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
{
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("01")]
Item01,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("02")]
Item02,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("03")]
Item03,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("04")]
Item04,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("05")]
Item05,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("06")]
Item06,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("07")]
Item07,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("08")]
Item08,
}
/// <remarks/>
[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
{
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("01")]
Item01,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("02")]
Item02,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("03")]
Item03,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("97")]
Item97,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("99")]
Item99,
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://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;
/// <remarks/>
public PatientIdentity PatientIdentity
{
get
{
return this.patientIdentityField;
}
set
{
this.patientIdentityField = value;
}
}
/// <remarks/>
public PatientCharacteristics_EmergencyCare_Structure PatientCharacteristics_EmergencyCare
{
get
{
return this.patientCharacteristics_EmergencyCareField;
}
set
{
this.patientCharacteristics_EmergencyCareField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("MentalHealthActLegalStatus")]
public PersonGroupPatient_EC_StructureMentalHealthActLegalStatus[] MentalHealthActLegalStatus
{
get
{
return this.mentalHealthActLegalStatusField;
}
set
{
this.mentalHealthActLegalStatusField = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime StartDate_MentalHealthActLegalStatusClassificationAssignmentPeriod
{
get
{
return this.startDate_MentalHealthActLegalStatusClassificationAssignmentPeriodField;
}
set
{
this.startDate_MentalHealthActLegalStatusClassificationAssignmentPeriodField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool StartDate_MentalHealthActLegalStatusClassificationAssignmentPeriodSpecified
{
get
{
return this.startDate_MentalHealthActLegalStatusClassificationAssignmentPeriodFieldSpecified;
}
set
{
this.startDate_MentalHealthActLegalStatusClassificationAssignmentPeriodFieldSpecified = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime StartTime_MentalHealthActLegalStatusClassificationAssignmentPeriod
{
get
{
return this.startTime_MentalHealthActLegalStatusClassificationAssignmentPeriodField;
}
set
{
this.startTime_MentalHealthActLegalStatusClassificationAssignmentPeriodField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool StartTime_MentalHealthActLegalStatusClassificationAssignmentPeriodSpecified
{
get
{
return this.startTime_MentalHealthActLegalStatusClassificationAssignmentPeriodFieldSpecified;
}
set
{
this.startTime_MentalHealthActLegalStatusClassificationAssignmentPeriodFieldSpecified = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime ExpiryDate_MentalHealthActLegalStatusClassification
{
get
{
return this.expiryDate_MentalHealthActLegalStatusClassificationField;
}
set
{
this.expiryDate_MentalHealthActLegalStatusClassificationField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ExpiryDate_MentalHealthActLegalStatusClassificationSpecified
{
get
{
return this.expiryDate_MentalHealthActLegalStatusClassificationFieldSpecified;
}
set
{
this.expiryDate_MentalHealthActLegalStatusClassificationFieldSpecified = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime ExpiryTime_MentalHealthActLegalStatusClassification
{
get
{
return this.expiryTime_MentalHealthActLegalStatusClassificationField;
}
set
{
this.expiryTime_MentalHealthActLegalStatusClassificationField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ExpiryTime_MentalHealthActLegalStatusClassificationSpecified
{
get
{
return this.expiryTime_MentalHealthActLegalStatusClassificationFieldSpecified;
}
set
{
this.expiryTime_MentalHealthActLegalStatusClassificationFieldSpecified = value;
}
}
/// <remarks/>
public string MentalHealthActLegalStatusClassificationCode
{
get
{
return this.mentalHealthActLegalStatusClassificationCodeField;
}
set
{
this.mentalHealthActLegalStatusClassificationCodeField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns")]
public partial class PatientPathway_EC_Structure
{
private PatientPathway_EC_StructurePatientPathwayIdentity patientPathwayIdentityField;
private PatientPathway_EC_StructureRTTPeriodCharacteristics rTTPeriodCharacteristicsField;
/// <remarks/>
public PatientPathway_EC_StructurePatientPathwayIdentity PatientPathwayIdentity
{
get
{
return this.patientPathwayIdentityField;
}
set
{
this.patientPathwayIdentityField = value;
}
}
/// <remarks/>
public PatientPathway_EC_StructureRTTPeriodCharacteristics RTTPeriodCharacteristics
{
get
{
return this.rTTPeriodCharacteristicsField;
}
set
{
this.rTTPeriodCharacteristicsField = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("PatientPathwayIdentifier", typeof(string))]
[System.Xml.Serialization.XmlElementAttribute("UniqueBookingReferenceNumber_Converted", typeof(string))]
[System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")]
public string Item
{
get
{
return this.itemField;
}
set
{
this.itemField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public ItemChoiceType ItemElementName
{
get
{
return this.itemElementNameField;
}
set
{
this.itemElementNameField = value;
}
}
/// <remarks/>
public string OrganisationIdentifier_PatientPathwayIdentifierIssuer
{
get
{
return this.organisationIdentifier_PatientPathwayIdentifierIssuerField;
}
set
{
this.organisationIdentifier_PatientPathwayIdentifierIssuerField = value;
}
}
}
/// <remarks/>
[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
{
/// <remarks/>
PatientPathwayIdentifier,
/// <remarks/>
UniqueBookingReferenceNumber_Converted,
}
/// <remarks/>
[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;
/// <remarks/>
public ReferralToTreatmentPeriod_Status_Type ReferralToTreatmentPeriod_Status
{
get
{
return this.referralToTreatmentPeriod_StatusField;
}
set
{
this.referralToTreatmentPeriod_StatusField = value;
}
}
/// <remarks/>
public WaitingTimeMeasurementType_Type WaitingTimeMeasurementType
{
get
{
return this.waitingTimeMeasurementTypeField;
}
set
{
this.waitingTimeMeasurementTypeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime ReferralToTreatmentPeriod_StartDate
{
get
{
return this.referralToTreatmentPeriod_StartDateField;
}
set
{
this.referralToTreatmentPeriod_StartDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ReferralToTreatmentPeriod_StartDateSpecified
{
get
{
return this.referralToTreatmentPeriod_StartDateFieldSpecified;
}
set
{
this.referralToTreatmentPeriod_StartDateFieldSpecified = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime ReferralToTreatmentPeriod_EndDate
{
get
{
return this.referralToTreatmentPeriod_EndDateField;
}
set
{
this.referralToTreatmentPeriod_EndDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ReferralToTreatmentPeriod_EndDateSpecified
{
get
{
return this.referralToTreatmentPeriod_EndDateFieldSpecified;
}
set
{
this.referralToTreatmentPeriod_EndDateFieldSpecified = value;
}
}
}
/// <remarks/>
[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
{
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("10")]
Item10,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("11")]
Item11,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("12")]
Item12,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("20")]
Item20,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("21")]
Item21,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("30")]
Item30,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("31")]
Item31,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("32")]
Item32,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("33")]
Item33,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("34")]
Item34,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("35")]
Item35,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("36")]
Item36,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("90")]
Item90,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("91")]
Item91,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("92")]
Item92,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("98")]
Item98,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("99")]
Item99,
}
/// <remarks/>
[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
{
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("01")]
Item01,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("02")]
Item02,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("09")]
Item09,
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://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;
/// <remarks/>
public PatientPathway_EC_Structure PatientPathway
{
get
{
return this.patientPathwayField;
}
set
{
this.patientPathwayField = value;
}
}
/// <remarks/>
public PersonGroupPatient_EC_Structure PersonGroupPatient
{
get
{
return this.personGroupPatientField;
}
set
{
this.personGroupPatientField = value;
}
}
/// <remarks/>
public GPRegistration_Structure GPRegistration
{
get
{
return this.gPRegistrationField;
}
set
{
this.gPRegistrationField = value;
}
}
/// <remarks/>
public EmergencyCare_StuctureEmergencyCareAttendanceLocation EmergencyCareAttendanceLocation
{
get
{
return this.emergencyCareAttendanceLocationField;
}
set
{
this.emergencyCareAttendanceLocationField = value;
}
}
/// <remarks/>
public AttendanceOccurrence_EC_Structure AttendanceOccurrence
{
get
{
return this.attendanceOccurrenceField;
}
set
{
this.attendanceOccurrenceField = value;
}
}
}
/// <remarks/>
[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;
/// <remarks/>
public string OrganisationSiteIdentifier_OfTreatment
{
get
{
return this.organisationSiteIdentifier_OfTreatmentField;
}
set
{
this.organisationSiteIdentifier_OfTreatmentField = value;
}
}
/// <remarks/>
public string EmergencyCareDepartmentType
{
get
{
return this.emergencyCareDepartmentTypeField;
}
set
{
this.emergencyCareDepartmentTypeField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://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;
/// <remarks/>
public CDSTypeCode_Type CDSTypeCode
{
get
{
return this.cDSTypeCodeField;
}
set
{
this.cDSTypeCodeField = value;
}
}
/// <remarks/>
public CDSProtocolIdentifierCode_Type CDSProtocolIdentifierCode
{
get
{
return this.cDSProtocolIdentifierCodeField;
}
set
{
this.cDSProtocolIdentifierCodeField = value;
}
}
/// <remarks/>
public string CDSUniqueIdentifier
{
get
{
return this.cDSUniqueIdentifierField;
}
set
{
this.cDSUniqueIdentifierField = value;
}
}
/// <remarks/>
public CDSUpdateType_Type CDSUpdateType
{
get
{
return this.cDSUpdateTypeField;
}
set
{
this.cDSUpdateTypeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime CDSApplicableDate
{
get
{
return this.cDSApplicableDateField;
}
set
{
this.cDSApplicableDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "time")]
public System.DateTime CDSApplicableTime
{
get
{
return this.cDSApplicableTimeField;
}
set
{
this.cDSApplicableTimeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
public System.DateTime CDSActivityDate
{
get
{
return this.cDSActivityDateField;
}
set
{
this.cDSActivityDateField = value;
}
}
/// <remarks/>
public string OrganisationIdentifier_CDSSender
{
get
{
return this.organisationIdentifier_CDSSenderField;
}
set
{
this.organisationIdentifier_CDSSenderField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("OrganisationIdentifier_CDSRecipient")]
public string[] OrganisationIdentifier_CDSRecipient
{
get
{
return this.organisationIdentifier_CDSRecipientField;
}
set
{
this.organisationIdentifier_CDSRecipientField = value;
}
}
}
/// <remarks/>
[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
{
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("1")]
Item1,
/// <remarks/>
[System.Xml.Serialization.XmlEnumAttribute("9")]
Item9,
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://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;
/// <remarks/>
public CDSMessageType_Type CDSMessageType
{
get
{
return this.cDSMessageTypeField;
}
set
{
this.cDSMessageTypeField = value;
}
}
/// <remarks/>
public CDSMessageVersionNumber_Type CDSMessageVersionNumber
{
get
{
return this.cDSMessageVersionNumberField;
}
set
{
this.cDSMessageVersionNumberField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType = "positiveInteger")]
public string CDSMessageReferenceNumber
{
get
{
return this.cDSMessageReferenceNumberField;
}
set
{
this.cDSMessageReferenceNumberField = value;
}
}
/// <remarks/>
public string CDSMessageRecordIdentifier
{
get
{
return this.cDSMessageRecordIdentifierField;
}
set
{
this.cDSMessageRecordIdentifierField = value;
}
}
}
/// <remarks/>
[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
{
/// <remarks/>
NHSCDS,
}
/// <remarks/>
[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
{
/// <remarks/>
CDS062,
}
/// <remarks/>
[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;
}
/// <remarks/>
public CDSMessageHeader_Structure CDSMessageHeader
{
get
{
return this.cDSMessageHeaderField;
}
set
{
this.cDSMessageHeaderField = value;
}
}
/// <remarks/>
public CDSTransactionHeader_BulkUpdate_Structure CDSTransactionHeader_BulkUpdate
{
get
{
return this.cDSTransactionHeader_BulkUpdateField;
}
set
{
this.cDSTransactionHeader_BulkUpdateField = value;
}
}
/// <remarks/>
public EmergencyCare_Stucture EmergencyCare
{
get
{
return this.emergencyCareField;
}
set
{
this.emergencyCareField = value;
}
}
/// <remarks/>
public CDSMessageTrailer_Structure CDSMessageTrailer
{
get
{
return this.cDSMessageTrailerField;
}
set
{
this.cDSMessageTrailerField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public CDSProtocolIdentifierCode_Type CDSProtocolIdentifierCode
{
get
{
return this.cDSProtocolIdentifierCodeField;
}
set
{
this.cDSProtocolIdentifierCodeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public CDSBulkReplacementGroupCode_Type CDSBulkReplacementGroupCode
{
get
{
return this.cDSBulkReplacementGroupCodeField;
}
set
{
this.cDSBulkReplacementGroupCodeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public CDSTypeCode_Type CDSTypeCode
{
get
{
return this.cDSTypeCodeField;
}
set
{
this.cDSTypeCodeField = value;
}
}
}
/// <remarks/>
[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;
}
/// <remarks/>
public CDSMessageHeader_Structure CDSMessageHeader
{
get
{
return this.cDSMessageHeaderField;
}
set
{
this.cDSMessageHeaderField = value;
}
}
/// <remarks/>
public CDSTransactionHeader_NetChange_Structure CDSTransactionHeader_NetChange
{
get
{
return this.cDSTransactionHeader_NetChangeField;
}
set
{
this.cDSTransactionHeader_NetChangeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("DeleteTransaction", typeof(CDSInterchange_StructureCDSNetChangeAllMessageTypesDeleteTransaction))]
[System.Xml.Serialization.XmlElementAttribute("EmergencyCare", typeof(EmergencyCare_Stucture))]
public object Item
{
get
{
return this.itemField;
}
set
{
this.itemField = value;
}
}
/// <remarks/>
public CDSMessageTrailer_Structure CDSMessageTrailer
{
get
{
return this.cDSMessageTrailerField;
}
set
{
this.cDSMessageTrailerField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public CDSProtocolIdentifierCode_Type CDSProtocolIdentifierCode
{
get
{
return this.cDSProtocolIdentifierCodeField;
}
set
{
this.cDSProtocolIdentifierCodeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public CDSTypeCode_Type CDSTypeCode
{
get
{
return this.cDSTypeCodeField;
}
set
{
this.cDSTypeCodeField = value;
}
}
}
/// <remarks/>
[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
{
}
}