HL7 for biztalk

196 78 0
HL7 for biztalk

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

www.it-ebooks.info For your convenience Apress has placed some of the front matter material after the index Please use the Bookmarks and Contents at a Glance links to access them www.it-ebooks.info Contents at a Glance Foreword���������������������������������������������������������������������������������������������������������������������������xiii About the Authors��������������������������������������������������������������������������������������������������������������� xv About the Technical Reviewer������������������������������������������������������������������������������������������ xvii Acknowledgments������������������������������������������������������������������������������������������������������������� xix ■■Chapter 1: BizTalk and HL7������������������������������������������������������������������������������������������������1 ■■Chapter 2: HL7 Message Encoding������������������������������������������������������������������������������������9 ■■Chapter 3: Understanding the HL7 Accelerator���������������������������������������������������������������27 ■■Chapter 4: The HL7 Accelerator in Action������������������������������������������������������������������������61 ■■Chapter 5: HL7 Advanced Topics�������������������������������������������������������������������������������������91 ■■Chapter 6: Future Directions�����������������������������������������������������������������������������������������139 ■■Chapter 7: Best Practices for HL7 with BizTalk�������������������������������������������������������������149 ■■Appendix 1: HL7 Definitions������������������������������������������������������������������������������������������165 ■■Appendix 2: HL7 Basic Message Construction Rules����������������������������������������������������167 ■■Appendix 3: HL7 Version 2.x Data Types�����������������������������������������������������������������������169 ■■Appendix 4: HL7 Version 2.6������������������������������������������������������������������������������������������175 Index���������������������������������������������������������������������������������������������������������������������������������183 v www.it-ebooks.info Chapter BizTalk and HL7 Although most of this book is primarily about the BizTalk Accelerator, you first need to understand what the HL7 is and what the HL7 standards are all about This chapter will serve as an introduction to these standards and will also provide you with a foundation that will make it easier for you to understand the topics in all the chapters Before you take a look at the HL7 standards, you should know a little bit about HL7 (Figure 1-1) Since HL7 can a better job describing itself then we can, the following sections contain excerpts from the HL7 web site (www.hl7.org/about/index.cfm?ref=nav) Figure 1-1.  HL7 International logo What Is HL7? Health Level Seven International (HL7) is a not-for-profit, ANSI-accredited, standards-developing organization HL7 is dedicated to providing a comprehensive framework and related standards for the exchange, integration, sharing, and retrieval of electronic health information HL7 supports clinical practice and the management, delivery, and evaluation of health services What Does HL7 Mean? “Level Seven” refers to the seventh level of the International Organization for Standardization (ISO) seven-layer communications model for Open Systems Interconnection (OSI) - the application level From www.hl7.org/about/index.cfm?ref=nav www.it-ebooks.info Chapter ■ BizTalk and HL7 What Is the Open Systems Seven-Layer Communications Model? The HL7 organization describes this model as follows: The application level interfaces directly to and performs common application services for the application processes Although other protocols have largely superseded it, the OSI model remains valuable as a place to begin the study of network architecture From www.hl7.org/about/index.cfm?mode=2 Introduction to HL7 Standards HL7 and its members have worked over the years to provide world-wide healthcare with a framework that includes related standards The standards are for the exchange, integration, sharing, and retrieval of electronic health information • The HL7 standards define how this information is packaged and communicated from one party to another • The HL7 standards also set the language, structure, and data types that are required to provide a seamless integration between systems • HL7 standards provide support for the following: • • Clinical practice of health services • Management of health services • Delivery of health services • Evaluation of health services The HL7 standards are recognized as the most commonly used in the world Seven Referenced Categories HL7 standards are grouped into seven reference categories or sections The HL7 organization describes these as follows: • Section 1: Primary Standards: The primary standards are the most popular standards integral for system integration and interoperability • Section 2: Foundational Standards: The foundational standards define the fundamental tools and building blocks used to build the standards, and the technology infrastructure that implementers of HL7 standards must manage • Section 3: Clinical and Administrative Domains: Messaging and document standards for clinical specialties and groups are found in this section • Section 4: EHR Profiles: These standards provide functional models and profiles that enable the constructs for management of electronic health records www.it-ebooks.info Chapter ■ BizTalk and HL7 • Section 5: Implementation Guides: This section is for implementation guides and/or support documents created for use in conjunction with an existing standard • Section 6: Rules and References: These are technical specifications, programming structures, and guidelines for software and standards development • Section 7: Education & Awareness: You can find HL7’s Draft Standards for Trial Use (DSTUs) and current projects here, as well as helpful resources and tools to further supplement understanding and adoption of HL7 standards Source: www.hl7.org/implement/standards/index.cfm?ref=nav We could describe these categories in more detail, but that is not what this book is all about Besides, the HL7 organization does a much better job at it than we ever could If you want to read more about these standards, you can access the information directly at www.hl7.org/index.cfm?ref=nav The HL7 Versions Although there are several versions published by the HL7 organization, we will be concentrating on HL7 Version Product Suite of the HL7 Primary Standards The HL7 Version Product Suite is part of Section of the HL7 standards The reason for the name primary standards is due to its popularity, since it is the most frequently used standard today ■■Note Throughout this book I will be referring to HL7 Version as HL7 Version 2.x The “x” stands for the release version, such as Version 2.5 In addition, there are subreleases, such as Version 2.5.1 At the time of writing this book, Version 2.6 is the latest version supported by the BizTalk Server 2013 R2 Many in the global healthcare industry say that “HL7’s Version 2.x (V2) messaging standard is the workhorse of electronic data exchange in the clinical domain,” as stated in the HL7 – Standards – Master Grid documentation In addition, according to the HL7 – Standards – Master Grid documentation, several healthcare publications have described HL7 Version 2.x as the “most widely implemented standard for healthcare in the world.” It is designed to support the following: • A central patient care system • A distributed environment where data resides in departmental systems • A distributed environment where data resides in multiple repositories ■■Note The HL7 Version 2.X product suite targets both healthcare IT vendors and providers www.it-ebooks.info Chapter ■ BizTalk and HL7 Key Benefits of Version 2.x The key benefits provided by Version 2.x are the following: • Supports the majority of common interfaces used in the global healthcare industry • Provides a framework for negotiating what is not in the standard • Greatly reduces implementation costs HL7 Version 2.x Message Structure In the last two sections you were introduced to the HL7 organization and its standards and versions Moving forward, let’s take a high-level look at the HL7 Version 2.x message structure To help you understand the message structure, you need to take a closer look at the components that make up the message structure: • Delimiters • Segments • Fields • Data Types • Escape Sequences ■■Note  We refer to the parts of the message structure as components One of these key components is the segment Let’s take a brief look at the segment Segment A segment is a logical grouping of data fields that represents a collection of related and unique information A HL7 Version 2.x message can contain multiple segments Segments can also contain child segments, commonly referred to as subsegments These too can contain child segments Let’s take a look at a common message structure Figure 1-2 shows the message structure for the Admit/Visit Notification message type This is a very commonly used message You will be learning more about this and other message types in Chapter www.it-ebooks.info Chapter ■ BizTalk and HL7 Figure 1-2.  Admit/Visit Notification message structure At the top of the message structure is a MSH segment This is the message header segment and is required in all HL7 messages Your knowledge of what is contained within this segment will make it easier to understand the technical terminology used throughout this book Going forward, we will refer to this segment using its three letter identifier, MSH Contained within each segment are predefined data types Let’s take a look at the data types for the MSH segment The MSH Segment Data Fields There are 21 data fields in the MSH segment These are identified by a sequence number Table 1-1 will make it easier for you to understand what each sequence number represents The values in the R/O/C column are R = Required, O = Optional, and C = Conditional www.it-ebooks.info Chapter ■ BizTalk and HL7 Table 1-1.  MSH Segment Data Fields (The source of the information contained within the table comes from the HL7 Version 2.x Standards Implementation Guide.) Seq Description Length R/O/C Field Separator R Encoding Characters R Sending Application 227 O Sending Facility 227 O Receiving Application 227 O Receiving Facility 227 O Date/Time of Message 26 R Security 40 O Message Type 15 R 10 Message Control ID 20 R 11 Processing ID R 12 Version ID 60 R 13 Sequence Number 15 O 14 Continuation Pointer 180 O 15 Accept Acknowledgment Type O 16 Application Acknowledgment Type O 17 Country Code O 18 Character Set 16 O 19 Principal Language of Message 250 O 20 Alternate Character Set Handling Scheme 20 O 21 Message Profile Identifier 427 O As you can see, the descriptions are fairly easy to understand But there is more to the data fields The HL7 Version 2.x standard contains many different data types There are both simple and complex types You will learn more about the data types in Chapter ■■Tip  Chapter contains a scenario mapping Version 2.x to the HL7 Version CDA This scenario describes the base data types used in all segments In addition, Appendix III provides more information on the data types www.it-ebooks.info Chapter ■ BizTalk and HL7 Moving Forward Now that you have learned a little bit about the HL7 Version 2.x message structure, let’s see what you will learn about in the rest of the chapters As previously mentioned, in Chapter 2, you will learn all there is to know about HL7 Version 2.x message encoding You will also learn about the rest of the components that make up the HL7 Version 2.x message structure ■■Tip I recommend that you read Chapters through before reading Chapter The content contained within these chapters will make it easier to understand the advanced topics contained within Chapter In Chapter 3, you will learn all about the accelerator’s capabilities In Chapter 4, you will view a few scenarios that will show you how to use the accelerator As previously mentioned, in Chapter 5, you will be presented with three scenarios One of these scenarios was taken from a recently implemented solution In Chapter 6, you will get a preview of the new HL7 standard that the HL7 organization is currently working on Chapter will provide you with best practices Summary This chapter provided you with an introduction to HL7 You were also introduced to the HL7 Version 2.x standard You had a quick look at the HL7 Version 2.x message structure and learned a little about the MSH segment And finally, you had a glimpse of what the rest of the chapters are all about www.it-ebooks.info ■ index Construct_VXUInternalExtendedResponse, 121–123 CreateImmunizationHL7XMLMsg orchestration, 126 Customization party configuration, 78 receive and send ports, 78 scenarios, ADT message schema, 77–78 standard segment field, 76–77 Z segments, 76 Field delimiter sample, 13 Fields, HL7 message classification, 12 identification, 13 repeatable fields, 14 subfields, 13 sub-subfields, 13 Fire-and-forget pattern, 152 „„         D „„         G Delimiter-based encoding acknowledgement message, 19 acknowledgment code, 20 components, 10 data types, 14 description, 10 enhanced mode, 20 ERR segment, 21 escape sequences, 16 fields, 14 HL7 message, 10 message control ID, 18 message trigger event, 17 message version, 17 original mode, 19 segments, 12 GetImmunizationData, 106 GetImmunizationNextOfKin, 106 GetImmunizationPatientInfo, 118–119 GetImmunizationPatientInfo request/response port, 120 GetImmunizationPatientInfoVaccine, 106 GetImmunizationVaccineTypes, 106 GetUpdateExternalMessageQueue stored procedure, 106 „„         E Encoding rules receiving messages, 167 sending messages, 167 Error (ERR) segment, 21 ExternalMessageQueue fields, 105 ExternalMessageQueuePK, 116 „„         F FHIR® attribution, 142 CDA, 141 clinical resources types, 141–142 content record, 146 description, 139 fhir-atom schema, 145 HL7 Version 2, 140 HL7 Version 3, 140 improvements, 140 patient resource, 143–144 structure, 146–147 workflow management, 142 „„         H Health Level Seven International (HL7) description, HL7 Versions, 3–6 International logo, Open Systems Seven-Layer Communications Model, reference categories/sections, world-wide healthcare with framework, HL7 accelerator acknowledgment mode, 79–81 batching, 87–89 customization, accept messages (see Customization) message exchange, 61–62 message processing enhanced mode, 64–65 original mode, 62–63 message routing, 65–69, 71 message transformation, 81–84 MLLP adapter, 84, 86 turn off message validation, 72, 74–75 HL7 assembler, 39 HL7 definitions component, 165 data type, 165 delimiters, 166 field, 165 item number, 165 message, 165 message syntax, 166 184 www.it-ebooks.info ■ Index null and empty fields, 165 segment, 165 Z segments, 166 HL7 disassembler, 33, 37 HL7 logging service, 47 HL7 message encoding ADT message type, delimiter (see Delimiter-based encoding) description, types, XML encoding (see XML encoding) HL7 Version 2.5.1 address components, 172–173 complex data structures, 169–171 maximum lengths, data types, 174 queries QBP^Q11, 136–137 query by parameter message types, 135–136 RSP^K11, 137–138 HL7 Version 2.6 folder heirarchy, 175–176 vs version 2.5.1 ARV-access restrictions, 178 data type changes, 176–177 master file segments, 180 mood code, 178–179 new message types, 179 queries, 180 sterilization and decontamination, 180 transaction set, 179 UAC-user authentication, 177 HL7 Version 2.x Address, 97 CDA, 91 CDA elements, 95 Coded Element, Coded No Exceptions and Coded With Exceptions, 97 Composite ID Number and Name, 98 data types, 96 Date and TimeStamp, 98 Encapsulated Data, 98 Entity Identifier, 98 global healthcare industry, Hierarchical Descriptor, 99 HL7 V.2.5.1 queries (see HL7 version 2.5.1) message structure, message types ADT message, 95 MDM messages, 94 OBX Segments, 94 ORU messages, 94 minimum CDA elements, 92–93 Numeric, 99 OBX segment (see OBX segment) Person Name, 99 primary standards, Reference Pointer, 99 segments, 95 steps, 91 Version data type mappings, 96 „„         I, J, K, L Immunization data stored procedures, 106 Immunization message BizTalk-based solution, 103 BizTalk.GetImmunizationNextOfKin, 121 BizTalk.GetImmunizationPatientInfoVaccine, 121 BizTalk.GetImmunizationVaccineTypes, 121–126 BizTalk solution, 133 BTAHL72XSendPipeline, 130 CatchExceptions, 132 certification test cases, 103 CreateImmunizationHL7XMLMsg, 126–129 design, 103, 105 engine, 130 event notification, 105–106 GetData, 116–120 Immunization Registry file creation, 116 mapping, 107–116 merge segments, 130 orchestrations, 116 pipeline configuration section, 132 send port configuration, 131 stored procedures, 106 testing, 133–135 vaccinations, 103 „„         M Medical Document Management (MDM) messages, 94 Message acknowledgment, 18, 25 Message body segments, 12 Message header segment (MSH), 5–6, 12 Message routing common project, 65–66 configurations, 70–71 HL7 schema selector, 68 message type schema template, 67 segments, data types and table values project template, 67 solution explorer, 69 testing, scenarios, 71 MessageType, 116 Minimum CDA elements, 92–93 Minimum Lower Layer Protocol (MLLP), 47 185 www.it-ebooks.info ■ index MLLP See Minimum Lower Layer Protocol (MLLP) MLLPReceive, 59 MLLPSend, 58 MSH See Message header segment (MSH) MSH9 field, 22 „„         S „„         N Trading partners, 151 NextOfKin map, 124 „„         U „„         O Update2XmlSchema, 60 OBX segment HL7 Version 3, 100 name/value form type, 102–103 narrative form type, 101–102 OBX form types, 100 Orchestration, 83 Orchestration design, 40 ORU messages, 94 „„         V, W „„         P, Q Party creation, 73 PatInfoPk, 116 ProcessingStatus, 116 „„         R Repeatable field, 13–14 Request-response pattern, 152 SQL logging store, 48 „„         T Visual studio project, 31 VXUInternalExtended Schema, 108 „„         X, Y XML encoding data types, 24 delimiter, 22 escape sequence, 26 fields, 24 root element—message structure IDs, 22 segments, 24 XML schemas, 26 „„         Z Z segments, 12 186 www.it-ebooks.info HL7 for BizTalk Howard Edidin Vikas Bhardwaj www.it-ebooks.info HL7 for BizTalk Copyright © 2014 by Howard Edidin and Vikas Bhardwaj This work is subject to copyright All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed Exempted from this legal reservation are brief excerpts in connection with reviews or scholarly analysis or material supplied specifically for the purpose of being entered and executed on a computer system, for exclusive use by the purchaser of the work Duplication of this publication or parts thereof is permitted only under the provisions of the Copyright Law of the Publisher’s location, in its current version, and permission for use must always be obtained from Springer Permissions for use may be obtained through RightsLink at the Copyright Clearance Center Violations are liable to prosecution under the respective Copyright Law ISBN-13 (pbk): 978-1-4302-6764-5 ISBN-13 (electronic): 978-1-4302-6763-8 Trademarked names, logos, and images may appear in this book Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made The publisher makes no warranty, express or implied, with respect to the material contained herein Publisher: Heinz Weinheimer Lead Editor: Ewan Buckingham Developmental Editor: Dominic Shakeshaft Technical Reviewer: Mike Diiori Editorial Board: Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell, Louise Corrigan, Jim DeWolf, Jonathan Gennick, Robert Hutchinson, Michelle Lowman, James Markham, Matthew Moodie, Jeff Olson, Jeffrey Pepper, Douglas Pundick, Ben Renow-Clarke, Dominic Shakeshaft, Gwenan Spearing, Matt Wade, Steve Weiss Coordinating Editor: Jill Balzano Copy Editor: Mary Behr Compositor: SPi Global Indexer: SPi Global Artist: SPi Global Cover Designer: Anna Ishchenko Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013 Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-sbm.com, or visit www.springeronline.com Apress Media, LLC is a California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc) SSBM Finance Inc is a Delaware corporation For information on translations, please e-mail rights@apress.com, or visit www.apress.com Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use eBook versions and licenses are also available for most titles For more information, reference our Special Bulk Sales–eBook Licensing web page at www.apress.com/bulk-sales Any source code or other supplementary material referenced by the author in this text is available to readers at www.apress.com For detailed information about how to locate your book’s source code, go to www.apress.com/source-code/ www.it-ebooks.info This book is dedicated to my two sons, Scott and Mark —Howard S Edidin www.it-ebooks.info Contents Foreword���������������������������������������������������������������������������������������������������������������������������xiii About the Authors��������������������������������������������������������������������������������������������������������������� xv About the Technical Reviewer������������������������������������������������������������������������������������������ xvii Acknowledgments������������������������������������������������������������������������������������������������������������� xix ■■Chapter 1: BizTalk and HL7������������������������������������������������������������������������������������������������1 What Is HL7?���������������������������������������������������������������������������������������������������������������������������������1 What Does HL7 Mean?������������������������������������������������������������������������������������������������������������������������������������������ Introduction to HL7 Standards������������������������������������������������������������������������������������������������������2 Seven Referenced Categories������������������������������������������������������������������������������������������������������������������������������� The HL7 Versions���������������������������������������������������������������������������������������������������������������������������3 Key Benefits of Version 2.x������������������������������������������������������������������������������������������������������������������������������������ HL7 Version 2.x Message Structure����������������������������������������������������������������������������������������������4 Segment���������������������������������������������������������������������������������������������������������������������������������������������������������������� Moving Forward����������������������������������������������������������������������������������������������������������������������������7 Summary���������������������������������������������������������������������������������������������������������������������������������������7 ■■Chapter 2: HL7 Message Encoding������������������������������������������������������������������������������������9 The HL7 Message��������������������������������������������������������������������������������������������������������������������������9 Message Encoding Types�������������������������������������������������������������������������������������������������������������������������������������� Delimiter-based Encoding������������������������������������������������������������������������������������������������������������������������������������� XML Encoding������������������������������������������������������������������������������������������������������������������������������������������������������ 21 Summary�������������������������������������������������������������������������������������������������������������������������������������26 vii www.it-ebooks.info ■ Contents ■■Chapter 3: Understanding the HL7 Accelerator���������������������������������������������������������������27 Introduction���������������������������������������������������������������������������������������������������������������������������������27 Architecture���������������������������������������������������������������������������������������������������������������������������������27 Development Environment ��������������������������������������������������������������������������������������������������������������������������������� 28 Runtime Environment ����������������������������������������������������������������������������������������������������������������������������������������� 31 Utilities����������������������������������������������������������������������������������������������������������������������������������������������������������������� 58 Summary�������������������������������������������������������������������������������������������������������������������������������������60 ■■Chapter 4: The HL7 Accelerator in Action������������������������������������������������������������������������61 Message Exchange���������������������������������������������������������������������������������������������������������������������61 Message Processing—Original Mode����������������������������������������������������������������������������������������������������������������� 62 Message Processing—Enhanced Mode�������������������������������������������������������������������������������������������������������������� 64 Simple Message Routing�������������������������������������������������������������������������������������������������������������65 Building the Solution������������������������������������������������������������������������������������������������������������������������������������������� 65 Configurations����������������������������������������������������������������������������������������������������������������������������������������������������� 70 Test the Scenario������������������������������������������������������������������������������������������������������������������������������������������������� 71 Key Observations������������������������������������������������������������������������������������������������������������������������������������������������� 71 Turning Off Message Body Validation������������������������������������������������������������������������������������������72 Build the Solution������������������������������������������������������������������������������������������������������������������������������������������������ 72 Configuration������������������������������������������������������������������������������������������������������������������������������������������������������� 72 Test the Scenario������������������������������������������������������������������������������������������������������������������������������������������������� 75 Key Observations������������������������������������������������������������������������������������������������������������������������������������������������� 75 Accept Messages with Customized Fields����������������������������������������������������������������������������������75 Z Segment����������������������������������������������������������������������������������������������������������������������������������������������������������� 76 Standard Segment Field Customization�������������������������������������������������������������������������������������������������������������� 76 Build the Solution������������������������������������������������������������������������������������������������������������������������������������������������ 77 Configuration������������������������������������������������������������������������������������������������������������������������������������������������������� 78 Test the Scenario������������������������������������������������������������������������������������������������������������������������������������������������� 79 Key Observations������������������������������������������������������������������������������������������������������������������������������������������������� 79 Customized Acknowledgment Behavior��������������������������������������������������������������������������������������79 Build the Solution������������������������������������������������������������������������������������������������������������������������������������������������ 80 Configurations����������������������������������������������������������������������������������������������������������������������������������������������������� 80 viii www.it-ebooks.info ■ Contents Test the Scenario������������������������������������������������������������������������������������������������������������������������������������������������� 81 Key Observations������������������������������������������������������������������������������������������������������������������������������������������������� 81 Message Transformation�������������������������������������������������������������������������������������������������������������81 Build the Solution������������������������������������������������������������������������������������������������������������������������������������������������ 81 Configurations����������������������������������������������������������������������������������������������������������������������������������������������������� 83 Test the scenario������������������������������������������������������������������������������������������������������������������������������������������������� 84 Key Observations������������������������������������������������������������������������������������������������������������������������������������������������� 84 Send an HL7 Message via a MLLP Adapter���������������������������������������������������������������������������������84 Build the Solution������������������������������������������������������������������������������������������������������������������������������������������������ 84 Configuration������������������������������������������������������������������������������������������������������������������������������������������������������� 85 Test the Scenario������������������������������������������������������������������������������������������������������������������������������������������������� 87 Key Observations������������������������������������������������������������������������������������������������������������������������������������������������� 87 Batching��������������������������������������������������������������������������������������������������������������������������������������87 Build the Solution������������������������������������������������������������������������������������������������������������������������������������������������ 87 Configurations����������������������������������������������������������������������������������������������������������������������������������������������������� 87 Summary�������������������������������������������������������������������������������������������������������������������������������������89 ■■Chapter 5: HL7 Advanced Topics�������������������������������������������������������������������������������������91 Mapping Version 2.x to the HL7 CDA�������������������������������������������������������������������������������������������91 The Steps������������������������������������������������������������������������������������������������������������������������������������������������������������� 91 Common Message Types������������������������������������������������������������������������������������������������������������������������������������� 94 MDM - Medical Document Management������������������������������������������������������������������������������������������������������������� 94 Some Message Segments Are Common to Both������������������������������������������������������������������������������������������������� 95 HL7 V2 Segments to CDA Elements��������������������������������������������������������������������������������������������������������������������� 95 The Data Types���������������������������������������������������������������������������������������������������������������������������������������������������� 96 HL7 Version to Version Data Type Mappings�������������������������������������������������������������������������������������������������� 96 Meaningful Use Certification for Immunizations�����������������������������������������������������������������������103 Design���������������������������������������������������������������������������������������������������������������������������������������������������������������� 103 Development������������������������������������������������������������������������������������������������������������������������������������������������������ 105 Processing��������������������������������������������������������������������������������������������������������������������������������������������������������� 116 CreateImmunizationHL7XMLMsg����������������������������������������������������������������������������������������������������������������������� 126 Testing��������������������������������������������������������������������������������������������������������������������������������������������������������������� 133 ix www.it-ebooks.info ■ Contents Using HL7 V.2.5.1 Queries���������������������������������������������������������������������������������������������������������135 Query by Parameter Message Types����������������������������������������������������������������������������������������������������������������� 135 Summary�����������������������������������������������������������������������������������������������������������������������������������138 ■■Chapter 6: Future Directions�����������������������������������������������������������������������������������������139 FHIR® in BizTalk�������������������������������������������������������������������������������������������������������������������������139 What is FHIR®���������������������������������������������������������������������������������������������������������������������������������������������������� 139 Why Is FHIR Better?������������������������������������������������������������������������������������������������������������������������������������������� 140 What Problems Does FHIR Solve?��������������������������������������������������������������������������������������������������������������������� 140 What Does This Mean for BizTalk?�������������������������������������������������������������������������������������������������������������������� 141 Summary�����������������������������������������������������������������������������������������������������������������������������������147 ■■Chapter 7: Best Practices for HL7 with BizTalk�������������������������������������������������������������149 Managing HL7 Message Schemas��������������������������������������������������������������������������������������������149 Deploying MSH and ACK Message Schemas to Their Own BizTalk Application������������������������������������������������� 149 Using One HL7 Message Standard Version�������������������������������������������������������������������������������������������������������� 150 Using Minimum Required Message Trigger Event Schemas����������������������������������������������������������������������������� 150 Changing Namespace for Customized Message Schemas�������������������������������������������������������������������������������� 150 Dynamic Data Validation�����������������������������������������������������������������������������������������������������������150 Resolving Message Structure Validation Issues������������������������������������������������������������������������������������������������ 151 Using a Database to Maintain Dynamic Data���������������������������������������������������������������������������������������������������� 151 Using Business Rules Engine (BRE) for Message Content Validation���������������������������������������������������������������� 151 Managing Trading Partners (Parties)�����������������������������������������������������������������������������������������151 Group Trading Partners�������������������������������������������������������������������������������������������������������������������������������������� 151 Message Exchange Patterns�����������������������������������������������������������������������������������������������������152 Fire-And-Forget Pattern������������������������������������������������������������������������������������������������������������������������������������ 152 Request-Response Pattern�������������������������������������������������������������������������������������������������������������������������������� 152 Example������������������������������������������������������������������������������������������������������������������������������������������������������������� 152 Ordered Delivery�����������������������������������������������������������������������������������������������������������������������162 Using Order Delivery on Receive Location��������������������������������������������������������������������������������������������������������� 162 Using the Send Port with Ordered Delivery������������������������������������������������������������������������������������������������������� 162 Using the Ticket Dispenser and Gate-Keeper Orchestration Pattern����������������������������������������������������������������� 163 x www.it-ebooks.info ■ Contents Optimization for Performance���������������������������������������������������������������������������������������������������163 Using MSMQ for Message Delivery������������������������������������������������������������������������������������������������������������������� 163 Using BizTalk Receive Host Throttling��������������������������������������������������������������������������������������������������������������� 164 Isolating MLLP Hosts����������������������������������������������������������������������������������������������������������������������������������������� 164 Using Messaging Scenario�������������������������������������������������������������������������������������������������������������������������������� 164 Monitoring���������������������������������������������������������������������������������������������������������������������������������164 Summary�����������������������������������������������������������������������������������������������������������������������������������164 ■■Appendix 1: HL7 Definitions������������������������������������������������������������������������������������������165 ■■Appendix 2: HL7 Basic Message Construction Rules����������������������������������������������������167 Encoding Rules for Sending Messages�������������������������������������������������������������������������������������167 Encoding Rules for Receiving����������������������������������������������������������������������������������������������������167 ■■Appendix 3: HL7 Version 2.x Data Types�����������������������������������������������������������������������169 Data Structure—Definition��������������������������������������������������������������������������������������������������������169 Data Structure AD���������������������������������������������������������������������������������������������������������������������������������������������� 172 Rules Applied to Components���������������������������������������������������������������������������������������������������174 ■■Appendix 4: HL7 Version 2.6������������������������������������������������������������������������������������������175 HL7 Version 2.6�������������������������������������������������������������������������������������������������������������������������175 Differences Between Version 2.6 and 2.5.1������������������������������������������������������������������������������176 Data Type Changes�������������������������������������������������������������������������������������������������������������������������������������������� 176 Segments���������������������������������������������������������������������������������������������������������������������������������������������������������� 177 Mood Code��������������������������������������������������������������������������������������������������������������������������������������������������������� 178 New Message Types������������������������������������������������������������������������������������������������������������������������������������������ 179 Two New Chapters��������������������������������������������������������������������������������������������������������������������������������������������� 179 Queries�������������������������������������������������������������������������������������������������������������������������������������������������������������� 180 Summary�����������������������������������������������������������������������������������������������������������������������������������181 Index���������������������������������������������������������������������������������������������������������������������������������183 xi www.it-ebooks.info Foreword In its 14 short years, BizTalk Server has grown to serve as the premier integration solution for more than 12,000 companies around the world including 81 percent of the Fortune Global 100 companies in various industries including many in healthcare Whether they are providers, payers, in clinical services or life sciences, organizations in the healthcare industry face challenges caused by decades of niche systems, changing regulations, shrinking budgets, acquisitions as well as disaggregation, and demanding consumers Core to enabling this integration is the BizTalk Accelerator for HL7 It is a highly versatile and performant complete health care solution for the exchange of data between health care computer applications based on the Health Level Seven (HL7) standard We think integrated hospitals ensure better and faster care BizTalk enables many scenarios in health care like integrating Electronic Health Records (EHR), digitizing clinical dashboards, optimizing clinical supplies and automating patient scheduling In this recent release of BizTalk Server, Microsoft has made deep investments in performance improvements, cloud and hybrid cloud scenarios An example to illustrate the scale we see specifically in the healthcare industry is with HCA, the leading provider of healthcare services in the United States HCA is a company composed of locally managed facilities that includes about 165 hospitals and 115 freestanding surgery centers in 20 states and England Today, the system handles an average of 23,000,000 messages per day, average, with a high of 49.7 million message (at a rate of 266 messages per second) We see continued investment with BizTalk in enabling complex on premise integration scenarios at scale and enabling the hybrid cloud solutions in healthcare I am certainly delighted to be asked to write the forward for this book Howard and I had the great opportunity to collaborate at the quarterly HL7 Working Group meetings Connectathons for the emerging standard FHIR are held the weekends leading up to the working group meetings Howard has been an early adopter in proving integration scenarios using BizTalk, and Microsoft Online Services like O365 and Microsoft Azure and FHIR You will be able to gain practical insights from this book —Leslie Sistla Director, Technology Strategy | Worldwide Health Industry Leslie Sistla is a Director of Technology Strategist on the Worldwide Health Industry Team Leslie joined Microsoft Corp in 2000 bringing with her experiences working for Oracle Corp and McKesson (HBOC) At Microsoft, Leslie helps customers and partners around the world understand how they can meet their privacy, security and regulatory compliance obligations with solutions built on the Microsoft platform, both mobile and cloud She represents Microsoft at healthcare key Standards Development Organizations working group meetings, like HL7, and IHE Finally, she works with customers and partners, helping design solutions framed by using a healthcare reference architecture, the Connected Health Framework (CHF) xiii www.it-ebooks.info About the Authors Howard S Edidin is an Integrations Architect specializing in enterprise application integration Howard runs his own consulting firm, Edidin Group, Inc, which is a Gold Member of the HL7 International Organization Howard’s firm specializes in delivering HL7 and HIPAA healthcare solutions and providing guidance in the use of HL7 with BizTalk Howard is active in several HL7 Working Groups and is involved with the development of a new HL7 standard In addition to BizTalk, Howard works with Azure, SQL Server, and SharePoint Howard and his wife, Sharon, live in a northern suburb of Chicago Howard maintains the biztalkin-howard.blogspot.com and fhir-biztalk.com blogs and can be contacted directly at hedidin@edidingroup.net Vikas Bhardwaj is a Technical Architect at Syntel Inc Vikas has 14 years of IT experience with Microsoft technologies like BizTalk Server, NET, C#, and SQL Server Vikas has implemented various integration solutions using BizTalk Server, including one of the largest implementations of BizTalk and HL7 Vikas presently lives in Nashville, Tennessee with his wife, Poonam, and two kids, Shivam and Ayaan You can check out Vikas’ blog at http://vikas15bhardwaj.wordpress.com and Vikas can be contacted directly at vikas15.bhardwaj@gmail.com xv www.it-ebooks.info About the Technical Reviewer Mike Diiorio is an architect and developer with MedVirginia He has 14 years of experience as a consultant specializing in web technologies, system integration, and enterprise application development Mike is a Microsoft Certified Application Developer and holds Microsoft Certified Technical Specialist credentials in NET Web Development and BizTalk Server His primary focus is in the area of application integration based on the Microsoft NET Framework including BizTalk Server, Microsoft Azure, Windows Communication Foundation, and Windows Workflow He has also served as an Application Platform/BizTalk Specialist in the Microsoft Virtual Technology Solution Program (V-TSP) Mike holds bachelor degrees in Music Industry and Computer Information Systems from James Madison University in Virginia Mike maintains his blog at http://mikediiorio.net xvii www.it-ebooks.info Acknowledgments I am fortunate to have a wife who gave me her support and put up with me over the many months I spent writing this book My son Mark, who is following in my footsteps, provided quality feedback, for which I am grateful I especially would like to thank my co-author, Vikas Bhardwaj, for his support and dedication, and my good friend and colleague Tom Banaski for his help in providing us excellent real-world content My editor, Dominick Shakeshaft of Apress, provided a number of suggestions that greatly improved the quality of the text, and Jill Balzano of Apress kept us on track And finally, my thanks to Mike Diiorio, our technical reviewer, for his expertise and guidance Without Mike, this book would not be possible —Howard S Edidin First and foremost, I would like to thank my co-author Howard S Edidin who continuously inspired me and provided me quality feedback I would also like to thank Apress team especially the Editor Dominick Shakeshaft who provided feedback on book readability and Jill Balzano who kept us on track and made sure book is delivered on time Last but not least I would like to thank my wife Poonam, who gave me all the support during her pregnancy months while writing this book Without her support this book would not have been possible I dedicate this book to my wife Poonam and my two son Shivam & Ayaan —Vikas Bhardwaj xix www.it-ebooks.info ... defines for a solution The BizTalk HL7 Accelerator also needed a way to define schemas for the HL7 v2.x standard for working with HL7 messages and using BizTalk capabilities like transformation,... the Microsoft BizTalk HL7 Accelerator and its capabilities for HL7 2.x message processing 26 www.it-ebooks.info Chapter Understanding the HL7 Accelerator Introduction The BizTalk HL7 Accelerator,... patient information; for example, the ADT message type is used for patient’s patient administration information The HL7 message structure defined by HL7 organization is also referred to as HL7 message

Ngày đăng: 12/03/2019, 13:43

Từ khóa liên quan

Mục lục

  • Contents at a Glance

  • Contents

  • Foreword

  • About the Authors

  • About the Technical Reviewer

  • Acknowledgments

  • Chapter 1: BizTalk and HL7

    • What Is HL7?

      • What Does HL7 Mean?

        • What Is the Open Systems Seven-Layer Communications Model ?

        • Introduction to HL7 Standards

          • Seven Referenced Categories

          • The HL7 Versions

            • Key Benefits of Version 2.x

            • HL7 Version 2.x Message Structure

              • Segment

                • The MSH Segment Data Fields

                • Moving Forward

                • Summary

                • Chapter 2: HL7 Message Encoding

                  • The HL7 Message

                    • Message Encoding Types

                    • Delimiter-based Encoding

                      • Message Structure

                        • Delimiters

                        • Segments

                        • Fields

                          • Field Identification

                          • Subfields (Components)

                          • Sub-subfields (Subcomponent)

                          • Repeatable Fields

                          • Data Types

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan