Wiki source code of Lab result file - SIKB0101 v14

Version 50.1 by Robin Huisman on 2024/08/01 00:27

Show last authors
1 = Reporting lab results to TerraIndex for a customer =
2
3 Returning the labresults to the client, that requested the analysis on samples.
4
5 (% class="box infomessage" %)
6 (((
7 More information about SIKB0101 can be found here: [[https:~~/~~/www.sikb.nl/datastandaarden/sikb0101-bodembeheer>>url:https://www.sikb.nl/datastandaarden/sikb0101-bodembeheer]]
8 )))
9
10
11
12 == What is a Lab result file? ==
13
14 A lab result file is an XML file contains all the lab results. The results are mapped tot their analyses samples. A lab result will be matched to the corresponding analyses sample based on the: “Labassignment Guid/SIKB-ID, projectCode, AnalysisSample Guid/SIKB-ID”
15
16
17 **Example files**: [[attach:labresult_IndividualGw.xml||rel="noopener noreferrer" target="_blank"]], [[attach:labresult_IndividualGr.xml||rel="noopener noreferrer" target="_blank"]], [[attach:labresult_MixedSampleGr.xml||rel="noopener noreferrer" target="_blank"]]
18
19 **XSD**: Ask or SIKB Members can download from: [[https:~~/~~/www.sikb.nl/datastandaarden/richtlijnen/sikb0101>>url:https://www.sikb.nl/datastandaarden/richtlijnen/sikb0101]]
20
21 **Controle XSLT**: [[attach:Labresult_Controle.xsl||rel="noopener noreferrer" target="_blank"]]
22
23 **Domaintable files**: [[immetingen lookup v14.8.0.xml>>url:https://wiki.terraindex.com/bin/download/Implementation%20documentation/Setting%20up%20Lab%20communication%20by%20REST%20services%20with%20TerraIndex/Lab%20assignment%20file/WebHome/immetingen%20lookup%20v14.8.0.xml?rev=1.2]]   [[imsikb0101 lookup v14.8.0.xml>>url:https://wiki.terraindex.com/bin/download/Implementation%20documentation/Setting%20up%20Lab%20communication%20by%20REST%20services%20with%20TerraIndex/Lab%20assignment%20file/WebHome/imsikb0101%20lookup%20v14.8.0.xml?rev=1.1]]
24 extracted from: **[[https:~~/~~/codes.sikb.nl>>url:https://codes.sikb.nl/]] **
25
26
27 {{toc/}}
28
29
30 == Model Structure ==
31
32 [[image:IMSIKB0101 - Labresults.png]]
33
34 === Metadata ===
35
36
37 (% class="table-hover" %)
38 |(% colspan="1" rowspan="1" %)**Attribute name**|(% colspan="1" rowspan="1" %)**Description**|(% colspan="1" rowspan="1" %)**Unit**
39 |(% colspan="1" rowspan="1" %)**version**|(% colspan="1" rowspan="1" %)The SIKB version of the lab results file. This must be: **14.8.0 or 14.9.0**|(% colspan="1" rowspan="1" %)string
40 |(% colspan="1" rowspan="1" %)**application**|(% colspan="1" rowspan="1" %)This is the application code of your LIMS system that you will get from TerraIndex. Be careful this is not the same code as your laboratory number. Your applicationcode can be requested of found here: [[https:~~/~~/codes.sikb.nl/tablet/domain-table-details/50be26c9-5e66-46c9-9373-9d402762876f>>https://codes.sikb.nl/tablet/domain-table-details/50be26c9-5e66-46c9-9373-9d402762876f]] |(% colspan="1" rowspan="1" %)Integer
41 |(% colspan="1" rowspan="1" %)**reportDate**|(% colspan="1" rowspan="1" %)The date on which the lab result file was made|(% colspan="1" rowspan="1" %)(((
42 date
43
44 yyyy-mm-dd
45 )))
46 |(% colspan="1" rowspan="1" %)**supplier**|(% colspan="1" rowspan="1" %)The number you get from TerraIndex. This needs to be the same as the laboratorium number in the lab delivery file. Your supplier code can be requested of found here: [[https:~~/~~/codes.sikb.nl/tablet/domain-table-details/dc2ad4df-f958-4146-aee8-31f8c2f1c74b>>https://codes.sikb.nl/tablet/domain-table-details/dc2ad4df-f958-4146-aee8-31f8c2f1c74b]]|(% colspan="1" rowspan="1" %)string
47 |(% colspan="1" rowspan="1" %)**dataflow**|(% colspan="1" rowspan="1" %)Should be '1' in this case, what stands voor 'AnalysisResults'. Other option can be found here: [[https:~~/~~/codes.sikb.nl/tablet/domain-table-details/79365ded-f56a-4f10-ba45-16bac69752d9>>https://codes.sikb.nl/tablet/domain-table-details/79365ded-f56a-4f10-ba45-16bac69752d9]]|(% colspan="1" rowspan="1" %)integer
48
49 === Labassignment ===
50
51 The labassignment is the same as in the labassignment file: [[Lab assignment file - SIKB0101 v14>>https://wiki.terraindex.com/bin/view/Implementation%20documentation/Setting%20up%20Lab%20communication%20by%20REST%20services%20with%20TerraIndex/Lab%20assignment%20file/#]]
52
53 With 3 differences/additions:
54
55 * Status on the labassignment itself
56 * Status on the labassignment.sample link
57 * The labassignment Report number can be send in: LabAssignmentCertificate
58
59 |**Attribute**|**Notes**
60 |(((
61 **identification** NEN3610ID
62 )))|(((
63 A unique code that is created when the object is created for the first time.
64 )))
65 |(((
66 **operatingLab** GenericName
67
68
69 )))|(((
70 Code of the laboratory to which the assignment is assigned.
71
72 Domaintable: [[Meetinstantie / Measuring Company>>url:https://codes.sikb.nl/tablet/domain-table-details/4e270f0a-cefe-446e-9d4d-6666c91180a8]]
73 )))
74 |(((
75 **startTime** DateTime
76 )))|Dispatch date of the lab assignment
77 |(((
78 **customerCode** CharacterString
79 )))|Client code or debtor number of the client as known by the laboratory
80
81 === LabAssignmentStatus ===
82
83 |**Attribute Name**|**Description**
84 |(((
85 **statusType **GenericName
86 )))|(((
87 The status of the lab assignment.
88
89 Use the value '5' for final reported results.
90 Use other values, or '4', for conceptual values.
91
92 Domain table: [[Labassignment Status>>https://codes.sikb.nl/tablet/domain-table-details/5c6ab373-693e-4039-af8d-93206ce4ebb4]]
93 )))
94 |(((
95 **dateExpected **DateTime
96 )))|(((
97 The date the results can be expected, in case of conceptual results.
98
99 If final, fill with datetime.now.
100 )))
101
102 === LabAssignmentCertificate ===
103
104 |**Attribute Name**|**Description**
105 |(((
106 **labCertificateNumber **CharacterString
107 )))|The number of the certificate that will be send to the user/client, and what is used in the PDF file as order or report number of the laboratory.
108 |(((
109 **certification **GenericName
110 )))|(((
111 Under which certificate the analyses has been done. If you do not find you code leave this field empty
112
113 Domain table: [[Certification Coding>>https://codes.sikb.nl/tablet/domain-table-details/df7ffd7c-192c-44f7-ae9f-0461d9266b30]]
114 )))
115
116 === LabAssignmentRequest ===
117
118 The connection between the labassignment and the samples with analysisrequests, as send in the labassignment.
119
120 If not retreived in a labassignment, make it yourself so we can import is as new samples.
121 Just fill what you can fill, otherwise leave field empty, based on documentation here: [[Labassignment file - SIKB0101 v14>>https://wiki.terraindex.com/bin/view/Implementation%20documentation/Setting%20up%20Lab%20communication%20by%20REST%20services%20with%20TerraIndex/Lab%20assignment%20file/#]]
122
123
124 === Project ===
125
126 Activity that leads to the collection of soil data, as send in the labassignment.
127 It will be used to search the correct project/investiation to bind or create the samples.
128
129 |**Attribute**|**Notes**
130 |(((
131 **identification** NEN3610ID
132 )))|The unique identifier of the Project in TerraIndex and in the whole Exchange Chain, as send in the labassignment
133 |(((
134 **name** CharacterString
135
136 [0..1]
137 )))|The name of the project where the lab results are for, as send in the labassignment
138 |(((
139 **projectCode** CharacterString
140 )))|The project code of the project where the lab results are for, as send in the labassignment
141
142 === Sample (AnalysisSample) ===
143
144 The analysissamples with analysisrequests, as send in the labassignment. The fieldsamples form the labassignment can be skipped in the results file.
145
146 If not retreived in a labassignment, make it yourself so we can import is as new analysissamples.
147 Just fill what you can fill, based on documentation here: [[Labassignment file - SIKB0101 v14>>https://wiki.terraindex.com/bin/view/Implementation%20documentation/Setting%20up%20Lab%20communication%20by%20REST%20services%20with%20TerraIndex/Lab%20assignment%20file/#]]
148
149 (% class="box infomessage" %)
150 (((
151 Please keep these scenario's in mind: [[Analysissample scenario's>>https://wiki.terraindex.com/bin/view/Implementation%20documentation/Setting%20up%20Lab%20communication%20by%20REST%20services%20with%20TerraIndex/Lab%20assignment%20file/#HWhatsamplescenario27sareexchanged3F]]
152 )))
153
154 |**Attribute**|**Notes**
155 |(((
156 **identification** NEN3610ID
157 )))|The unique identifier of TerraIndex for the analyses sample, to keep this value unique forever in the whole exchange chain.
158 |(((
159 **name** CharacterString
160
161 [0..1]
162 )))|Name given to the sample
163 |(((
164 **specimenType** GenericName
165
166 [0..1]
167 )))|(((
168 Type of Sample- Fieldsample, Analysissample
169
170 For analysissamples fill with value '10'.
171
172 Domaintable: [[MonsterType / SampleType>>url:https://codes.sikb.nl/tablet/domain-table-details/9f956093-baad-4adb-b74d-20c00cef6ab4]]
173 )))
174 |(((
175 **materialClass** GenericName
176
177
178 )))|(((
179 An SIKB code for the matrix type. Soil, Groundwater etc..
180
181 Domaintable: [[Compartiment / Matrix>>url:https://codes.sikb.nl/tablet/domain-table-details/6134f3bb-6048-431d-a130-01290d84172c]]
182 )))
183
184 === Analysis ===
185
186 The measured parameter with it's value and process.
187
188 |**Attribute Name**|**Description**
189 |(((
190 **identification** NEN3610ID
191 )))|The unique identifier of the AnalysisResult, to keep this value unique forever in the whole exchange chain.
192 If not possible to store this in the Lims, generate on the fly.
193 (% class="info" %)|(((
194 **physicalProperty **PhysicalProperty
195 )))|(((
196 The combination of Quantity, Parameter and Condition to provide the parameter that has been measured.
197 **[[See this chapter for the combinations, and the CAS-NR's. >>https://wiki.terraindex.com/bin/view/Implementation%20documentation/Setting%20up%20Lab%20communication%20by%20REST%20services%20with%20TerraIndex/Lab%20result%20file/#HSIKB14Parameterresultcombinations]]**
198
199
200 )))
201 |**result **AnalyticResult|The result of the analysis, see next chapter.
202 |**procedure **AnalysisProcess|The process that has been used to measure/determine the result, see next chapter.
203
204 === AnalyticResult (inherited from MeasureResult) ===
205
206 The actual reported value, result of detection limit.
207
208 |**Attribute Name**|**Description**
209 |(((
210 **numericValue** Measure
211 )))|(((
212 Numeric Value - the numerical value of the observation. When no unit for the measurement is known, the unit 'Dimensionless' should be used.
213
214 Domaintable for Units: [[Eenheid>>https://codes.sikb.nl/tablet/domain-table-details/04f4f467-021b-4218-baa8-9742ed977c61]]
215 )))
216 |(((
217 **valueProcessingMethod** GenericName
218 )))|(((
219 Value Processing Method - a mathematical/statistical operation that is applied while the method of value determination/analysis standard remains unchanged.
220
221 The operation can be applied to a series of measurement values with the same parameter (quantity/component or typing or taxon or object) or to a series of measurement values with the same analysis method that are summed up to a sum parameter.
222 \\Default the value '5' meaning 'Not available' can and should be used, besides leaving it empty.
223
224 Domain table: [[Value Processing Method>>https://codes.sikb.nl/tablet/domain-table-details/a2310c26-065f-4aec-9440-74892ec77753]]
225 )))
226 |(((
227 **qualityIndicatorType** GenericName
228 )))|(((
229 Quality Indicator/Judgement -> Detection limit, etc.
230 \\Default the value '0' meaning 'Not available' can and should be used, besides leaving it empty.
231 If there is a detectionlimit/reportinglimit, use: '4', meaning 'determenated with full detection limit'
232
233 Domain table: [[Quality Judgement>>https://codes.sikb.nl/tablet/domain-table-details/1e17d9e6-4e0e-4f88-8fe5-c71f6a7931db]]
234 )))
235
236 |(((
237 **limitSymbol** CharacterString
238 )))|(((
239 LimietSymbool, allowed values: '<' en '>'.
240
241 '<' stands for 'less than the lowest threshold'
242
243 '>' stands for 'greater than the highest threshold'
244
245 The boundary for the limit symbol can be specified in the DeterminationLimits (LimitSymbolReferenceCode) as a reference with the actual value of the limit. The value can be included in the exchange in two ways:
246
247 1) as a CData block: <![CDATA[<]]> or <![CDATA[>]]>
248
249 2) as HTML code: '&amp; lt;' or '&amp; gt;'
250 \\Default the value is leaving it empty.
251 If there is a detectionlimit/reportinglimit, use: '<'
252 )))
253 |(((
254 **alphanumericValue** CharacterString
255 )))|Textual value associated with an analysis result
256
257 === AnalysisProcess ===
258
259 The process that has been used to detemine the measured value or result.
260
261 |**Attribute Name**|**Description**
262 |(((
263 **identification** NEN3610ID
264 )))|The unique identifier of the AnalysisProcess, it can be bound to multiple results at once.
265 |**analyticalTechnique **GenericName|(((
266 The used analytical technique to detemine the result.
267
268 Domain table: [[AnalyticalTechnique>>https://codes.sikb.nl/tablet/domain-table-details/04be2365-3d05-4903-a53e-edafef7111e8]]
269 )))
270 |**certification **GenericName|(((
271 The used certification to detemine the result.
272
273 Domain table: [[CertificationCode>>https://codes.sikb.nl/tablet/domain-table-details/04be2365-3d05-4903-a53e-edafef7111e8]]
274 )))
275 |**valuationMethod **GenericName|(((
276 The used valuation method to detemine the result.
277
278 Domain table: [[ValuationMethod>>https://codes.sikb.nl/tablet/domain-table-details/04be2365-3d05-4903-a53e-edafef7111e8]]
279 )))
280
281 = What to exchange to bind the results to the correct sample? =
282
283 The data stream ‘Lab Result’ is the feedback of analysis results on the requested lab assignment at a laboratory. At import we need to bind it onto the correct sample.
284
285 This requires importand field to match the samples in the xml to the samples in our database.
286
287 **Important fields:**
288
289 |=Entity|=Fixed value|=Remark
290 |**Project**|lokaalID (GUID)|As submitted in the Lab assignment XML
291 | |projectCode|As submitted in the Lab assignment XML
292 |**Labassignment**|lokaalID (GUID)|As submitted in the Lab assignment XML
293 |**Sample (analysis sample)**|lokaalID (GUID)|As submitted in the Lab assignment XML, if assignment in SIKB<11, but results in >=11; fill with old BISNR/IDANLMONS.
294 | |Name|As submitted in the Lab assignment XML
295 |**Sample (field sample)**|(((
296 lokaalID (GUID)
297 )))|Only if this entity is included, which is optional.
298
299 **Remarks:**
300
301 * The entity ‘Analysis Result’ does not yet have a fixed lokaalID (GUID), connected laboratories cannot yet guarantee that a unique ID will be generated.
302 * For Asbestos and Asphalt, new samples are also created at the Lab, which are therefore fed back with a reference to the sample from which they are derived.
303 * There is still a desire to feedback from a lab whether an analysis sample has been modified at the lab in terms of sub-samples. For example, if a jar has broken and been replaced with another jar. This has not yet been included in current practices.
304
305 **Importing the data will be done based on the following steps:**
306
307 * Search Project with Project.lokaalID (as placed in the Lab assignment XML).
308 * Search Project with Project.ProjectCode (as placed in the Lab assignment XML) if searching on Project.LokaalID yields no results.
309 * Search Project and Lab assignment with Labassignment.LokaalID (as placed in the Lab assignment XML) if the Project has not yet been found.
310 * Search Project (if Project not yet found) and Analysis Sample with Sample.LokaalID as GUID (as placed in the Lab assignment XML, version 11 and higher).
311 * Search Project (if Project not yet found) and Analysis Sample with Sample.LokaalID as BISNR (as placed in the Lab assignment XML, versions lower than 11, 'old' idanlmons/BISNR).
312 * Search Analysis Sample with Sample.Name within the project, if the Analysis Sample has not been found but the project has.
313
314 **What can be imported?**
315
316 * If an Analysis Sample is found, the Analysis Results are always updated or added.
317 * If Project is found, but the analysis sample is not; then this analysis sample is imported as a new analysis sample with all results.
318 * (If it concerns water samples, a new fictional/temporary measuring point and filter could be created.)
319
320 = SIKB 14 Parameter result combinations =
321
322 In the SIKB0101 version 14 exchange of **__labresults is combination needed __**for exchanging the result parameters of the Lab analysis.
323 It's based on PhysicalProperty, the combination of Quantity, Parameter and Condition.
324 \\[[image:1713183008796-215.png]]
325 *small remark, condition will be used as: [0..1]
326
327 Domaintables bound to these fields:
328
329 * Quantity -[[ Parameter, but only group/groep: Grootheid (Quantity)>>https://codes.sikb.nl/tablet/domain-table-details/0eafa483-2875-4c94-890d-66258a6b4d88]]
330 * Parameter -[[ Parameter, but mainly group/groep: Chemische Stof (Chemical substance)>>https://codes.sikb.nl/tablet/domain-table-details/0eafa483-2875-4c94-890d-66258a6b4d88]]
331 * Condition - Condition, but not group/groeps that refer to Chemical substance.
332
333 The combinations are defined for different compartiments like soil/ground, groundwater, wastewater.
334 Below are some examples, and some attachments included to support all combinations.
335
336 **2 Examples for Soil:**
337
338 |__**Parameter Name**__|__**Parameter ID**__|__**Quantity ID**__|__**Quantity name**__|__**Condition ID**__|__**Condition Name**__
339 |lood
340 (lead)|1116|2725|Massafractie
341 (Massfraction)|1|t.o.v. drooggewicht
342 (relative to dry weight)
343 |minerale olie
344 (minerale oil)|1200|2725|Massafractie
345 (Massfraction)|93|koolwaterstoffractie C10-C40 / drooggewicht
346 (hydrocarbon fraction C10-C40 / dry weight)
347
348 **2 Examples for Groundwater:**
349
350 |__**Parameter Name**__|__**Parameter ID**__|__**Quantity ID**__|__**Quantity name**__|__**Condition ID**__|__**Condition Name**__|
351 |cyanide-complex|2595|2720|(massa)Concentratie|9|opgeloste fractie (bijv. na filtratie)
352 |som 29 dioxines (TEQ)|2160|2720|(massa)Concentratie|10|uitgedrukt in Toxiciteit equivalenten
353
354 **2 Examples for Wastewater:**
355
356 |__**Parameter Name**__|__**Parameter ID**__|__**Quantity ID**__|__**Quantity name**__|__**Condition ID**__|__**Condition Name**__|
357 |cyanide-complex|2595|2720|(massa)Concentratie|8|Niet van toepassing
358 |som 29 dioxines (TEQ)|2160|2720|(massa)Concentratie|10|uitgedrukt in Toxiciteit equivalenten
359
360 __**Full combinations sheet:  **__[[attach:Full List of AnalysisResult combinations 04-2024.xlsx||rel="noopener noreferrer" target="_blank"]]
361
362 We can help you with the right combinations and mappings to your own codes.
363
364
365
366
TerraIndex
asd