Lab delivery file - SIKB version 14.8.0

Version 21.1 by Robin Huisman on 2024/04/03 17:53

Creating a Delivery file and binding them to a customer

This chapter contains the information needed to understand the lab delivery file. A Lab delivery file only has to be updated when there are changes. Otherwise TerraIndex will always show the last imported file.

Warning

What is a lab delivery file

A lab delivery file contains the Customer code of the customer that will be sending the lab assignment. It also contains the analyses that can be requested from the a lab by the customer. A Lab delivery file needs to be custom for every user and needs to be a XML file

Example files:   Labdeliveryfile.xml

XSD:   LabDelivery_v14.8.0.xsd

Domaintable files:  immetingen lookup v14.8.0.xml   imsikb0101 lookup v14.8.0.xml
extracted from: https://codes.sikb.nl 

File structure

In the image below the main structure of the XML file is shown. Every table is described in more detail later on in this chapter.
1712158795900-531.png

Attribute nameDescriptionUnit
versionSIKB version. This must be: 14.8.0string
versionDeliveryDataA lab indication of the version of the delivered data for this user. Could be a generation date with version: '12-7-2024' or a version 'v12.1'string
laboratoryA number given by SIKB/TerraIndex to the lab when requesting to connect to TerraIndex
Domaintable: Meetinstantie
integer
language

The language of the Delivery file content, like the package names, urgencies etc, in a three-letter ISO-639-2 code:

- dut = Dutch
- eng = English
- fra = French
- spa = Spanish
- ita = Italian
- deu = German

string
LinksA table to connect the “AnalysisSet” and the “Clients”-
AnalysisSetsA table containing the name and lab code of analysis set-
CategoriesA table containing all the possible lab categories-
AnalysisLinksA table containing all the analyses for an analysis set-
ClientsA table of all the customer codes that are available for the company-
LabSampleMatricesA table of all the Lab sample Matrices a lab would like to have selectable.-
SpecialAppointmentsA table of all the special price agreements besides the default quote.-
UrgenciesA table containing a list of time frames in which the lab results need to be returned-
StoragePeriods-not in use- 
Reports-not in use- 
FractionLinks-not in use- 

Structure explanation AnalysisSet

This table contains all the analyses packages that your lab supports. The “analysepakketcode” is your own identification code for the analysis packages.

Attribute nameDescriptionUnit
analysepakketcodeThe identification code of the lab for their analysis package codestring
omschrijvingThe name/description of the analysis package (This will also be shown in the user interface)string
volgordeField is redundant and does not have to be filled instring

Structure explanation categorieen

“Categorie” does not need a lot of explanation. A category is a group defined by the lab where certain values in the “koppeltabel” can be grouped under. A category is determined by the lab and can be used in the “koppeltabel”

1637578815582-615.png

Attribute nameDescriptionUnit
CategoriecodeThe category code of the category of the labstring
OmschrijvingThe name/description of the category (This will also be shown in the user interface)string
volgordeField is redundant and does not have to be filled ininteger

Analysetabel

This table contains all the analyses that a analyses package can contain. Be sure the “analysepakketcode” corresponds to a code in the table: “analysepakketten”. The analysecode is your own identification code for the analyses.

1637578915565-695.png

Attribute nameDescriptionUnit
AnalysepakketcodeThe analyse package code that corresponds to a code in the “analysepakkettenstring
AnalyseA table containing ale the analyses that should be in this analysis package-
Analyse > analysecodeThe identification code of the lab for the analysesstring
Analyse > omschrijvingThe name\description of the analysis (This will also be shown in the user interface)string

Structure explanation debiteurtabel

A customer can have multiple “debiteuren”. There always needs to be one “debiteur” so that a lab assignment can be send. But for example when there is a price agreement for a certain project a new “debiteur” can be added. Or when a company has multiple offices every office can have its own “debiteur”

1637578988501-147.png

Attribute nameDescriptionUnit
klantcodeThe customer code(s) for the companystring
omschrijvingDe name\description of the customer codestring

The “Links” is one of the most important sections of the XML. The “koppeltabel” defines the combination of Analysespackages, custeromcode, categories and sampletype. Without a combination in this table a customer will not be able to send in lab assignments to the laboratory.
1712158823685-514.png
 

Attribute nameDescriptionunit
AnalysepakketcodeThe analysepackagecode that corresponds to a code in the analysepakketstring
klantcodeA code that corresponds to a code in debiteurenstring
monstersoortAn SIKB code that determins to which matrix the analyses belongs. Sampletype
Codegroup 51 in the Attachments for all possible codes

integer

 

categoriecodeA code that corresponds to a category code in “categoriestring

Structure explanation urgentietabel

This table contains a list with different delivery times for analyses results. For example 5 work days, overnight, within 48 hours and so on. The “urgentie code” is a code given by the lab.

1637579214994-369.png

Attribute nameDescriptionUnit
urgentiecodeThe code of the lab for when the analysis results need to be returned to the customerstring
omschrijvingThe name/ description of the urgentiestring