Пример #1
0
        internal void WriteXml(XmlWriter writer)
        {
            writer.WriteAttributeString("classCode", ClassCode);

            its.TemplateSignpost(templateId + "#" + templateText, writer);
            writeXML(writer);

            if (associatedPerson != null)
            {
                writer.WriteStartElement("associatedPerson");
                associatedPerson.TemplateId   = templateId;
                associatedPerson.TemplateText = "associatedPerson";
                associatedPerson.WriteXml(writer);
                writer.WriteEndElement();
            }

            if (scopingOrganisation != null)
            {
                writer.WriteStartElement("scopingOrganization");
                scopingOrganisation.TemplateId   = templateId;
                scopingOrganisation.TemplateText = "scopingOrganization";
                scopingOrganisation.WriteXml(writer);
                writer.WriteEndElement();
            }
        }
Пример #2
0
        internal void WriteXml(XmlWriter writer)
        {
            writer.WriteAttributeString("classCode", ClassCode);

            its.TemplateSignpost(templateId + "#" + templateText, writer);
            writeXML(writer);

            if (assignedPerson != null)
            {
                writer.WriteStartElement("relatedPerson");
                assignedPerson.TemplateId   = templateId;
                assignedPerson.TemplateText = "relationshipHolder";
                assignedPerson.WriteXml(writer);
                writer.WriteEndElement();
            }

            if (representedOrganisation != null)
            {
                writer.WriteStartElement("representedOrganisation");
                representedOrganisation.TemplateId   = templateId;
                representedOrganisation.TemplateText = "representedOrganisation";
                representedOrganisation.WriteXml(writer);
                writer.WriteEndElement();
            }
        }
Пример #3
0
        internal void WriteXml(XmlWriter writer)
        {
            writer.WriteAttributeString("classCode", ClassCode);

            its.TemplateSignpost(templateId + "#" + templateText, writer);
            writeXML(writer);

            PatientEntity.templateid = templateId;
            PatientEntity.WriteXml(writer);

            if (OrganisationEntity != null)
            {
                writer.WriteStartElement("providerOrganization");
                OrganisationEntity.TemplateId   = templateId;
                OrganisationEntity.TemplateText = "providerOrganization";
                OrganisationEntity.WriteXml(writer);
                writer.WriteEndElement();
            }
        }