NAHLN Interface

NAHLN Interface

The NAHLN Interface checks for accessions that have finalized that include the tests that are reported automatically to the National Animal Herd Laboratory Network.  This is an HL7 message that is sent automatically, either using a username and password or as of version 2.1.7, a token to the web service.

Job Settings

This job uses the standard Job API settings for VetView.

FieldDescription
Active FlagIndicates that this job is active and available to start.
Server to Run OnDisplays a drop down of all servers currently connected to your VetView database.  We strongly recommend having a dedicated API server, separate from the user facing production servers, to avoid lag.
Auto StartIndicates that this job will start after a server reboot, and will run at the specified time.  If this flag is not turned on, the job will need a manual start after a server reboot.
Error to Email AddressIf there is an issue running the job, a message will be sent to the specified email address.
Job Runs EveryThe timer for this job.  For most API jobs, this timer can be set as often as once a minute.  If you are on a slower or older server, this may be better to run less frequently, to give each job time to finish.
Start/Stop JobIf auto start is not on, this button will kick off the job.  If the job is running, this button changes to Stop Job and will disable the job temporarily, but leave it active and available to start again.

NAHLN Interface Tab

Message Log

The Message Log allows you to view the status of the messages sent via the system.

Successful messages with have a status of S.  Queued messages will have a status of Q.  Failed messages will have a status of Failed.

Message Details

Clock on a row to view the XML code that was sent to the NAHLN database, and the response if one was recieved.  If there is a Failed status, the error message may provide clues as to what the issue is.

Message Setup

These are the specific settings for each test in your lab system.

Add New

Click on the Add New button to create a new interface.  A blank Message Details window will load.

Message Setup Details

Enter in the configuration details for the message.  

Most Common NAHLN settings

FieldDescription
Message ProfileThe name of the profile.  For clarity, we strongly recommend including the name of the disease being reported, or the test for the disease.
Active FlagThis profile is active, and whenever an associated test is finalized, a message will be sent in the specified Post Type containing the results.
Failure EmailIf this message cannot be sent for known or unknown reasons, an error email will go to this email address.  
Post TypeChoice between NAHLN EMS (HL7 Post with Auth Token), NAHLN standard (HL7 PUT with username and password), USAHerds (SOAP Post), BSE (XML Post), and SHIC (Post.)  The exact format for each message may be different for each state and even each individual test.  Contact NAHLN for specific information needed.
Destination URLThe web server to send the message to, usually a URL for the USDA website.  
Username and Password or Auth TokenThe username and password assigned to your institute to be permitted to post messages to the USDA website.  For NAHLN EMS, this will be an auth token instead. 
Message TypeThe exact HL7 or XML message type that will be sent based on Post Type.
Schema DefinitionAn XSD file.  This can be uploaded, or removed.
Sending ApplicationThe name of the application sending the message.  For the purposes of this interface it will always be VetView.
Universal IDThe root OID of the laboratory sending the message for this test.
Sending FacilityThe Premise ID of the organization sending this message.
Receiving ApplicationApplication or Program Name.  For the purposes of this interface, it will always be NAHLN unless otherwise specified. 
Universal IDThe Root OID of NAHLN as designated to your organization. 
Receiving FacilityThe Premise ID of NAHLN as designated to your organization. 
Date/Time of Message:An auto timestamp of the date and time the message is sent in HL7 standard.
Message TypeThe message type.  For Hl7 this will always be OPU-R25
Message Control IDAuto generated using the current timestamp in miliseconds
Processing IDIndicates whether messages should actually be sent or not.  Choices between Debugging (verifying internal settings), Production (live data is sent), or Training (no live data is sent.)
Processing ModeChoices between Current, Archive, Restore from Archive, or Initial Load
Version IDNAHLN is version 2.6
Message Profile IdentifierChoices between the Result Base for various tests.  Select the appropriate one for the test being reported.
Originating LaboratorySpecify if all tests and results from your lab will come from a single lab.  Disable if multiple labs have the option of reporting test results to NAHLN.
PV1Settings for patients - classes, whether a case coordinator is included, and whether to use the accession number or a reference number or disable the option entirely.
OBXObservations.  Include Lot or Group, Include Source or Flow, include Reference Number, and Choose Question for each.
ROLRole Instance IDs include the specific role, the person, the address, and the location, as well as other option.  If the whole location and not an individual is acting in the Role, choose Source Premises.  Multiple roles can be turned on.
NK1Other client names and relationshops.
PIDPatient Identifiers used.  Choices of Animal ID, Case Numbers, or other questions.  Patient demographics can be included in the HL7 message as well.
SPNSpecimen placer information.  The Specimen Label, Specimen ID, or animal IDs can be used.  Additional specimen information can be included in the HL7 message as well.

Mappings

The final tab on this screen is where you can link your VetView system's installation to the codes used by NAHLN for species, breed, and sex.

Example Species:

Example Breed:

Example Sex:



VetView Wiki

Most recent releases of VetView:  Version 4.2.5 Hotfix (Released 10/31/2024)

Contents