Step 1: Create and Deploy Header and Acknowledgment Schemas

You use the header schema to validate the header (MSH segment) of the message instance. You use the acknowledgment schema to generate the acknowledgment for the message instance. This process is common across all schemas versions of BTAHL7 2.X.

To create the header and acknowledgment schemas

  1. Start Microsoft Visual Studio 2012.

  2. In Visual Studio, on the File menu, point to New, and then click Project.

  3. In the New Project dialog box, in the Project Types section, expand BizTalk Projects, and then select BTAHL7Projects.

  4. In the Templates section, select BTAHL7V2XCommon Project, and then click OK.

    In Solution Explorer, notice that the three schemas (ACK_24_GLO_DEF.xsd ACK_25_GLO_DEF.xsd, and MSH_25_GLO_DEF.xsd) are included in the project.

Step 1A: Assign a Strong Key to the Assembly and Deploy

Use the following procedure to assign a strong key to the assembly and then deploy the assembly.

To assign a strong key and deploy the assembly

  1. Start Visual Studio 2012 Command Prompt.

  2. At the Visual Studio command prompt, browse to the <drive>:\Program Files\Microsoft BizTalk <version> Accelerator for HL7 \SDK\End-to-End Tutorial folder.

  3. At the command prompt, type sn –k key.snk, and then press ENTER. Ensure the following success message appears in the output window, and then close the command window.

    "Key pair written to key.snk."

    Note

    If the correct message does not appear, use Visual Studio to troubleshoot your assembly.

  4. In Solution Explorer, right-click BTAHL7V2XCommon Project1, and then click Properties.

  5. On the BTAHL7V2XCommon Project1 Property Pages page, click Assembly.

  6. In the right pane, scroll down to the Strong name section, click the field to the right of Assembly Key File, and then click the ellipsis () button.

  7. In the Assembly Key File dialog box, browse to <drive>:\Program Files\Microsoft BizTalk <version> Accelerator for HL7\SDK\End-to-End Tutorial, select key.snk, and then click Open.

  8. On the BTAHL7V2XCommon Project Property page, click OK to save your changes.

  9. In Visual Studio, in Solution Explorer, right-click BTAHL7V2XCommon Project, and then click Deploy. Ensure a success message appears in the output window.

    Note

    If the correct deploy message does not appear, use Visual Studio to troubleshoot your deployment.

    Proceed to Step 2: Create Common Schemas for V2.3.1.