Hello All,
In the MSHSegment below in MSH.6, I want to set the receive facility to a value that comes in as the source xsd file in my orchestration. Now are the column properties in the xsd file accessible? if so, how?
thanks for any help....:)
HeaderInfo = new System.Xml.XmlDocument();
HeaderInfo.LoadXml("<ns0:MSH_25_GLO_DEF xmlns:ns0=\"http://microsoft.com/HealthCare/HL7/2X\"><MSH><MSH.2_EncodingCharacters>^~\\&</MSH.2_EncodingCharacters><MSH.3_SendingApplication><HD.0_NamespaceId>LAB</HD.0_NamespaceId><HD.1_UniversalId>SrcAppUid</HD.1_UniversalId></MSH.3_SendingApplication><MSH.4_SendingFacility><HD.0_NamespaceId>srcFac</HD.0_NamespaceId><HD.1_UniversalId>srcFacUid</HD.1_UniversalId></MSH.4_SendingFacility><MSH.5_ReceivingApplication><HD.0_NamespaceId>dstApp</HD.0_NamespaceId><HD.1_UniversalId>dstAppUid</HD.1_UniversalId></MSH.5_ReceivingApplication><MSH.6_ReceivingFacility><HD.0_NamespaceId>dstFac</HD.0_NamespaceId><HD.1_UniversalId>dstFacUid</HD.1_UniversalId></MSH.6_ReceivingFacility><MSH.7_DateTimeOfMessage><TS.1>"+ System.String.Format("{0:yyyyMMddhhmmss}", System.DateTime.Now) + "</TS.1></MSH.7_DateTimeOfMessage><MSH.8_Security>sec</MSH.8_Security><MSH.9_MessageType><CM_MSG.0_MessageType>ADT</CM_MSG.0_MessageType><CM_MSG.1_TriggerEvent>A04</CM_MSG.1_TriggerEvent></MSH.9_MessageType><MSH.10_MessageControlId>msgid2134</MSH.10_MessageControlId><MSH.11_ProcessingId><PT.0_ProcessingId>P</PT.0_ProcessingId></MSH.11_ProcessingId><MSH.12_VersionId><VID_0_VersionId>2.2</VID_0_VersionId></MSH.12_VersionId></MSH></ns0:MSH_25_GLO_DEF>");
DemographicFinalMsg.MSHSegment = HeaderInfo;
DemographicFinalMsg.BodySegments = DemographicSendMsg;
DemographicFinalMsg.ZSegments = "";
DemographicFinalMsg(BTAHL7Schemas.MSH1) = 124;
DemographicFinalMsg(BTAHL7Schemas.MessageEncoding) = 65001;
DemographicFinalMsg(BTAHL7Schemas.MSH2) = "^~\\&";
DemographicFinalMsg(BTAHL7Schemas.ParseError) = false;
DemographicFinalMsg(BTAHL7Schemas.ZPartPresent) = false;
DemographicFinalMsg(BTAHL7Schemas.SegmentDelimiter2Char) = false;
Carlos Tijerina