<?xml version="1.0" encoding="utf-8"?>
<!--  <?xml version="1.0" encoding="utf-8"?>
Deklarering skal alltid inkluderes først i XML meldingen som sendes til Pasientens prøvesvar -->
<!-- DETTE ER EN TESTMELDING MED FIKTIVE PERSONDATA -->
<Message xmlns="http://www.kith.no/xmlstds/labsvar/2012-02-15" xmlns:xsd="http://www.w3.org/2001/XMLSchema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.kith.no/xmlstds/labsvar/2012-02-15 svar-v1.4.xsd">
  <Type V="SVAR_LAB" DN="Svarrapport-Laboratoriemedisin"/>
  <MIGversion>v1.4 2012-02-15</MIGversion>
  <!-- GenDate: reportdatetime -->
  <GenDate V="2024-07-01T09:11:00"/>
  <MsgId>d1380343-1047-4941-bfe0-23179188995a</MsgId>
  <ServReport>
    <!-- ServType_new: N - New report -->
    <ServType V="N" DN="Ny"/>
    <!-- IssueDate: sample.createdt -->
    <IssueDate V="2024-07-01T09:10:00"/>
    <Status V="F" DN="Endelig rapport"/>
    <Ack V="J" DN="Ja"/>
    <MsgDescr V="CLIN" DN="Medisinsk biokjemi"/>
    <!-- ServProvId: The same ID for all reports for a single request. SampleId (sample.s_sampleid) -->
    <ServProvId>REQLAB-35140955</ServProvId>
    <ServReq>
      <!-- IssueDate: request.createdt The time the request was created -->
      <IssueDate V="2024-06-29T09:10:00"/>
      <MsgDescr V="CLIN" DN="Medisinsk biokjemi"/>
	  <!-- ID: UUID created from the Requester -->
      <Id>6960F748-888F-4274-AA1A-2F8DB7198DFA</Id>
	  <!-- ReceiptDate: sample.receiveddt - The date and time the sample was received -->
      <ReceiptDate V="2024-06-30T09:10:00" />
      <!-- IdByServProvider: sample.s_sampleid - The lab's ID -->
      <IdByServProvider>REQ-SODB8M168</IdByServProvider>
	   <!-- Reservation: Reservation-code from OID=3108 - from requester - "R" (reservation) or "IR" (no reservation) 
	   Plan for NOT sending reports with "R" to Pasientens prøvesvar -->
	  <Reservation V="IR" S="2.16.578.1.12.4.1.1.3108" DN="Ingen reservasjon" />
	  <ReasonAsText>
		<TextResultValue>Pasienten føler seg sliten og ønsker en sjekk</TextResultValue>
	    <!-- TextCode: The reason for this requisition OID=8312 - from requester - "HHJ" (healthcare) 
			 Plan for ONLY sending reports with "HHJ" to Pasientens prøvesvar -->
        <TextCode V="HHJ" S="2.16.578.1.12.4.1.1.8312" DN="Helsehjelp" />
      </ReasonAsText>
    </ServReq>
    <Patient>
      <Sex V="1" DN="Mann"/>
      <!-- Name: samplepoint.w_lastname Patient name formatted as lastname, firstname -->
      <Name>Klubben, Kai Jack</Name>
      <!-- OffId: samplepoint.w_code -->
      <OffId>09090950972</OffId>
      <TypeOffId V="FNR" DN="Fødselsnummer"/>
	  <ResponsibleHcp>
        <Relation V="REK" DN="Rekvirent" />
        <HCP>
          <Inst>
            <Name>Testlegekontor</Name>
            <HCPerson>
              <Name>Kunstig Lege</Name>
              <Id>9144900</Id>
              <TypeId V="HPR" DN="HPR-nummer" />
            </HCPerson>
          </Inst>
        </HCP>
      </ResponsibleHcp>
      <AnalysedSubject>
        <CollectedSample>
          <!-- CollectedDate: sampleitems.collectiondt -->
          <CollectedDate V="2025-01-08T12:46:39"/>
        </CollectedSample>
        <!-- Type: sampleitems.materialdesc Material description or, if is empty, the id. In 1.2 always id -->
        <Type>Blod</Type>
        <!-- TypeCoded: material.w_externalcode. External code for the material -->
        <TypeCoded S="2.16.578.1.12.4.1.1.8351" V="B" DN="Blod" />
        <!-- IdByRequester: sampleitems.pid Requesters id for the sampleitem/analysed subject -->
        <IdByRequester>REQ-SODB8M168</IdByRequester>
        <!-- Number: Always 1. Number of sample tubes for this sampleitem/analysed subject. -->
        <Number>1</Number>
        <!-- IdByServProvider: sampleitems.w_sampleitemid Laboratory unique id for the sampleitem/analysed subject -->
        <IdByServProvider>LAB-ODB8M168-001</IdByServProvider>
      </AnalysedSubject>
      <!--
		Every ResultItem must have a ServType included (1), even if Investigation is not included.
      -->
      <ResultItem>
          <NumResult>
            <!-- NumResultValue: numresult - Comes from tests.displayvalue but without the lt or gt char -->
            <NumResultValue V="2.1" U="nmol/L"/>
          </NumResult>
          <!-- ServType: Result is new or unchanged -->
          <ServType V="N" DN="Ny"/>
          <RefInterval>
            <!-- Descr: normrefrange_row Reference range -->
            <Descr>&lt;1.1</Descr>
          </RefInterval>
          <Investigation>
            <!-- Id: 7280 : External code defined for the test -->
            <Id V="NPU03543" S="2.16.578.1.12.4.1.1.7280" DN="P-Testosteron "/>
            <!-- Id: Local id and name 8212 - should NOT include both 7280 AND local 8312 for the ame investigation -->
            <Id V="TESTO" S="2.16.578.1.12.4.1.1.8212" OT="P-Testosteron "/>
          </Investigation>
          <InvDate V="2024-07-01T08:42:00"/>         
          <!-- Comment: Test comment -->
          <Comment>Det er normalt at testosteronnivået faller i løpet av dagen. </Comment>
          <DevResultInd V="1" DN="Over øvre referansegrense"/>
          <!-- StatusInvestigation: Result -->
          <StatusInvestigation V="3" DN="Endelig"/>
          <!-- refAnalysedSubject: sampleitems.w_sampleitemid A reference to the analysed subject -->
          <RefAnalysedSubject>LAB-ODB8M168-001</RefAnalysedSubject>
          <Accredited V="true"/>
        <!-- Test_end: TESTO -->
        </ResultItem>
        <!--
          Test_start: SHBG
        -->
        <ResultItem>
          <NumResult>
            <!-- NumResultValue: numresult - Comes from tests.displayvalue but without the lt or gt char -->
            <NumResultValue V="100" U="nmol/L"/>
          </NumResult>
          <!-- ServType: Result is new or unchanged -->
          <ServType V="N" DN="Ny"/>
          <RefInterval>
            <!-- Descr: normrefrange_row Reference range -->
            <Descr>23-150</Descr>
          </RefInterval>
          <Investigation>
            <!-- Id: 7280 : External code defined for the test -->
            <Id V="NPU03419" S="2.16.578.1.12.4.1.1.7280" DN="P-Seksualhormonbindende globulin (SHBG) "/>
            <!-- Id: Local id and name - should NOT include both 7280 AND local 8312 for the ame investigation -->
            <Id V="SHBG" S="2.16.578.1.12.4.1.1.8212" OT="P-Seksualhormonbindende globulin (SHBG) "/>
          </Investigation>
          <InvDate V="2024-07-01T08:41:00"/>         
          <!-- StatusInvestigation: Result -->
          <StatusInvestigation V="3" DN="Endelig"/>
          <!-- refAnalysedSubject: sampleitems.w_sampleitemid A reference to the analysed subject -->
          <RefAnalysedSubject>LAB-ODB8M168-001</RefAnalysedSubject>
        <!-- Test_end: SHBG -->
        </ResultItem>
        <!--
          Test_start: FTI
        -->
        <ResultItem>
          <NumResult>
            <!-- NumResultValue: numresult - Comes from tests.displayvalue but without the lt or gt char -->
            <NumResultValue V="0.2" U="nmol/L"/>
          </NumResult>
          <!-- ServType: Result is new or unchanged -->
          <ServType V="N" DN="Ny"/>
          <RefInterval>
            <!-- Descr: normrefrange_row Reference range -->
            <Descr>&lt;0.3</Descr>
          </RefInterval>
          <Investigation>
            <!-- Id: 7280 : External code defined for the test -->
            <Id V="NPU18893" S="2.16.578.1.12.4.1.1.7280" DN="P-Fri testosteron-indeks "/>
            <!-- Id: Local id and name - should NOT include both 7280 AND local 8312 for the ame investigation -->
            <Id V="FTI" S="2.16.578.1.12.4.1.1.8212" OT="P-Fri testosteron-indeks "/>
          </Investigation>
          <InvDate V="2024-07-01T08:42:00"/>         
          <!-- StatusInvestigation: Result -->
          <StatusInvestigation V="3" DN="Endelig"/>
          <!-- refAnalysedSubject: sampleitems.w_sampleitemid A reference to the analysed subject -->
          <RefAnalysedSubject>LAB-ODB8M168-001</RefAnalysedSubject>
        <!-- Test_end: FTI -->
      <!-- Reportgroup_end: Hormoner -->
      </ResultItem>
    </Patient>
    <ServProvider>
      <HCP>
        <Inst>
          <Name>NORSK HELSENETT SF</Name>
          <Id>112374</Id>
          <TypeId V="HER" DN="HER-id" />
          <!-- 9051 -->
          <Dept>
            <Name>Meldingsvalidering</Name>
            <Id>8094866</Id>
            <TypeId V="HER" DN="HER-id" />
          </Dept>
        </Inst>
      </HCP>
    </ServProvider>
    <Requester>
      <ComMethod V="EDI" DN="EDI" />
      <HCP>
        <Inst>
          <Name>NORSK HELSENETT SF</Name>
          <Id>112374</Id>
          <TypeId V="HER" DN="HER-id" />
          <Dept>
            <Name>Pasientens prøvesvar</Name>
            <Id>8139764</Id>
            <TypeId V="HER" DN="HER-id" />
          </Dept>
        </Inst>
      </HCP>
    </Requester>
   <RelServProv>
   <!-- OID=8254 - ARP to use for RAD, "Ansvarlig for rapport", LAB for responcible ServProvider 
   "Utførende laboratorium" - RelServProv -->
      <Relation V="LAB" DN="Utførende laboratorium" />
		<HCP>
			<Inst>
			<!-- Name: Can be the Dept in Addressregister, or combination Inst, Dept -->
				<Name>Ingen Varsling til ungdom</Name>
			</Inst>
        <Address>
          <Type V="WP" DN="Arbeidsadresse" />
          <TeleAddress V="tel:75552900" />
        </Address>
      </HCP>
    </RelServProv>
  </ServReport>
</Message>
