Step 3: Add a Trigger Event (Message) Schema
In this step, you create a new project based on the Empty BTAHL7 Project template. To this project, you add the schema that BTAHL7 will use to validate the messages in the incoming batch (ADT^A03). You add a reference to the project containing the v2.3.1 common schemas, assign the strong name to the project, and then deploy the project.
To add the project containing the message schema
In Visual Studio, on the File menu, point to New, and then click Project.
In the New Project dialog box, in the Project Types section, expand BizTalk Projects, and then select BTAHL7Projects.
In the Templates section, select Empty BTAHL7 Project.
In the Name box, enter BTAHL7V231Body as the project name.
In the Solution box, select Add to Solution.
Click OK.
In Solution Explorer, under the node for your new project, right-click References, and then click Add Reference.
In the Add Reference dialog box, on the Projects tab, click BTAHL7V231Common Project in the Project Name column, click Add, and then click OK.
To add the schema to the project
In Solution Explorer, right-click BTAHL7V231Body, point to Add, and then click New Item.
In the Add New Item dialog box, expand BizTalk Project Items, and then click BTAHL7 Schemas. In the Templates pane, click BTAHL7 Schemas, and then click Add.
In the HL7 Schema Selector dialog box, do the following:
Use this To do this Message Class Keep V2.X as selected. Version Select 2.3.1. Message Type Select ADT. Trigger Event Select A03. Click Create to add the schema to the project, then click Cancel to close the dialog box. Note that BizTalk Accelerator for HL7 (BTAHL7) has added the ADT_A03_231_GLO_DEF.xsd schema to the BTAHL7V231Body project.
To assign a strong key and deploy
In Solution Explorer, right-click BTAHL7V231Body, and then click Properties.
In the BTAHL7V231Body Property Page dialog box, click Signing.
Check Sign the assembly check box.
In Choose a strong name key file drop down list select <Browse…>.
Browse to <drive>:\Batching Tutorial, select key.snk, and then click Open.
In Solution Explorer, right-click BTAHL7V231Body, and then click Deploy. Ensure that a success message appears in the output window.
Note
If a successful-deploy message does not appear, use Visual Studio to troubleshoot your schemas.
Proceed to Step 4: Create a Receive Port for Accepting the Batch Message.