ページ1に含まれる内容の要旨
SunAdapterforTCP/IPHL7
User'sGuide
SunMicrosystems,Inc.
4150NetworkCircle
SantaClara,CA95054
U.S.A.
PartNo:821–0377–10
October2009
ページ2に含まれる内容の要旨
Copyright2009SunMicrosystems,Inc. 4150NetworkCircle,SantaClara,CA95054U.S.A. Allrightsreserved. SunMicrosystems,Inc.hasintellectualpropertyrightsrelatingtotechnologyembodiedintheproductthatisdescribedinthisdocument.Inparticular,andwithout limitation,theseintellectualpropertyrightsmayincludeoneormoreU.S.patentsorpendingpatentapplicationsintheU.S.andinothercountries. U.S.GovernmentRights–Commercialsoftware.GovernmentusersaresubjecttotheSunMicrosystems,Inc.standardlicenseagreementandapplicableprovi
ページ3に含まれる内容の要旨
Contents SunAdapterforTCP/IPHL7User'sGuide ..........................................................................................7 SunAdapterforTCP/IPHL7Overview ..............................................................................................8 AboutSunAdapterforTCP/IPHL7 ............................................................................................8 AboutHL7 ...........................................................................................................
ページ4に含まれる内容の要旨
Contents HL7SFTSegment—TCP/IPHL7V2InboundAdapter .......................................................44 CommunicationControl—TCP/IPHL7V2InboundAdapter ...........................................45 HL7RecourseAction—TCP/IPHL7V2InboundAdapter..................................................47 TCP/IPHL7V2AdapterOutboundConnectivityMapProperties..............................................49 GeneralOutboundSettings—TCP/IPHL7V2OutboundAdapter ....................................49 TCPIPOutboundS
ページ5に含まれる内容の要旨
Contents TCPIPOutboundSettings-ClientConnectionEstablishment—TCP/IPHL7V3 OutboundAdapter ......................................................................................................................83 TCPIPOutboundSettings-ServerPortBinding—TCP/IPHL7V3Outbound Adapter..........................................................................................................................................84 HL7Acknowledgment—TCP/IPHL7V3OutboundAdapter .....................................
ページ6に含まれる内容の要旨
6
ページ7に含まれる内容の要旨
SunAdapterforTCP/IPHL7User'sGuide ThisdocumentprovidesinformationandinstructionsforworkingwiththeSunAdapterfor TCP/IPHL7.Itisdividedintothetopicslistedbelow. WhatYouNeedtoKnow Thesetopicsprovideinformationthatisusefultoknowbeforeyoustartworkingwiththe TCP/IPHL7Adapter: ■ “SunAdapterforTCP/IPHL7Overview”onpage8 ■ “AboutTCP/IPHL7V2Collaborations”onpage107 ■ “AboutTCP/IPHL7V3Collaborations”onpage120 ■ “MLLPV2ContentExchangeModel”onpage144 ■ “StandardInboundHL7V2CollaborationOverviewoverMLLPV2”onpag
ページ8に含まれる内容の要旨
SunAdapterforTCP/IPHL7Overview Theselinksprovideadditionalinformationthatisusefultoknowwhenworkingwiththe TCP/IPHL7Adapter: ■ “TCP/IPHL7V2AdapterInboundConnectivityMapProperties”onpage30 ■ “TCP/IPHL7V2AdapterOutboundConnectivityMapProperties”onpage49 ■ “TCP/IPHL7V3AdapterInboundConnectivityMapProperties”onpage64 ■ “TCP/IPHL7V3AdapterOutboundConnectivityMapProperties”onpage79 ■ “TCP/IPHL7InboundAdapterEnvironmentProperties”onpage92 ■ “TCP/IPHL7InboundAdapterEnvironmentProperties”onpage94 SunAdapt
ページ9に含まれる内容の要旨
SunAdapterforTCP/IPHL7Overview Note–Throughoutthisdocumenttheterm“JMSqueue”isusedinthegenericsenseand actuallydenotesJMSqueuesortopics. TCP/IPHL7Features TheTCP/IPHL7Adapterincludesthefollowingfeatures: ■ Bidirectionalprocessing,includingclientorservermodeineitherdirection(toorfromSun JavaCAPSESB). ■ HandlesbothHL7HLLPandMLLPprotocolsandenvelopes. ■ Providesawidevarietyofrecourseactionconfigurations. ■ Non-blockingI/O. ■ Recoveryandretrylogic. ■ Debuglevelsanderrorlogging. ■ JournalingofHL7messa
ページ10に含まれる内容の要旨
SunAdapterforTCP/IPHL7Overview TheMessageLibraryhandlesallofthelower-layerprotocol.TheMessageLibrary’sbehavioris customizedusingtheAdapterconfigurationproperties.TheseAdapterpropertiesareusedby theresourceadapter,butarealsoaccessedandusedbytheprebuiltCollaborations. AboutHL7 HL7isastandardforexchanginginformationbetweenmedicalapplicationsandisan abbreviationofHealthLevelSeven.LevelSevenreferstotheseventhOSIlayerprotocolforthe healthenvironment.HL7definestheformatandthecontentofthemessagesthatapp
ページ11に含まれる内容の要旨
SunAdapterforTCP/IPHL7Overview IfasystemdoesnotconformtotheHL7specification,theCollaborationscanbemodifiedfor thattransactionbychangingtheJavacodeusingtheCollaborationEditor.TheCollaborations Javacodeisdesignedtobeavailableand“transparent”soyoucaneasilyreferencethe predefinedJavacodetoseehowitcurrentlyhandlesHL7transactionsandmakethe appropriatemodifications. TheCollaborationEditorallowsyoutocreateandeditJavacodetomodifyaCollaborationfor yourspecificneeds.Inmanycasesthiscodecanbecreatedgraphical
ページ12に含まれる内容の要旨
SunAdapterforTCP/IPHL7Overview ■ Monitoring TheEnterpriseManagerprovidesareal-timepictureoftheAdapter'sstateandstatus.The monitoringfacilitiesdisplaythefollowinginformation: ■ Adapterupordown ■ Connectedtoexternal ■ Currentsequencenumber ■ Dateandtimeofthelasttransaction ■ Adapterproperties ■ Alerts AlertsaresentfromtheRAandtheCollaborationswhenconditionsareidentifiedthat endangerorstoptheinterface.Youcanaddyourowncustomalertmessagestothe Collaborations. ■ Logging Logmessagesarewrittenfrombothth
ページ13に含まれる内容の要旨
SunAdapterforTCP/IPHL7Overview HL7AdapterSenderRole TheoutboundCollaborationistheimplementationoftheSenderandtheRAisconfiguredfor anoutbounddataflow.AJavaCAPSServiceforwardsthedatatotheAdapter,whichinturn forwardsthedatatotheacceptingHL7externalsystem.TheExternalSystemrespondswithan ACKorNAKresponse. HL7AdapterReceiverRole TheinboundCollaborationistheimplementationoftheReceiverroleinconjunctionwiththe RAbeingconfiguredforinbounddirection.TheAdapteracceptsamessagefromthesending HL7externalsystem,
ページ14に含まれる内容の要旨
SunAdapterforTCP/IPHL7Overview 2. TheReceiversendsthemessagetotheForwarder. 3. TheForwardersendsthemessagetothereceivingExternalSystem. 4. ThereceivingExternalSystemsendsanACKtotheForwarder. 5. TheForwarderreceivestheACKfromtheExternalandforwardsitontotheReceiver. 6. TheReceiverthenforwardstheACK,withanMSH-5,value“F”indicatingthatitisthe receivingExternalSystem’sACK,totheSender. IntheReceiverrole,theHL7RAisconfiguredforinbound,andtheinboundCollaborationis usedwiththeparameterSendsAppAcksettotrue
ページ15に含まれる内容の要旨
SunAdapterforTCP/IPHL7Overview StandardInboundMessageModeDataFlowandArchitecture ThefollowingstepsdescribetheflowofdataforaninboundAdapter: 1. TheexternalsystemsendstheHL7messagetotheAdapter. 2. TheCollaborationreceivestheHL7message. 3. TheCollaborationvalidatesthemessage(ifvalidateisenabled).Ifitfails,theCollaboration takestheconfiguredrecourseaction.Iftherecourseactionisstrippedandthemaximum numberofretrieshasbeenexceeded,themessageanderrorarewrittentotheerrorqueue. 4. TheCollaborationwritesth
ページ16に含まれる内容の要旨
SunAdapterforTCP/IPHL7Overview MessageVerification Messageverificationbeginswithreadingthemessagefromtheexternalsystem.Themessageis expectedtomatchtheMLLPenvelope,sincebothHLLPandMLLPenvelopeshavetheStartof Block(SOB),EndofData(EOD),andaCarriageReturn(CR)incommon. Ifamessagefailsthereadverification,itisconsideredbaddata.IfreadbyaninboundAdapter, thisfailurecausestheAdaptertogenerateaCannedHL7NAK.AnoutboundAdapterignores themessageandlogsawarning,reportingthenatureoftheproblemtothelogfile. AnHLLP
ページ17に含まれる内容の要旨
SunAdapterforTCP/IPHL7Overview ■ Noresponseisreceivedafteramessageissentthemaximumnumberoftimes. OutboundFunctionality TheoutboundTCP/IPHL7AdapterProject,prjHL7Outbound,canbeimplementedin standardoutboundmodeorintwoforwardmessagemodes:outbounddelayedACKor outboundforwarder. OutboundAdapterDataFlow Inoutboundmode,theAdapterreceivesHL7messagesfromaJMSqueue.Eachmessageis verifiedtoensureitcontainsHL7dataonly.LegitimateHL7dataisenvelopedintoits configuredformatandsenttotheexternalsystem. Amessageint
ページ18に含まれる内容の要旨
SunAdapterforTCP/IPHL7Overview 5. TheCollaborationreceivesandvalidatestheACK,andthenjournalstheACKandtheHL7 message(ifjournalingisenabled).IftheCollaborationreceivesaNAK,theNAKandthe HL7messagearesenttotheerrorqueue. 6. Finally,theCollaborationcommitstheJMSreceive. OutboundAdapterRolesforDelayedACKScenarios TheoutboundAdaptercanfulfilltworolesinadelayedACKscenario.Theoutbounddelayed acknowledgementmodeisusedtocommunicatewithanexternalsystemthatisconfiguredto receivemessagesinadelayedACKway;thati
ページ19に含まれる内容の要旨
SunAdapterforTCP/IPHL7Overview Note–ForDelayedACK,theReceiverandForwardermustbeonthesameintegration server. MessageVerification TheonlyverificationthattheoutboundAdapterdoesistoensurethatthemessageparsesinto thegenericEventMessageLibrary,andthattheMSHusesthecorrectfields.Theacknowledgeis verifiedtoensurethatthesentmessageisvalid. AcknowledgmentProcessing ■ AdapterGeneratesHL7Acknowledgment Inthisscenario,theAdaptergeneratesanHL7ACKafterreceivingandsuccessfullystoring themessageinaqueue;otherwise
ページ20に含まれる内容の要旨
SunAdapterforTCP/IPHL7Overview Note–TheTCP/IPHL7Adapterincludesinternalcountersthatkeeptrackofallerror conditions. GeneralFunctionality ThissectionexplainstheAdapter’sgeneralfunctionsandfeatures.Itincludesthefollowing topics: ■ “Non-blockingI/O”onpage20 ■ “HL7SequenceNumberingProtocol”onpage20 ■ “FailedMessageHandling”onpage21 ■ “RecourseActions”onpage21 Non-blockingI/O Thenon-blockingI/OfeaturepreventstheAdapterfromlockingupwhenattemptingtoreador writedatablocks,allowingtheAdaptertocontinueitso