<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- http://www.w3.org/2001/XMLSchema -->
<schema xmlns:urp="http://www.kith.no/xmlstds/po/2005-07-08" xmlns:kith="http://www.kith.no/xmlstds" xmlns:xsd="http://www.w3.org/2001/XMLSchema.xsd" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.kith.no/xmlstds/po/2005-07-08" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<!-- schema 
    targetNamespace = 'http://www.kith.no/xmlstds'
       xmlns='http://www.w3.org/2001/XMLSchema'
       xmlns:xsd='http://www.w3.org/2001/XMLSchema.xsd' 
       xmlns:kith='http://www.kith.no/xmlstds' 
       xmlns:url = 'http://www.kith.no/xmlstds'
    elementFormDefault = 'qualified'
    attributeFormDefault='unqualified'>
   <include schemaLocation='kith.xsd'/ -->
	<!-- LEVEL 1 -->
	<!-- Class: PO-melding -->
	<element name="POMelding">
		<annotation>
			<documentation>
         Inneholder en melding med utvalgt informasjon fra journalen som er mottatt fra en annen virksomhet innenfor helsevesenet.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="Type" type="urp:CS"/>
				<element name="MIGversion" type="string"/>
				<element name="GenDate" type="dateTime"/>
				<element name="MsgId" type="string"/>
				<element name="Status" type="urp:CS" minOccurs="0"/>
				<element ref="urp:UttrekkFraEPJdokument" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="urp:SendtAnnetDokument" minOccurs="0" maxOccurs="unbounded"/>
			</sequence>
		</complexType>
	</element>
	<!-- LEVEL 2 -->
	<!-- Class: Uttrekk fra EPJ-dokument -->
	<element name="UttrekkFraEPJdokument">
		<annotation>
			<documentation>
         Denne fragmenttypen benyttes for å samle fragmenter som stammer fra et EPJ-dokument i den EPJ avsender fører for tjenestemottakeren.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element ref="urp:TidsfestetHendelse" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="urp:KontaktpersonHelsepersonell" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="urp:ParorendeForesatt" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="urp:AnnenKontaktperson" minOccurs="0" maxOccurs="unbounded"/>
				<element name="OpprinneligDokumenttype" type="urp:OID" minOccurs="0"/>
				<element ref="urp:EksisterendeTjeneste" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="urp:BehovForTolk" minOccurs="0"/>
				<element ref="urp:Funksjonskartlegginger" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="urp:StikkordCave" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="urp:InnholdNBnotat" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="urp:Allergi" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="urp:MedisinskDiagnose" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="urp:Journaltekst" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="urp:Legemidler" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="urp:TjenesteBehov" minOccurs="0" maxOccurs="unbounded"/>
			</sequence>
		</complexType>
	</element>
	<complexType name="OID">
		<!-- Type is unknown. Have to be defined manually -->
	</complexType>
	<!-- Class: SendtAnnetDokument -->
	<element name="SendtAnnetDokument">
		<annotation>
			<documentation>
         Denne klassen benyttes til å angi om det er oversendt andre dokumenter som kan være relevante i forhold til den informasjonen som oversendes gjennom denne meldingen.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="Opplysning" type="urp:CV"/>
				<element name="JaNei" type="boolean"/>
				<element name="Merknad" type="string" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- LEVEL 3 -->
	<!-- Class: Tidsfestet hendelse -->
	<element name="TidsfestetHendelse">
		<annotation>
			<documentation>
         Benyttes for å kommunisere forskjellige typer "hendelser", både planlagte og slike som har funnet sted. Eksempler på slike hendelser kan f.eks. være:  Innlagt tidspunkt  Forventet utskrivningsklar dato  Utskrivningsklar tidspunkt
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="HendelseKode" type="urp:CV" minOccurs="0"/>
				<element name="BeskrivelseAvHendelse" type="string" minOccurs="0"/>
				<element name="TidspunktForHendelse" type="urp:TS"/>
				<element name="Anslag" type="boolean"/>
				<element name="Merknad" type="string" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Stikkord Cave -->
	<element name="StikkordCave">
		<annotation>
			<documentation>
         Fragmentet benyttes til å registrere opplysninger i stikkordsform vedrørende legemiddel- og næringsmiddelallergi, og eventuelt annet som det er særlig viktig å være oppmerksom på. For mer utfyllende opplysninger benyttes fragmenter av typen journaltekst e.l.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="CaveStikkord" type="string"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Pårørende/foresatt -->
	<element name="ParorendeForesatt">
		<annotation>
			<documentation>
         Dette fragmentet inneholder informasjon som identifiserer en av de pårørende/foresatte til tjenestemottakeren. 
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="Slektskap" type="urp:CS" minOccurs="0"/>
				<element name="Omsorgsfunksjon" type="urp:CS" minOccurs="0"/>
				<element name="Merknad" type="string" minOccurs="0"/>
				<element ref="urp:Person" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Medisinsk diagnose fragment -->
	<element name="MedisinskDiagnose">
		<annotation>
			<documentation>
         Benyttes for å registrere en enkelt diagnose i form av en kode eller som tekst.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="Hoveddiagnose" type="boolean"/>
				<element name="Diagnosekode" type="urp:CV" minOccurs="0"/>
				<element name="Diagnose" type="string" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Kontaktperson helsepersonell -->
	<element name="KontaktpersonHelsepersonell">
		<annotation>
			<documentation>
         Denne type fragment benyttes til å registrere forskjellige kontaktpersoner som er helsepersonell, f.eks. tjenestemottakerens fastlege, kontaktsykepleier e.l.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="HpRollekode" type="urp:CS" minOccurs="0"/>
				<element name="HprKat" type="urp:CS"/>
				<element name="HprNr" type="string" minOccurs="0"/>
				<element name="Merknad" type="string" minOccurs="0"/>
				<element ref="urp:Person" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Innhold NB-notat -->
	<element name="InnholdNBnotat">
		<annotation>
			<documentation>
         Fragmentet benyttes til å registrere innholdet i NB-notater.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="NBkode" type="urp:CV"/>
				<element ref="urp:Journaltekst" maxOccurs="unbounded"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Funksjonskartlegginger -->
	<element name="Funksjonskartlegginger">
		<complexType>
			<sequence>
				<element ref="urp:KartlagtFunksjon" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="urp:SamletVurderingFunksjonsniva" minOccurs="0"/>
				<element ref="urp:Ansvarlig" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Eksisterende tjeneste -->
	<element name="EksisterendeTjeneste">
		<annotation>
			<documentation>
         Benyttes til å beskrive en tjeneste som pasienten allerede har. Dette kan både være kommunale pleie- og omsorgstjenester og private tjenester som tjenestemottakeren har skaffet og betaler selv.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="IPLOStjenestetype" type="urp:CV" minOccurs="0"/>
				<element name="BetegnelsePaTjeneste" type="string"/>
				<element name="PrivatTjeneste" type="boolean"/>
				<element name="TjenestenLevertAv" type="string" minOccurs="0"/>
				<element name="OpplysningerOmTjenesten" type="string" minOccurs="0"/>
				<element name="AntallEnheter" type="double" minOccurs="0"/>
				<element name="Enhet" type="string" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Behov for tolk -->
	<element name="BehovForTolk">
		<annotation>
			<documentation>
         Benyttes for å angi hvilket behov og ønsker tjenestemottaker og dennes omsorgspersoner har når det gjelder bruk av tolk, samt opplysninger om andre praktiske forhold de som har kontakt med personen bør ha kjennskap til.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="Sprak" type="urp:CS" minOccurs="0"/>
				<element name="ErDov" type="boolean"/>
				<element name="ErBlind" type="boolean"/>
				<element name="BehovOpphortDato" type="date" minOccurs="0"/>
				<element name="Merknad" type="string" minOccurs="0"/>
				<element ref="urp:Person" minOccurs="0" maxOccurs="unbounded"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Behov for tjeneste -->
	<element name="TjenesteBehov">
		<annotation>
			<documentation>
         Benyttes til å beskrive en tjeneste som pasienten har behov for ved overføring til pleie- og omsorgstjenesten.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="IPLOStjenestetype" type="urp:CV" minOccurs="0"/>
				<element name="Betegnelse" type="string"/>
				<element name="VedInstitusjon" type="string" minOccurs="0"/>
				<element name="BeskrivelseAvTjeneste" type="string" minOccurs="0"/>
				<element name="AntallEnheterOnsket" type="double" minOccurs="0"/>
				<element name="Enhet" type="string" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Annen kontaktperson -->
	<element name="AnnenKontaktperson">
		<annotation>
			<documentation>
         Benyttes til å registrere personer som ikke er helsepersonell eller pårørende (f.eks. et barns lærer, en sosionom e.l.). Kan være aktuelt å ta med, f.eks. relatert til gjennomføring av individuell plan. 
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="Stilling" type="urp:CV" minOccurs="0"/>
				<element name="RolleKontaktperson" type="string" minOccurs="0"/>
				<element name="Tilgjengelighet" type="string" minOccurs="0"/>
				<element name="Merknad" type="string" minOccurs="0"/>
				<element ref="urp:Person" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Legemidler -->
	<element name="Legemidler">
		<complexType>
			<sequence>
				<element ref="urp:OpplysningOmLegemiddelbruk" minOccurs="0" maxOccurs="unbounded"/>
				<choice>
					<element ref="urp:AdmAvHelsepersonell" minOccurs="0" maxOccurs="unbounded"/>
					<element ref="urp:Egenadministrering" minOccurs="0" maxOccurs="unbounded"/>
				</choice>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Allergi -->
	<element name="Allergi">
		<annotation>
			<documentation>
         Hvert fragment av denne typen benyttes for å registrere opplysning om en enkelt type allergi.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="ta_hensyn_ved_forskrivning" type="boolean"/>
				<element name="ta_hensyn_i_forbindelse_med_mat_og_drikke_mv" type="boolean"/>
				<element name="kontaktallergi" type="boolean"/>
				<element name="pollen_innsektstikk_mv" type="boolean"/>
				<element name="allergisk_mot" type="string"/>
				<element name="virkestoff_i_legemiddel" type="urp:CV" minOccurs="0"/>
				<element name="kode_for_annet_stoff" type="urp:CV" minOccurs="0"/>
				<element ref="urp:Journaltekst" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- LEVEL 4 -->
	<!-- Class: Samlet vurdering funksjonsnivå -->
	<element name="SamletVurderingFunksjonsniva">
		<annotation>
			<documentation>
         Denne fragmenttypen benyttes for å registrere en samlet vurdering basert på et sett av enkeltvurderinger knyttet til funksjonsvariabler.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="Pleietyngde" type="double" minOccurs="0"/>
				<element name="VurderingPleietyngde" type="string" minOccurs="0"/>
				<element name="Merknad" type="string" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Kartlagt funksjon -->
	<element name="KartlagtFunksjon">
		<annotation>
			<documentation>
         Registrering av hvilken funksjon som er vurdert samt resultatet av vurderingen.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="Funksjonsvariabel" type="urp:CV"/>
				<element name="Vurdering" type="integer" minOccurs="0"/>
				<element name="Merknad" type="string" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Journaltekst -->
	<element name="Journaltekst">
		<annotation>
			<documentation>
         Klassen benyttes til overføring av ustrukturert informasjon.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="Overskriftskode" type="urp:CV" minOccurs="0"/>
				<element name="Notat" type="anyType"/>
				<element name="Merknad" type="string" minOccurs="0"/>
				<element ref="urp:Ansvarlig" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Adm. av helsepersonell -->
	<element name="AdmAvHelsepersonell">
		<annotation>
			<documentation>
         Brukes for å angi personellets administrering av en enkeltdose til en pasient.    Merk: Det må opprettes en referanse til den instans av Dose som legemiddeladministreringen refererer til.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="AdmEnkeltdose" type="double"/>
				<element name="DoseringEnhet" type="urp:CS"/>
				<element name="AdmStart" type="urp:TS"/>
				<element name="AdmSlutt" type="urp:TS" minOccurs="0"/>
				<element name="AdmStatus" type="urp:CS" minOccurs="0"/>
				<element ref="urp:Ansvarlig" minOccurs="0"/>
				<element ref="urp:OpplysningOmLegemiddelbruk" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Egenadministrering -->
	<element name="Egenadministrering">
		<annotation>
			<documentation>
         Dette fragmentet er en spesialisering av Legemiddeladministrering. Fragmentet brukes for å angi personellets utlevering av en eller flere delmengder av en samlet dose legemiddel til pasienten (eller pasientens pårørende) som selv skal forestå å administrere legemidlet.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="AdmEnkeltdose" type="double"/>
				<element name="DoseringEnhet" type="urp:CS"/>
				<element name="AdmStart" type="urp:TS"/>
				<element name="AdmSlutt" type="urp:TS" minOccurs="0"/>
				<element ref="urp:UtlevertLegemiddel" maxOccurs="unbounded"/>
				<element ref="urp:Ansvarlig" minOccurs="0"/>
				<element ref="urp:OpplysningOmLegemiddelbruk" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- LEVEL 5 -->
	<!-- Class: Person -->
	<element name="Person">
		<annotation>
			<documentation>
         Denne fragmenttypen benyttes kun ved kommunikasjon av opplysninger og benyttes for å registrere opplysninger som er felles for alle typer personer, dvs. både pasienter og helsepersonell.  Ved registrering i EPJ vil denne fragmenttypen erstattes av en referanse til person (Et element av datatype R-P).
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="Sex" type="urp:CS" minOccurs="0"/>
				<element name="Nationality" type="urp:CS" minOccurs="0"/>
				<element name="FamilyName" type="string" minOccurs="0"/>
				<element name="MiddleName" type="string" minOccurs="0"/>
				<element name="GivenName" type="string" minOccurs="0"/>
				<element name="DateOfBirth" type="date" minOccurs="0"/>
				<element ref="urp:Ident" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="urp:Adress" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="urp:TeleCom" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="urp:WorkingCondition" minOccurs="0" maxOccurs="unbounded"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Opplysning om legemiddelbruk -->
	<element name="OpplysningOmLegemiddelbruk">
		<annotation>
			<documentation>
         Denne typen fragment benyttes for å kommunisere opplysninger om legemiddelbruk. Ved mottak av denne typen opplysninger skal de vurderes av lege før de eventuelt legges inn i et dokument av typen "Rapportert legemiddelbruk" eller "Forskrivninger"
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="Legemiddeltype" type="urp:CS"/>
				<element name="VarenummerLegemiddel" type="integer" minOccurs="0"/>
				<element name="BetegnelseLegemiddel" type="string"/>
				<element name="StyrkeLegemiddel" type="string" minOccurs="0"/>
				<element name="MaleenhetStyrke" type="urp:CS" minOccurs="0"/>
				<element name="StyrkeMerknad" type="string" minOccurs="0"/>
				<element name="ATCnr" type="urp:CS" minOccurs="0"/>
				<element name="Legemiddelform" type="urp:CS"/>
				<element name="AdmVei" type="urp:CS" minOccurs="0"/>
				<element name="BruksomradeKode" type="string" minOccurs="0"/>
				<element name="BruksomradeTekst" type="string" minOccurs="0"/>
				<element name="FastLegemiddel" type="boolean"/>
				<element name="Merknad" type="string" minOccurs="0"/>
				<element ref="urp:Dosering" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="urp:Ansvarlig" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Dosering -->
	<element name="Dosering">
		<annotation>
			<documentation>
         I dette fragment inngår alle opplysninger knyttet til doseringen av et legemiddel, tidspunkt/tidsramme for inntak av legemidler samt måten legemiddelet skal inntas. 
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="AdministreringVeiledning" type="string" minOccurs="0"/>
				<element name="DoseringStarttidspunkt" type="urp:TS" minOccurs="0"/>
				<element name="DoseringSluttidspunkt" type="urp:TS" minOccurs="0"/>
				<element name="FasteDagerUke" type="urp:CS" minOccurs="0" maxOccurs="unbounded"/>
				<element name="AntallDoserPrDag" type="integer" minOccurs="0"/>
				<choice>
					<element ref="urp:FastTidspunktDose" maxOccurs="unbounded"/>
					<element ref="urp:PnDose" maxOccurs="unbounded"/>
				</choice>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Ansvarlig -->
	<element name="Ansvarlig">
		<annotation>
			<documentation>
         Denne typen fragment benyttes til å registrere opplysninger om ansvar vedrørende ansvarlig for en bestemt vurdering e.l. Merk at dersom den ansvarlige er en tjenesteyter i den virksomhet som journalen føres, skal dette framgå av den generelle registreringsinformasjonen. Denne fragmenttypen er derfor primært beregnet på å registrere opplysninger relatert til vurderinger mv. som er foretatt eksternt samt i forbindelse med elektronisk overføring av slike opplysninger til andre virksomheter. Merk også at det ikke er obligatorisk å angi ansvarlig person, ofte kan det være tilstrekkelig å angi virksomhet.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="TypeHendelse" type="urp:CV" minOccurs="0"/>
				<element name="KategoriHelsepersonell" type="urp:CS"/>
				<element name="TidspunktForHendelse" type="dateTime"/>
				<element name="Ekstern" type="boolean"/>
				<element name="Merknad" type="string" minOccurs="0"/>
				<element ref="urp:Organisation" minOccurs="0"/>
				<element ref="urp:Person" minOccurs="0" maxOccurs="unbounded"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Utlevert legemiddel -->
	<element name="UtlevertLegemiddel">
		<annotation>
			<documentation>
         Brukes for å angi personellets utlevering av en eller flere delmengder av en samlet dose legemiddel til pasienten (eller pasientens pårørende) som selv skal forestå å administrere legemidlet.    Merk: Det må opprettes en referanse til den instans av Dose som utleveringen refererer til.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="AntEnkeltdoser" type="integer"/>
			</sequence>
		</complexType>
	</element>
	<!-- LEVEL 6 -->
	<!-- Class: Telekommunikasjon -->
	<element name="TeleCom">
		<annotation>
			<documentation>
         Inneholder opplysninger om telekommunikasjonsadresse, inklusive kommunikasjonstype. Denne klassen benyttes for å registrere telefonnummer, telefaks, personsøker etc., knyttes opp mot de registrerte adressene.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="TypeTelecom" type="urp:CS" minOccurs="0"/>
				<element name="TelecomAddress" type="urp:URL"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Arbeidsforhold -->
	<element name="WorkingCondition">
		<annotation>
			<documentation>
         For å angi informasjon om personens arbeidsforhold.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="ProfessionCode" type="urp:CS" minOccurs="0"/>
				<element name="PrimaryWorkingProfession" type="boolean"/>
				<element name="ProfessionDescription" type="string" minOccurs="0"/>
				<element ref="urp:Organisation" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Adresse -->
	<element name="Adress">
		<annotation>
			<documentation>
         Denne klassen benyttes til å registrere adresser til personer og virksomheter.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="TypeAddress" type="urp:CS" minOccurs="0"/>
				<element name="County" type="urp:CS" minOccurs="0"/>
				<element name="Country" type="urp:CS" minOccurs="0"/>
				<element name="StreetAdr" type="string" minOccurs="0"/>
				<element name="PostalCode" type="string" minOccurs="0"/>
				<element name="City" type="string" minOccurs="0"/>
				<element name="Postbox" type="string" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Fast tidspunkt dose -->
	<element name="FastTidspunktDose">
		<annotation>
			<documentation>
         Fragmentet brukes for å angi de tidspunkter en legemiddeldose, som skal administreres til faste tider, er planlagt gitt eller utlevert.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="MengdeEnkeltdose" type="double"/>
				<element name="DoseringEnhet" type="urp:CS"/>
				<element name="GjentagelseIntervall" type="integer" minOccurs="0"/>
				<element name="Tidsenhet" type="urp:CS" minOccurs="0"/>
				<element name="Klokkeslett" type="time" minOccurs="0"/>
				<element name="Multidose" type="urp:CS" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Etter behov dose -->
	<element name="PnDose">
		<annotation>
			<documentation>
         Dette fragmentet gir opplysning om administreringskrav knyttet til "etter-behov" dosering.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="MengdeEnkeltdose" type="double"/>
				<element name="DoseringEnhet" type="urp:CS"/>
				<element name="GjentagelseIntervall" type="integer" minOccurs="0"/>
				<element name="Tidsenhet" type="urp:CS" minOccurs="0"/>
				<element name="MaksDogndose" type="double" minOccurs="0"/>
				<element name="MaksDosePrTidsenhet" type="double" minOccurs="0"/>
				<element name="TidsenhetForMaksDose" type="urp:CS" minOccurs="0"/>
				<element name="MinDoseIntervall" type="double" minOccurs="0"/>
				<element name="MinDoseIntervallTidsenhet" type="urp:CS" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- Class: Identifikator -->
	<element name="Ident">
		<annotation>
			<documentation>
         Identifikasjon som tilknyttede enhet er eller har vært kjent under.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="TypeId" type="urp:CV" minOccurs="0"/>
				<element name="Id" type="string" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<!-- LEVEL 7 -->
	<!-- Class: Virksomhet -->
	<element name="Organisation">
		<annotation>
			<documentation>
         Denne klassen benyttes til å beskrive de virksomheter som direkte eller indirekte skal kunne refereres fra meldingsinnholdet. Dette kan f.eks. være pasienters arbeidsgivere, virksomheter som det overføres journalinformasjon fra, eller som har vært kilde til informasjon i EPJ, f.eks. et eksternt laboratorium.
      </documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="TypeOrganisation" type="urp:CV"/>
				<element name="OrganisationName" type="string"/>
				<element ref="urp:Ident" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="urp:Adress" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="urp:TeleCom" minOccurs="0" maxOccurs="unbounded"/>
			</sequence>
		</complexType>
	</element>
	<!-- Inkluderte komplekse datatyper -->
	<complexType name="TS">
		<attribute name="V" use="optional">
			<simpleType>
				<union memberTypes="dateTime date gYear gYearMonth time"/>
			</simpleType>
		</attribute>
	</complexType>
	<complexType name="CS">
		<attribute name="V" type="token" use="optional"/>
		<attribute name="DN" type="string" use="optional"/>
	</complexType>
	<complexType name="CV">
		<attribute name="V" type="token" use="optional"/>
		<attribute name="S" type="urp:oid" use="optional"/>
		<attribute name="DN" type="string" use="optional"/>
		<attribute name="OT" type="string" use="optional"/>
	</complexType>
	<complexType name="URL">
		<attribute name="V" type="anyURI" use="optional"/>
	</complexType>
	<simpleType name="oid">
		<restriction base="token">
			<pattern value="(\d+\.?)*\d+"/>
		</restriction>
	</simpleType>
</schema>

