Schema importantmedicalfacts.xsd


schema location:  ..\..\importantmedicalfacts.xsd
 
Elements  Complex types 
ImportantMedicalFacts  Info 
JournalType 


schema location:  ..\..\include\personbasictypes.xsd
 
Complex types 
IMFBaseType 
PatientEconomicAddressBaseType 
PatientEconomicAddressType 
PatientIdFormattedType 
PatientIdType 
PersonAddressExtType 
PersonAddressType 
PersonalInformationBaseType 
PersonalInformationExt1Type 
PersonalInformationExt2Type 
PersonalInformationExt3Type 
PersonIdType 
PersonNamesType 
PersonNameType 
PersonRegisterAddressBaseType 
PersonRegisterAddressType 
PersonTelecomType 


schema location:  ..\..\include\ContactTypes.xsd
 
Complex types 
AdmMedRemarkType 
ContactDetailCareType 
ContactDetailMedType 
ContactDetailType 
ContactType 
ContactTypeDetails 
ContactTypeLatest 
DiagnosisType 
ProcedureCodeType 
RemarkType 


schema location:  ..\..\include\CommonBasicTypes.xsd
 
Complex types 
CodeNameType 
CodeOfficialCodeTextType 
CodeTextType 
IdCodeNameType 
IdCodeOfficialCodeTextType 
IdCodeShortAndLongTextType 
IdCodeTextType 
IdCodeType 
IdNameType 
IdShortAndLongTextType 
IdTextType 
LastChangedType 
MedCodeType 
ShortAndLongTextType 
UserType 


schema location:  ..\..\include\OrgBasicTypes.xsd
 
Complex types 
ExternalOrganizationType 
OrganizationType 
ResourceType 


element ImportantMedicalFacts
diagram
type extension of IMFBaseType
children Id Code Text Description PatientId Started Closed ChangedBy ChangedDate Type
annotation
documentation 
Comment describing your root element
source
<xs:element name="ImportantMedicalFacts">
  <xs:annotation>
    <xs:documentation>Comment describing your root element</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:complexContent>
      <xs:extension base="IMFBaseType">
        <xs:sequence>
          <xs:element name="PatientId" type="xs:int">
            <xs:annotation>
              <xs:documentation>Internal patient id.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="Started" type="Info">
            <xs:annotation>
              <xs:documentation>IMF start information</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="Closed" type="Info" minOccurs="0">
            <xs:annotation>
              <xs:documentation>IMF closed information.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="ChangedBy" type="xs:string">
            <xs:annotation>
              <xs:documentation>Changed by.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="ChangedDate" type="xs:date">
            <xs:annotation>
              <xs:documentation>Changed date.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="Type" type="xs:string">
            <xs:annotation>
              <xs:documentation>IMF Type (Infomedix example : CAVE, INF or FACT)</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
</xs:element>

element ImportantMedicalFacts/PatientId
diagram
type xs:int
annotation
documentation 
Internal patient id.
source
<xs:element name="PatientId" type="xs:int">
  <xs:annotation>
    <xs:documentation>Internal patient id.</xs:documentation>
  </xs:annotation>
</xs:element>

element ImportantMedicalFacts/Started
diagram
type Info
children ResponsibleId Comment Journal Date
annotation
documentation 
IMF start information
source
<xs:element name="Started" type="Info">
  <xs:annotation>
    <xs:documentation>IMF start information</xs:documentation>
  </xs:annotation>
</xs:element>

element ImportantMedicalFacts/Closed
diagram
type Info
children ResponsibleId Comment Journal Date
annotation
documentation 
IMF closed information.
source
<xs:element name="Closed" type="Info" minOccurs="0">
  <xs:annotation>
    <xs:documentation>IMF closed information.</xs:documentation>
  </xs:annotation>
</xs:element>

element ImportantMedicalFacts/ChangedBy
diagram
type xs:string
annotation
documentation 
Changed by.
source
<xs:element name="ChangedBy" type="xs:string">
  <xs:annotation>
    <xs:documentation>Changed by.</xs:documentation>
  </xs:annotation>
</xs:element>

element ImportantMedicalFacts/ChangedDate
diagram
type xs:date
annotation
documentation 
Changed date.
source
<xs:element name="ChangedDate" type="xs:date">
  <xs:annotation>
    <xs:documentation>Changed date.</xs:documentation>
  </xs:annotation>
</xs:element>

element ImportantMedicalFacts/Type
diagram
type xs:string
annotation
documentation 
IMF Type (Infomedix example : CAVE, INF or FACT)
source
<xs:element name="Type" type="xs:string">
  <xs:annotation>
    <xs:documentation>IMF Type (Infomedix example : CAVE, INF or FACT)</xs:documentation>
  </xs:annotation>
</xs:element>

complexType Info
diagram
children ResponsibleId Comment Journal Date
used by
elements ImportantMedicalFacts/Closed ImportantMedicalFacts/Started
source
<xs:complexType name="Info">
  <xs:sequence>
    <xs:element name="ResponsibleId" type="xs:int">
      <xs:annotation>
        <xs:documentation>Id of responsible resource.</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="Comment" type="xs:string" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Comment.</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="Journal" type="JournalType" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Journal information</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="Date" type="xs:date">
      <xs:annotation>
        <xs:documentation>Date when IMF was started or ended.</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element Info/ResponsibleId
diagram
type xs:int
annotation
documentation 
Id of responsible resource.
source
<xs:element name="ResponsibleId" type="xs:int">
  <xs:annotation>
    <xs:documentation>Id of responsible resource.</xs:documentation>
  </xs:annotation>
</xs:element>

element Info/Comment
diagram
type xs:string
annotation
documentation 
Comment.
source
<xs:element name="Comment" type="xs:string" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Comment.</xs:documentation>
  </xs:annotation>
</xs:element>

element Info/Journal
diagram
type JournalType
children Id Version
annotation
documentation 
Journal information
source
<xs:element name="Journal" type="JournalType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Journal information</xs:documentation>
  </xs:annotation>
</xs:element>

element Info/Date
diagram
type xs:date
annotation
documentation 
Date when IMF was started or ended.
source
<xs:element name="Date" type="xs:date">
  <xs:annotation>
    <xs:documentation>Date when IMF was started or ended.</xs:documentation>
  </xs:annotation>
</xs:element>

complexType JournalType
diagram
children Id Version
used by
element Info/Journal
source
<xs:complexType name="JournalType">
  <xs:sequence>
    <xs:element name="Id" type="xs:int">
      <xs:annotation>
        <xs:documentation>Journal id.</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="Version" type="xs:int">
      <xs:annotation>
        <xs:documentation>Journal version.</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element JournalType/Id
diagram
type xs:int
annotation
documentation 
Journal id.
source
<xs:element name="Id" type="xs:int">
  <xs:annotation>
    <xs:documentation>Journal id.</xs:documentation>
  </xs:annotation>
</xs:element>

element JournalType/Version
diagram
type xs:int
annotation
documentation 
Journal version.
source
<xs:element name="Version" type="xs:int">
  <xs:annotation>
    <xs:documentation>Journal version.</xs:documentation>
  </xs:annotation>
</xs:element>

complexType IMFBaseType
diagram
children Id Code Text Description
used by
element ImportantMedicalFacts
annotation
documentation 
Important medical facts.
source
<xs:complexType name="IMFBaseType">
  <xs:annotation>
    <xs:documentation>Important medical facts.</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Id" type="xs:int">
      <xs:annotation>
        <xs:documentation>Internal, unique IMF id</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:choice>
      <xs:element name="Code" type="MedCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Code related to a medical register, like ATC, ICD-10.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Text" type="xs:string" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Text typed in by the user if Code is not given.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:choice>
    <xs:element name="Description" type="xs:string" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Description of the IMF.</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element IMFBaseType/Id
diagram
type xs:int
annotation
documentation 
Internal, unique IMF id
source
<xs:element name="Id" type="xs:int">
  <xs:annotation>
    <xs:documentation>Internal, unique IMF id</xs:documentation>
  </xs:annotation>
</xs:element>

element IMFBaseType/Code
diagram
type MedCodeType
children Id Code Text MedRegister
annotation
documentation 
Code related to a medical register, like ATC, ICD-10.
source
<xs:element name="Code" type="MedCodeType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Code related to a medical register, like ATC, ICD-10.</xs:documentation>
  </xs:annotation>
</xs:element>

element IMFBaseType/Text
diagram
type xs:string
annotation
documentation 
Text typed in by the user if Code is not given.
source
<xs:element name="Text" type="xs:string" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Text typed in by the user if Code is not given.</xs:documentation>
  </xs:annotation>
</xs:element>

element IMFBaseType/Description
diagram
type xs:string
annotation
documentation 
Description of the IMF.
source
<xs:element name="Description" type="xs:string" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Description of the IMF.</xs:documentation>
  </xs:annotation>
</xs:element>

complexType PatientEconomicAddressBaseType
diagram
children County Municipality UrbanNeighbourhood Country
used by
complexType PatientEconomicAddressType
annotation
documentation 
Patient economic address base
source
<xs:complexType name="PatientEconomicAddressBaseType">
  <xs:annotation>
    <xs:documentation>Patient economic address base</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="County" type="CodeNameType" minOccurs="0"/>
    <xs:element name="Municipality" type="CodeNameType" minOccurs="0"/>
    <xs:element name="UrbanNeighbourhood" type="CodeNameType" minOccurs="0"/>
    <xs:element name="Country" type="CodeNameType" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Country is given if the person is a foreigner. County and municipality is not given if country is given. This is used for economic purposes.</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element PatientEconomicAddressBaseType/County
diagram
type CodeNameType
children Code Name
source
<xs:element name="County" type="CodeNameType" minOccurs="0"/>

element PatientEconomicAddressBaseType/Municipality
diagram
type CodeNameType
children Code Name
source
<xs:element name="Municipality" type="CodeNameType" minOccurs="0"/>

element PatientEconomicAddressBaseType/UrbanNeighbourhood
diagram
type CodeNameType
children Code Name
source
<xs:element name="UrbanNeighbourhood" type="CodeNameType" minOccurs="0"/>

element PatientEconomicAddressBaseType/Country
diagram
type CodeNameType
children Code Name
annotation
documentation 
Country is given if the person is a foreigner. County and municipality is not given if country is given. This is used for economic purposes.
source
<xs:element name="Country" type="CodeNameType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Country is given if the person is a foreigner. County and municipality is not given if country is given. This is used for economic purposes.</xs:documentation>
  </xs:annotation>
</xs:element>

complexType PatientEconomicAddressType
diagram
type extension of PatientEconomicAddressBaseType
children County Municipality UrbanNeighbourhood Country HouseProperty District BillingDistrict
annotation
documentation 
Patient economic address
source
<xs:complexType name="PatientEconomicAddressType">
  <xs:annotation>
    <xs:documentation>Patient economic address</xs:documentation>
  </xs:annotation>
  <xs:complexContent>
    <xs:extension base="PatientEconomicAddressBaseType">
      <xs:sequence>
        <xs:element name="HouseProperty" type="xs:string" minOccurs="0">
          <xs:annotation>
            <xs:documentation>For Swedish persons only</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="District" type="xs:string" minOccurs="0">
          <xs:annotation>
            <xs:documentation>For Swedish persons only</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="BillingDistrict" type="xs:string" minOccurs="0">
          <xs:annotation>
            <xs:documentation>For Swedish persons only</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

element PatientEconomicAddressType/HouseProperty
diagram
type xs:string
annotation
documentation 
For Swedish persons only
source
<xs:element name="HouseProperty" type="xs:string" minOccurs="0">
  <xs:annotation>
    <xs:documentation>For Swedish persons only</xs:documentation>
  </xs:annotation>
</xs:element>

element PatientEconomicAddressType/District
diagram
type xs:string
annotation
documentation 
For Swedish persons only
source
<xs:element name="District" type="xs:string" minOccurs="0">
  <xs:annotation>
    <xs:documentation>For Swedish persons only</xs:documentation>
  </xs:annotation>
</xs:element>

element PatientEconomicAddressType/BillingDistrict
diagram
type xs:string
annotation
documentation 
For Swedish persons only
source
<xs:element name="BillingDistrict" type="xs:string" minOccurs="0">
  <xs:annotation>
    <xs:documentation>For Swedish persons only</xs:documentation>
  </xs:annotation>
</xs:element>

complexType PatientIdFormattedType
diagram
children PatientId OfficialId
annotation
documentation 
Patient ID, Official ID formatted
source
<xs:complexType name="PatientIdFormattedType">
  <xs:annotation>
    <xs:documentation>Patient ID, Official ID formatted</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="PatientId" type="xs:int">
      <xs:annotation>
        <xs:documentation>Internal patient id for the HIS</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="OfficialId">
      <xs:annotation>
        <xs:documentation>Official id. Can also be an emergency number.</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:sequence>
          <xs:element name="FormattedId" type="xs:string">
            <xs:annotation>
              <xs:documentation>The official id formatted to be used for viewing the number, ie the Norwegian number 010133 56789.</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element PatientIdFormattedType/PatientId
diagram
type xs:int
annotation
documentation 
Internal patient id for the HIS
source
<xs:element name="PatientId" type="xs:int">
  <xs:annotation>
    <xs:documentation>Internal patient id for the HIS</xs:documentation>
  </xs:annotation>
</xs:element>

element PatientIdFormattedType/OfficialId
diagram
children FormattedId
annotation
documentation 
Official id. Can also be an emergency number.
source
<xs:element name="OfficialId">
  <xs:annotation>
    <xs:documentation>Official id. Can also be an emergency number.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="FormattedId" type="xs:string">
        <xs:annotation>
          <xs:documentation>The official id formatted to be used for viewing the number, ie the Norwegian number 010133 56789.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element PatientIdFormattedType/OfficialId/FormattedId
diagram
type xs:string
annotation
documentation 
The official id formatted to be used for viewing the number, ie the Norwegian number 010133 56789.
source
<xs:element name="FormattedId" type="xs:string">
  <xs:annotation>
    <xs:documentation>The official id formatted to be used for viewing the number, ie the Norwegian number 010133 56789.</xs:documentation>
  </xs:annotation>
</xs:element>

complexType PatientIdType
diagram
type extension of PersonIdType
children OfficialId PatientId
annotation
documentation 
Patient id's
source
<xs:complexType name="PatientIdType">
  <xs:annotation>
    <xs:documentation>Patient id's</xs:documentation>
  </xs:annotation>
  <xs:complexContent>
    <xs:extension base="PersonIdType">
      <xs:sequence>
        <xs:element name="PatientId" type="xs:int">
          <xs:annotation>
            <xs:documentation>Internal patient id for the HIS</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

element PatientIdType/PatientId
diagram
type xs:int
annotation
documentation 
Internal patient id for the HIS
source
<xs:element name="PatientId" type="xs:int">
  <xs:annotation>
    <xs:documentation>Internal patient id for the HIS</xs:documentation>
  </xs:annotation>
</xs:element>

complexType PersonAddressExtType
diagram
type extension of PersonAddressType
children AddressLines PostalAddress Country Municipality
annotation
documentation 
Incl. municipality and country
source
<xs:complexType name="PersonAddressExtType">
  <xs:annotation>
    <xs:documentation>Incl. municipality and country</xs:documentation>
  </xs:annotation>
  <xs:complexContent>
    <xs:extension base="PersonAddressType">
      <xs:sequence>
        <xs:element name="Country" type="xs:string" minOccurs="0"/>
        <xs:element name="Municipality" type="CodeNameType" minOccurs="0"/>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

element PersonAddressExtType/Country
diagram
type xs:string
source
<xs:element name="Country" type="xs:string" minOccurs="0"/>

element PersonAddressExtType/Municipality
diagram
type CodeNameType
children Code Name
source
<xs:element name="Municipality" type="CodeNameType" minOccurs="0"/>

complexType PersonAddressType
diagram
children AddressLines PostalAddress
used by
complexTypes PersonAddressExtType PersonRegisterAddressBaseType
annotation
documentation 
Addresslines, postaladdress
source
<xs:complexType name="PersonAddressType">
  <xs:annotation>
    <xs:documentation>Addresslines, postaladdress</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="AddressLines" minOccurs="0">
      <xs:complexType>
        <xs:sequence>
          <xs:element name="AddressLine" minOccurs="0" maxOccurs="unbounded">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="Type" type="xs:string">
                  <xs:annotation>
                    <xs:documentation>Type of address line, ie 1 and 2 if the HIS has more than one address line. CO for 'care of' address.</xs:documentation>
                  </xs:annotation>
                </xs:element>
                <xs:element name="Text" type="xs:string">
                  <xs:annotation>
                    <xs:documentation>The address</xs:documentation>
                  </xs:annotation>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
          </xs:element>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    <xs:element name="PostalAddress" type="CodeNameType" minOccurs="0"/>
  </xs:sequence>
</xs:complexType>

element PersonAddressType/AddressLines
diagram
children AddressLine
source
<xs:element name="AddressLines" minOccurs="0">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="AddressLine" minOccurs="0" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Type" type="xs:string">
              <xs:annotation>
                <xs:documentation>Type of address line, ie 1 and 2 if the HIS has more than one address line. CO for 'care of' address.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Text" type="xs:string">
              <xs:annotation>
                <xs:documentation>The address</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element PersonAddressType/AddressLines/AddressLine
diagram
children Type Text
source
<xs:element name="AddressLine" minOccurs="0" maxOccurs="unbounded">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Type" type="xs:string">
        <xs:annotation>
          <xs:documentation>Type of address line, ie 1 and 2 if the HIS has more than one address line. CO for 'care of' address.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Text" type="xs:string">
        <xs:annotation>
          <xs:documentation>The address</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element PersonAddressType/AddressLines/AddressLine/Type
diagram
type xs:string
annotation
documentation 
Type of address line, ie 1 and 2 if the HIS has more than one address line. CO for 'care of' address.
source
<xs:element name="Type" type="xs:string">
  <xs:annotation>
    <xs:documentation>Type of address line, ie 1 and 2 if the HIS has more than one address line. CO for 'care of' address.</xs:documentation>
  </xs:annotation>
</xs:element>

element PersonAddressType/AddressLines/AddressLine/Text
diagram
type xs:string
annotation
documentation 
The address
source
<xs:element name="Text" type="xs:string">
  <xs:annotation>
    <xs:documentation>The address</xs:documentation>
  </xs:annotation>
</xs:element>

element PersonAddressType/PostalAddress
diagram
type CodeNameType
children Code Name
source
<xs:element name="PostalAddress" type="CodeNameType" minOccurs="0"/>

complexType PersonalInformationBaseType
diagram
children BirthDate PersonNumber BirthCentury Sex
used by
complexType PersonalInformationExt1Type
annotation
documentation 
Personal information base. Typically used for listing persons.
source
<xs:complexType name="PersonalInformationBaseType">
  <xs:annotation>
    <xs:documentation>Personal information base. Typically used for listing persons.</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="BirthDate" type="xs:date" minOccurs="0"/>
    <xs:element name="PersonNumber" type="xs:int" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Norwegian use only. 5 last numbers of the persons official id</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="BirthCentury" type="xs:int" minOccurs="0"/>
    <xs:element name="Sex" type="CodeOfficialCodeTextType" minOccurs="0">
      <xs:annotation>
        <xs:documentation>M = male, K = female</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element PersonalInformationBaseType/BirthDate
diagram
type xs:date
source
<xs:element name="BirthDate" type="xs:date" minOccurs="0"/>

element PersonalInformationBaseType/PersonNumber
diagram
type xs:int
annotation
documentation 
Norwegian use only. 5 last numbers of the persons official id
source
<xs:element name="PersonNumber" type="xs:int" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Norwegian use only. 5 last numbers of the persons official id</xs:documentation>
  </xs:annotation>
</xs:element>

element PersonalInformationBaseType/BirthCentury
diagram
type xs:int
source
<xs:element name="BirthCentury" type="xs:int" minOccurs="0"/>

element PersonalInformationBaseType/Sex
diagram
type CodeOfficialCodeTextType
children Code OfficialCode Text
annotation
documentation 
M = male, K = female
source
<xs:element name="Sex" type="CodeOfficialCodeTextType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>M = male, K = female</xs:documentation>
  </xs:annotation>
</xs:element>

complexType PersonalInformationExt1Type
diagram
type extension of PersonalInformationBaseType
children BirthDate PersonNumber BirthCentury Sex Dead
used by
complexType PersonalInformationExt2Type
annotation
documentation 
Personal information type. Typically used for listing patients.
source
<xs:complexType name="PersonalInformationExt1Type">
  <xs:annotation>
    <xs:documentation>Personal information type. Typically used for listing patients.</xs:documentation>
  </xs:annotation>
  <xs:complexContent>
    <xs:extension base="PersonalInformationBaseType">
      <xs:sequence>
        <xs:element name="Dead" minOccurs="0">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="DeathDate" type="xs:dateTime"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

element PersonalInformationExt1Type/Dead
diagram
children DeathDate
source
<xs:element name="Dead" minOccurs="0">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="DeathDate" type="xs:dateTime"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element PersonalInformationExt1Type/Dead/DeathDate
diagram
type xs:dateTime
source
<xs:element name="DeathDate" type="xs:dateTime"/>

complexType PersonalInformationExt2Type
diagram
type extension of PersonalInformationExt1Type
children BirthDate PersonNumber BirthCentury Sex Dead Nationality MaritalStatus
used by
complexType PersonalInformationExt3Type
annotation
documentation 
Personal information type. Typically used for getting a person.
source
<xs:complexType name="PersonalInformationExt2Type">
  <xs:annotation>
    <xs:documentation>Personal information type. Typically used for getting a person.</xs:documentation>
  </xs:annotation>
  <xs:complexContent>
    <xs:extension base="PersonalInformationExt1Type">
      <xs:sequence>
        <xs:element name="Nationality" type="CodeTextType" minOccurs="0"/>
        <xs:element name="MaritalStatus" type="CodeTextType" minOccurs="0"/>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

element PersonalInformationExt2Type/Nationality
diagram
type CodeTextType
children Code Text
source
<xs:element name="Nationality" type="CodeTextType" minOccurs="0"/>

element PersonalInformationExt2Type/MaritalStatus
diagram
type CodeTextType
children Code Text
source
<xs:element name="MaritalStatus" type="CodeTextType" minOccurs="0"/>

complexType PersonalInformationExt3Type
diagram
type extension of PersonalInformationExt2Type
children BirthDate PersonNumber BirthCentury Sex Dead Nationality MaritalStatus Occupation ExternalDoctor HealthCareCentre PatientSecurity
annotation
documentation 
Personal information type for patient. Typically used for getting a patient.
source
<xs:complexType name="PersonalInformationExt3Type">
  <xs:annotation>
    <xs:documentation>Personal information type for patient. Typically used for getting a patient.</xs:documentation>
  </xs:annotation>
  <xs:complexContent>
    <xs:extension base="PersonalInformationExt2Type">
      <xs:sequence>
        <xs:element name="Occupation" type="CodeTextType" minOccurs="0"/>
        <xs:element name="ExternalDoctor" type="ExternalOrganizationType" minOccurs="0"/>
        <xs:element name="HealthCareCentre" type="ExternalOrganizationType" minOccurs="0"/>
        <xs:element name="PatientSecurity" type="xs:boolean" minOccurs="0">
          <xs:annotation>
            <xs:documentation>For Swedish persons only</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

element PersonalInformationExt3Type/Occupation
diagram
type CodeTextType
children Code Text
source
<xs:element name="Occupation" type="CodeTextType" minOccurs="0"/>

element PersonalInformationExt3Type/ExternalDoctor
diagram
type ExternalOrganizationType
children Id Code Name
source
<xs:element name="ExternalDoctor" type="ExternalOrganizationType" minOccurs="0"/>

element PersonalInformationExt3Type/HealthCareCentre
diagram
type ExternalOrganizationType
children Id Code Name
source
<xs:element name="HealthCareCentre" type="ExternalOrganizationType" minOccurs="0"/>

element PersonalInformationExt3Type/PatientSecurity
diagram
type xs:boolean
annotation
documentation 
For Swedish persons only
source
<xs:element name="PatientSecurity" type="xs:boolean" minOccurs="0">
  <xs:annotation>
    <xs:documentation>For Swedish persons only</xs:documentation>
  </xs:annotation>
</xs:element>

complexType PersonIdType
diagram
children OfficialId
used by
complexType PatientIdType
annotation
documentation 
Person id
source
<xs:complexType name="PersonIdType">
  <xs:annotation>
    <xs:documentation>Person id</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="OfficialId">
      <xs:annotation>
        <xs:documentation>Official id. Can also be an emergency number.</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:sequence>
          <xs:element name="Value" type="xs:string">
            <xs:annotation>
              <xs:documentation>The value of the official id as it is stored in the database, ie. the Norwegian number 01013356789.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="TypeOfId" type="xs:string">
            <xs:annotation>
              <xs:documentation>F = official id, N = Emergency number, K = catastrophy number</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="FormattedId" type="xs:string">
            <xs:annotation>
              <xs:documentation>The official id formatted to be used for viewing the number, ie the Norwegian number 010133 56789.</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element PersonIdType/OfficialId
diagram
children Value TypeOfId FormattedId
annotation
documentation 
Official id. Can also be an emergency number.
source
<xs:element name="OfficialId">
  <xs:annotation>
    <xs:documentation>Official id. Can also be an emergency number.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Value" type="xs:string">
        <xs:annotation>
          <xs:documentation>The value of the official id as it is stored in the database, ie. the Norwegian number 01013356789.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TypeOfId" type="xs:string">
        <xs:annotation>
          <xs:documentation>F = official id, N = Emergency number, K = catastrophy number</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FormattedId" type="xs:string">
        <xs:annotation>
          <xs:documentation>The official id formatted to be used for viewing the number, ie the Norwegian number 010133 56789.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element PersonIdType/OfficialId/Value
diagram
type xs:string
annotation
documentation 
The value of the official id as it is stored in the database, ie. the Norwegian number 01013356789.
source
<xs:element name="Value" type="xs:string">
  <xs:annotation>
    <xs:documentation>The value of the official id as it is stored in the database, ie. the Norwegian number 01013356789.</xs:documentation>
  </xs:annotation>
</xs:element>

element PersonIdType/OfficialId/TypeOfId
diagram
type xs:string
annotation
documentation 
F = official id, N = Emergency number, K = catastrophy number
source
<xs:element name="TypeOfId" type="xs:string">
  <xs:annotation>
    <xs:documentation>F = official id, N = Emergency number, K = catastrophy number</xs:documentation>
  </xs:annotation>
</xs:element>

element PersonIdType/OfficialId/FormattedId
diagram
type xs:string
annotation
documentation 
The official id formatted to be used for viewing the number, ie the Norwegian number 010133 56789.
source
<xs:element name="FormattedId" type="xs:string">
  <xs:annotation>
    <xs:documentation>The official id formatted to be used for viewing the number, ie the Norwegian number 010133 56789.</xs:documentation>
  </xs:annotation>
</xs:element>

complexType PersonNamesType
diagram
type extension of PersonNameType
children FormattedName LastName MiddleName FirstName GivenName
annotation
documentation 
Person names
source
<xs:complexType name="PersonNamesType">
  <xs:annotation>
    <xs:documentation>Person names</xs:documentation>
  </xs:annotation>
  <xs:complexContent>
    <xs:extension base="PersonNameType">
      <xs:sequence>
        <xs:element name="LastName" type="xs:string" minOccurs="0"/>
        <xs:element name="MiddleName" type="xs:string" minOccurs="0"/>
        <xs:element name="FirstName" type="xs:string" minOccurs="0"/>
        <xs:element name="GivenName" type="xs:string" minOccurs="0"/>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

element PersonNamesType/LastName
diagram
type xs:string
source
<xs:element name="LastName" type="xs:string" minOccurs="0"/>

element PersonNamesType/MiddleName
diagram
type xs:string
source
<xs:element name="MiddleName" type="xs:string" minOccurs="0"/>

element PersonNamesType/FirstName
diagram
type xs:string
source
<xs:element name="FirstName" type="xs:string" minOccurs="0"/>

element PersonNamesType/GivenName
diagram
type xs:string
source
<xs:element name="GivenName" type="xs:string" minOccurs="0"/>

complexType PersonNameType
diagram
children FormattedName
used by
complexType PersonNamesType
annotation
documentation 
Formatted name
source
<xs:complexType name="PersonNameType">
  <xs:annotation>
    <xs:documentation>Formatted name</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="FormattedName" type="xs:string">
      <xs:annotation>
        <xs:documentation>The person's names formatted in one string according to national rules.</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element PersonNameType/FormattedName
diagram
type xs:string
annotation
documentation 
The person's names formatted in one string according to national rules.
source
<xs:element name="FormattedName" type="xs:string">
  <xs:annotation>
    <xs:documentation>The person's names formatted in one string according to national rules.</xs:documentation>
  </xs:annotation>
</xs:element>

complexType PersonRegisterAddressBaseType
diagram
type extension of PersonAddressType
children AddressLines PostalAddress Municipality
used by
complexType PersonRegisterAddressType
annotation
documentation 
Address type for persons. Typicallly used for listing persons from the national register.
source
<xs:complexType name="PersonRegisterAddressBaseType">
  <xs:annotation>
    <xs:documentation>Address type for persons. Typicallly used for listing persons from the national register.</xs:documentation>
  </xs:annotation>
  <xs:complexContent>
    <xs:extension base="PersonAddressType">
      <xs:sequence>
        <xs:element name="Municipality" type="CodeNameType" minOccurs="0"/>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

element PersonRegisterAddressBaseType/Municipality
diagram
type CodeNameType
children Code Name
source
<xs:element name="Municipality" type="CodeNameType" minOccurs="0"/>

complexType PersonRegisterAddressType
diagram
type extension of PersonRegisterAddressBaseType
children AddressLines PostalAddress Municipality County UrbanNeighbourhood HouseProperty District BillingDistrict
annotation
documentation 
Address type for persons. Typicallly used for getting a person from the national register.
source
<xs:complexType name="PersonRegisterAddressType">
  <xs:annotation>
    <xs:documentation>Address type for persons. Typicallly used for getting a person from the national register.</xs:documentation>
  </xs:annotation>
  <xs:complexContent>
    <xs:extension base="PersonRegisterAddressBaseType">
      <xs:sequence>
        <xs:element name="County" type="CodeNameType" minOccurs="0"/>
        <xs:element name="UrbanNeighbourhood" type="CodeNameType" minOccurs="0"/>
        <xs:element name="HouseProperty" type="xs:string" minOccurs="0">
          <xs:annotation>
            <xs:documentation>For Swedish persons only</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="District" type="xs:string" minOccurs="0">
          <xs:annotation>
            <xs:documentation>For Swedish persons only</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="BillingDistrict" type="xs:string" minOccurs="0">
          <xs:annotation>
            <xs:documentation>For Swedish persons only</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

element PersonRegisterAddressType/County
diagram
type CodeNameType
children Code Name
source
<xs:element name="County" type="CodeNameType" minOccurs="0"/>

element PersonRegisterAddressType/UrbanNeighbourhood
diagram
type CodeNameType
children Code Name
source
<xs:element name="UrbanNeighbourhood" type="CodeNameType" minOccurs="0"/>

element PersonRegisterAddressType/HouseProperty
diagram
type xs:string
annotation
documentation 
For Swedish persons only
source
<xs:element name="HouseProperty" type="xs:string" minOccurs="0">
  <xs:annotation>
    <xs:documentation>For Swedish persons only</xs:documentation>
  </xs:annotation>
</xs:element>

element PersonRegisterAddressType/District
diagram
type xs:string
annotation
documentation 
For Swedish persons only
source
<xs:element name="District" type="xs:string" minOccurs="0">
  <xs:annotation>
    <xs:documentation>For Swedish persons only</xs:documentation>
  </xs:annotation>
</xs:element>

element PersonRegisterAddressType/BillingDistrict
diagram
type xs:string
annotation
documentation 
For Swedish persons only
source
<xs:element name="BillingDistrict" type="xs:string" minOccurs="0">
  <xs:annotation>
    <xs:documentation>For Swedish persons only</xs:documentation>
  </xs:annotation>
</xs:element>

complexType PersonTelecomType
diagram
children HomePhoneNumber OfficePhoneNumber MobilePhoneNumber FaxNumber EMailAddress
annotation
documentation 
Telecom addresses
source
<xs:complexType name="PersonTelecomType">
  <xs:annotation>
    <xs:documentation>Telecom addresses</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="HomePhoneNumber" type="xs:string" minOccurs="0"/>
    <xs:element name="OfficePhoneNumber" minOccurs="0">
      <xs:complexType>
        <xs:sequence>
          <xs:element name="Value" type="xs:string"/>
          <xs:element name="Extension" type="xs:string" minOccurs="0"/>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    <xs:element name="MobilePhoneNumber" type="xs:string" minOccurs="0"/>
    <xs:element name="FaxNumber" type="xs:string" minOccurs="0"/>
    <xs:element name="EMailAddress" type="xs:string" minOccurs="0"/>
  </xs:sequence>
</xs:complexType>

element PersonTelecomType/HomePhoneNumber
diagram
type xs:string
source
<xs:element name="HomePhoneNumber" type="xs:string" minOccurs="0"/>

element PersonTelecomType/OfficePhoneNumber
diagram
children Value Extension
source
<xs:element name="OfficePhoneNumber" minOccurs="0">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Value" type="xs:string"/>
      <xs:element name="Extension" type="xs:string" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element PersonTelecomType/OfficePhoneNumber/Value
diagram
type xs:string
source
<xs:element name="Value" type="xs:string"/>

element PersonTelecomType/OfficePhoneNumber/Extension
diagram
type xs:string
source
<xs:element name="Extension" type="xs:string" minOccurs="0"/>

element PersonTelecomType/MobilePhoneNumber
diagram
type xs:string
source
<xs:element name="MobilePhoneNumber" type="xs:string" minOccurs="0"/>

element PersonTelecomType/FaxNumber
diagram
type xs:string
source
<xs:element name="FaxNumber" type="xs:string" minOccurs="0"/>

element PersonTelecomType/EMailAddress
diagram
type xs:string
source
<xs:element name="EMailAddress" type="xs:string" minOccurs="0"/>

complexType AdmMedRemarkType
diagram
children Medical Administrative
annotation
documentation 
Medical and Administrative remarks
source
<xs:complexType name="AdmMedRemarkType">
  <xs:annotation>
    <xs:documentation>Medical and Administrative remarks</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Medical" type="RemarkType" minOccurs="0"/>
    <xs:element name="Administrative" type="RemarkType" minOccurs="0"/>
  </xs:sequence>
</xs:complexType>

element AdmMedRemarkType/Medical
diagram
type RemarkType
children Remark Signature SignatureDateTime
source
<xs:element name="Medical" type="RemarkType" minOccurs="0"/>

element AdmMedRemarkType/Administrative
diagram
type RemarkType
children Remark Signature SignatureDateTime
source
<xs:element name="Administrative" type="RemarkType" minOccurs="0"/>

complexType ContactDetailCareType
diagram
type extension of ContactDetailType
children Id Status From To Organization ContactActivityId CareResponsible CareGroup Placement PatientCategory
used by
elements ContactTypeLatest/Details/LatestDetails/CareDetail ContactTypeDetails/Details/CareDetails/CareDetail
annotation
documentation 
ContactDetailType + care specific data
source
<xs:complexType name="ContactDetailCareType">
  <xs:annotation>
    <xs:documentation>ContactDetailType + care specific data</xs:documentation>
  </xs:annotation>
  <xs:complexContent>
    <xs:extension base="ContactDetailType">
      <xs:sequence>
        <xs:element name="CareResponsible" type="ResourceType" minOccurs="0">
          <xs:annotation>
            <xs:documentation>Resource responsible for the care</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="CareGroup" type="ResourceType" minOccurs="0">
          <xs:annotation>
            <xs:documentation>Resource group involved in the care</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="Placement" minOccurs="0">
          <xs:annotation>
            <xs:documentation>Where the care takes place, i.e. Roomnumber, bednumber</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Permanent" type="IdCodeNameType" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Permanent placement at the care unit</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="Temporary" type="IdCodeNameType" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Temporary placement. May be used to show that the patient has an activity on another unit.</xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="PatientCategory" type="CodeOfficialCodeTextType" minOccurs="0">
          <xs:annotation>
            <xs:documentation>For inpatients only. Indicates i.e. whether the stay is a 24-hours stay or a stay at daytime only.</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

element ContactDetailCareType/CareResponsible
diagram
type ResourceType
children Id Code Name
annotation
documentation 
Resource responsible for the care
source
<xs:element name="CareResponsible" type="ResourceType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Resource responsible for the care</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactDetailCareType/CareGroup
diagram
type ResourceType
children Id Code Name
annotation
documentation 
Resource group involved in the care
source
<xs:element name="CareGroup" type="ResourceType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Resource group involved in the care</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactDetailCareType/Placement
diagram
children Permanent Temporary
annotation
documentation 
Where the care takes place, i.e. Roomnumber, bednumber
source
<xs:element name="Placement" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Where the care takes place, i.e. Roomnumber, bednumber</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Permanent" type="IdCodeNameType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Permanent placement at the care unit</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Temporary" type="IdCodeNameType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Temporary placement. May be used to show that the patient has an activity on another unit.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ContactDetailCareType/Placement/Permanent
diagram
type IdCodeNameType
children Id Code Name
annotation
documentation 
Permanent placement at the care unit
source
<xs:element name="Permanent" type="IdCodeNameType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Permanent placement at the care unit</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactDetailCareType/Placement/Temporary
diagram
type IdCodeNameType
children Id Code Name
annotation
documentation 
Temporary placement. May be used to show that the patient has an activity on another unit.
source
<xs:element name="Temporary" type="IdCodeNameType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Temporary placement. May be used to show that the patient has an activity on another unit.</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactDetailCareType/PatientCategory
diagram
type CodeOfficialCodeTextType
children Code OfficialCode Text
annotation
documentation 
For inpatients only. Indicates i.e. whether the stay is a 24-hours stay or a stay at daytime only.
source
<xs:element name="PatientCategory" type="CodeOfficialCodeTextType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>For inpatients only. Indicates i.e. whether the stay is a 24-hours stay or a stay at daytime only.</xs:documentation>
  </xs:annotation>
</xs:element>

complexType ContactDetailMedType
diagram
type extension of ContactDetailType
children Id Status From To Organization ContactActivityId PatientResponsible ContactResponsible
used by
elements ContactTypeLatest/Details/LatestDetails/MedicalDetail ContactTypeDetails/Details/MedicalDetails/MedicalDetail
annotation
documentation 
ContactDetailType + med. specific data
source
<xs:complexType name="ContactDetailMedType">
  <xs:annotation>
    <xs:documentation>ContactDetailType + med. specific data</xs:documentation>
  </xs:annotation>
  <xs:complexContent>
    <xs:extension base="ContactDetailType">
      <xs:sequence>
        <xs:element name="PatientResponsible" type="ResourceType" minOccurs="0">
          <xs:annotation>
            <xs:documentation>The resource (i.e. the chief physician) responsible for the patient.</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="ContactResponsible" type="ResourceType" minOccurs="0">
          <xs:annotation>
            <xs:documentation>The resource responsible for the contact. For outpatients the economy can be influenced whether this resource is a physician or not.</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

element ContactDetailMedType/PatientResponsible
diagram
type ResourceType
children Id Code Name
annotation
documentation 
The resource (i.e. the chief physician) responsible for the patient.
source
<xs:element name="PatientResponsible" type="ResourceType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>The resource (i.e. the chief physician) responsible for the patient.</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactDetailMedType/ContactResponsible
diagram
type ResourceType
children Id Code Name
annotation
documentation 
The resource responsible for the contact. For outpatients the economy can be influenced whether this resource is a physician or not.
source
<xs:element name="ContactResponsible" type="ResourceType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>The resource responsible for the contact. For outpatients the economy can be influenced whether this resource is a physician or not.</xs:documentation>
  </xs:annotation>
</xs:element>

complexType ContactDetailType
diagram
children Id Status From To Organization ContactActivityId
used by
complexTypes ContactDetailCareType ContactDetailMedType
annotation
documentation 
Id, status, organization
source
<xs:complexType name="ContactDetailType">
  <xs:annotation>
    <xs:documentation>Id, status, organization</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Id" type="xs:int">
      <xs:annotation>
        <xs:documentation>Internal Id</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="Status" type="CodeTextType">
      <xs:annotation>
        <xs:documentation>AK = in progress, UT = finished</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="From" type="xs:dateTime">
      <xs:annotation>
        <xs:documentation>Started date/time </xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="To" type="xs:dateTime" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Ended date/time </xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="Organization" type="OrganizationType"/>
    <xs:element name="ContactActivityId" type="xs:int"/>
  </xs:sequence>
</xs:complexType>

element ContactDetailType/Id
diagram
type xs:int
annotation
documentation 
Internal Id
source
<xs:element name="Id" type="xs:int">
  <xs:annotation>
    <xs:documentation>Internal Id</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactDetailType/Status
diagram
type CodeTextType
children Code Text
annotation
documentation 
AK = in progress, UT = finished
source
<xs:element name="Status" type="CodeTextType">
  <xs:annotation>
    <xs:documentation>AK = in progress, UT = finished</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactDetailType/From
diagram
type xs:dateTime
annotation
documentation 
Started date/time 
source
<xs:element name="From" type="xs:dateTime">
  <xs:annotation>
    <xs:documentation>Started date/time </xs:documentation>
  </xs:annotation>
</xs:element>

element ContactDetailType/To
diagram
type xs:dateTime
annotation
documentation 
Ended date/time 
source
<xs:element name="To" type="xs:dateTime" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Ended date/time </xs:documentation>
  </xs:annotation>
</xs:element>

element ContactDetailType/Organization
diagram
type OrganizationType
children Id ShortNameId Name
source
<xs:element name="Organization" type="OrganizationType"/>

element ContactDetailType/ContactActivityId
diagram
type xs:int
source
<xs:element name="ContactActivityId" type="xs:int"/>

complexType ContactType
diagram
children Id From To MedicalOrganization TypeOfCare Status Emergency RequestFrom TypeOfContact Admitted Transportation VisitType PlaceOfTreatment Discharged InDiagnosis Confidential Accident
used by
complexTypes ContactTypeDetails ContactTypeLatest
annotation
documentation 
INFOMEDIX Contact
source
<xs:complexType name="ContactType">
  <xs:annotation>
    <xs:documentation>INFOMEDIX Contact</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Id" type="xs:int">
      <xs:annotation>
        <xs:documentation>Internal Id</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="From" type="xs:dateTime">
      <xs:annotation>
        <xs:documentation>Contact start datetime</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="To" type="xs:dateTime" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Contact end datetime</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="MedicalOrganization" type="OrganizationType">
      <xs:annotation>
        <xs:documentation>Departement</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="TypeOfCare" type="CodeOfficialCodeTextType">
      <xs:annotation>
        <xs:documentation>P= outpatient, I=inpatient, D= in hospital only at daytime</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="Status" type="CodeTextType">
      <xs:annotation>
        <xs:documentation>Contact status. AK = in progress, UT = finished</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="Emergency" type="xs:boolean">
      <xs:annotation>
        <xs:documentation>True if this is an emergency contact</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="RequestFrom" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Shows who requested the contact</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:choice>
          <xs:element name="External" minOccurs="0">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="ExternalOrganization" type="ExternalOrganizationType" minOccurs="0">
                  <xs:annotation>
                    <xs:documentation>If the contact was requested by an external organization</xs:documentation>
                  </xs:annotation>
                </xs:element>
                <xs:element name="ExternalPhysician" type="xs:string" minOccurs="0">
                  <xs:annotation>
                    <xs:documentation>The external physician who made the request. Text only.</xs:documentation>
                  </xs:annotation>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
          </xs:element>
          <xs:element name="Internal" minOccurs="0">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="InternalOrganization" type="OrganizationType" minOccurs="0">
                  <xs:annotation>
                    <xs:documentation>If the contact was requested by an internal organization</xs:documentation>
                  </xs:annotation>
                </xs:element>
                <xs:element name="InternalPhysician" type="ResourceType" minOccurs="0">
                  <xs:annotation>
                    <xs:documentation>The internal physician who made the request.</xs:documentation>
                  </xs:annotation>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
          </xs:element>
        </xs:choice>
      </xs:complexType>
    </xs:element>
    <xs:element name="TypeOfContact" type="CodeOfficialCodeTextType" minOccurs="0">
      <xs:annotation>
        <xs:documentation>i.e. Surgery, Consultation etc.</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="Admitted">
      <xs:annotation>
        <xs:documentation>Data about the admission</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:sequence>
          <xs:element name="Type" type="CodeOfficialCodeTextType">
            <xs:annotation>
              <xs:documentation>Type of admission, i.e. Planned, Emergency, Born in hospital etc.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="From" type="CodeOfficialCodeTextType" minOccurs="0">
            <xs:annotation>
              <xs:documentation>Admitted from, i.e. Home, Other institution etc. </xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:choice minOccurs="0">
            <xs:element name="FromExternalOrganization" type="ExternalOrganizationType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>If patient was admitted from an external organization </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="FromInternalOrganization" type="OrganizationType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>If patient was transferred from another organization in the hospital</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:choice>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    <xs:element name="Transportation" type="CodeTextType" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Transportation used for admission, i.e. Ambulance</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="VisitType" type="CodeOfficialCodeTextType" minOccurs="0">
      <xs:annotation>
        <xs:documentation>For outpatients only. i.e. New visit, Control visit etc.</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="PlaceOfTreatment" type="CodeOfficialCodeTextType" minOccurs="0">
      <xs:annotation>
        <xs:documentation>For outpatients only, i.e. Home, Telephone etc.</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="Discharged" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Data about the discharge</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:sequence>
          <xs:element name="To" type="CodeOfficialCodeTextType" minOccurs="0">
            <xs:annotation>
              <xs:documentation>Where the patient was discharged, i.e. Home, Other organization etc.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="Physician" type="ResourceType" minOccurs="0">
            <xs:annotation>
              <xs:documentation>The physician for the internal organization</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:choice minOccurs="0">
            <xs:element name="ToExternalOrganization" type="ExternalOrganizationType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>If the patient was discaharged to an external organization</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="ToInternalOrganization" type="OrganizationType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>If the patient was discaharged to an internall organization</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:choice>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    <xs:element name="InDiagnosis" type="DiagnosisType" minOccurs="0">
      <xs:annotation>
        <xs:documentation>In diagnosis using code from medical register, i.e. ICD10</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="Confidential" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Confidential contact</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:complexContent>
          <xs:extension base="CodeTextType">
            <xs:sequence>
              <xs:element name="Comment" type="xs:string">
                <xs:annotation>
                  <xs:documentation>Comment on the confidentiality</xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:sequence>
          </xs:extension>
        </xs:complexContent>
      </xs:complexType>
    </xs:element>
    <xs:element name="Accident" minOccurs="0">
      <xs:annotation>
        <xs:documentation>The patient was admitted because of an accident</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:sequence>
          <xs:element name="Municipality" type="CodeNameType" minOccurs="0">
            <xs:annotation>
              <xs:documentation>Municipality in which the accident happened</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="Accident" type="xs:boolean" use="optional" default="true"/>
      </xs:complexType>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element ContactType/Id
diagram
type xs:int
annotation
documentation 
Internal Id
source
<xs:element name="Id" type="xs:int">
  <xs:annotation>
    <xs:documentation>Internal Id</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/From
diagram
type xs:dateTime
annotation
documentation 
Contact start datetime
source
<xs:element name="From" type="xs:dateTime">
  <xs:annotation>
    <xs:documentation>Contact start datetime</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/To
diagram
type xs:dateTime
annotation
documentation 
Contact end datetime
source
<xs:element name="To" type="xs:dateTime" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Contact end datetime</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/MedicalOrganization
diagram
type OrganizationType
children Id ShortNameId Name
annotation
documentation 
Departement
source
<xs:element name="MedicalOrganization" type="OrganizationType">
  <xs:annotation>
    <xs:documentation>Departement</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/TypeOfCare
diagram
type CodeOfficialCodeTextType
children Code OfficialCode Text
annotation
documentation 
P= outpatient, I=inpatient, D= in hospital only at daytime
source
<xs:element name="TypeOfCare" type="CodeOfficialCodeTextType">
  <xs:annotation>
    <xs:documentation>P= outpatient, I=inpatient, D= in hospital only at daytime</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/Status
diagram
type CodeTextType
children Code Text
annotation
documentation 
Contact status. AK = in progress, UT = finished
source
<xs:element name="Status" type="CodeTextType">
  <xs:annotation>
    <xs:documentation>Contact status. AK = in progress, UT = finished</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/Emergency
diagram
type xs:boolean
annotation
documentation 
True if this is an emergency contact
source
<xs:element name="Emergency" type="xs:boolean">
  <xs:annotation>
    <xs:documentation>True if this is an emergency contact</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/RequestFrom
diagram
children External Internal
annotation
documentation 
Shows who requested the contact
source
<xs:element name="RequestFrom" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Shows who requested the contact</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:choice>
      <xs:element name="External" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ExternalOrganization" type="ExternalOrganizationType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>If the contact was requested by an external organization</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="ExternalPhysician" type="xs:string" minOccurs="0">
              <xs:annotation>
                <xs:documentation>The external physician who made the request. Text only.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Internal" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="InternalOrganization" type="OrganizationType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>If the contact was requested by an internal organization</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="InternalPhysician" type="ResourceType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>The internal physician who made the request.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:choice>
  </xs:complexType>
</xs:element>

element ContactType/RequestFrom/External
diagram
children ExternalOrganization ExternalPhysician
source
<xs:element name="External" minOccurs="0">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="ExternalOrganization" type="ExternalOrganizationType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>If the contact was requested by an external organization</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ExternalPhysician" type="xs:string" minOccurs="0">
        <xs:annotation>
          <xs:documentation>The external physician who made the request. Text only.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ContactType/RequestFrom/External/ExternalOrganization
diagram
type ExternalOrganizationType
children Id Code Name
annotation
documentation 
If the contact was requested by an external organization
source
<xs:element name="ExternalOrganization" type="ExternalOrganizationType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>If the contact was requested by an external organization</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/RequestFrom/External/ExternalPhysician
diagram
type xs:string
annotation
documentation 
The external physician who made the request. Text only.
source
<xs:element name="ExternalPhysician" type="xs:string" minOccurs="0">
  <xs:annotation>
    <xs:documentation>The external physician who made the request. Text only.</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/RequestFrom/Internal
diagram
children InternalOrganization InternalPhysician
source
<xs:element name="Internal" minOccurs="0">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="InternalOrganization" type="OrganizationType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>If the contact was requested by an internal organization</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="InternalPhysician" type="ResourceType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>The internal physician who made the request.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ContactType/RequestFrom/Internal/InternalOrganization
diagram
type OrganizationType
children Id ShortNameId Name
annotation
documentation 
If the contact was requested by an internal organization
source
<xs:element name="InternalOrganization" type="OrganizationType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>If the contact was requested by an internal organization</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/RequestFrom/Internal/InternalPhysician
diagram
type ResourceType
children Id Code Name
annotation
documentation 
The internal physician who made the request.
source
<xs:element name="InternalPhysician" type="ResourceType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>The internal physician who made the request.</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/TypeOfContact
diagram
type CodeOfficialCodeTextType
children Code OfficialCode Text
annotation
documentation 
i.e. Surgery, Consultation etc.
source
<xs:element name="TypeOfContact" type="CodeOfficialCodeTextType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>i.e. Surgery, Consultation etc.</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/Admitted
diagram
children Type From FromExternalOrganization FromInternalOrganization
annotation
documentation 
Data about the admission
source
<xs:element name="Admitted">
  <xs:annotation>
    <xs:documentation>Data about the admission</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Type" type="CodeOfficialCodeTextType">
        <xs:annotation>
          <xs:documentation>Type of admission, i.e. Planned, Emergency, Born in hospital etc.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="From" type="CodeOfficialCodeTextType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Admitted from, i.e. Home, Other institution etc. </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:choice minOccurs="0">
        <xs:element name="FromExternalOrganization" type="ExternalOrganizationType" minOccurs="0">
          <xs:annotation>
            <xs:documentation>If patient was admitted from an external organization </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="FromInternalOrganization" type="OrganizationType" minOccurs="0">
          <xs:annotation>
            <xs:documentation>If patient was transferred from another organization in the hospital</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ContactType/Admitted/Type
diagram
type CodeOfficialCodeTextType
children Code OfficialCode Text
annotation
documentation 
Type of admission, i.e. Planned, Emergency, Born in hospital etc.
source
<xs:element name="Type" type="CodeOfficialCodeTextType">
  <xs:annotation>
    <xs:documentation>Type of admission, i.e. Planned, Emergency, Born in hospital etc.</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/Admitted/From
diagram
type CodeOfficialCodeTextType
children Code OfficialCode Text
annotation
documentation 
Admitted from, i.e. Home, Other institution etc. 
source
<xs:element name="From" type="CodeOfficialCodeTextType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Admitted from, i.e. Home, Other institution etc. </xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/Admitted/FromExternalOrganization
diagram
type ExternalOrganizationType
children Id Code Name
annotation
documentation 
If patient was admitted from an external organization 
source
<xs:element name="FromExternalOrganization" type="ExternalOrganizationType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>If patient was admitted from an external organization </xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/Admitted/FromInternalOrganization
diagram
type OrganizationType
children Id ShortNameId Name
annotation
documentation 
If patient was transferred from another organization in the hospital
source
<xs:element name="FromInternalOrganization" type="OrganizationType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>If patient was transferred from another organization in the hospital</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/Transportation
diagram
type CodeTextType
children Code Text
annotation
documentation 
Transportation used for admission, i.e. Ambulance
source
<xs:element name="Transportation" type="CodeTextType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Transportation used for admission, i.e. Ambulance</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/VisitType
diagram
type CodeOfficialCodeTextType
children Code OfficialCode Text
annotation
documentation 
For outpatients only. i.e. New visit, Control visit etc.
source
<xs:element name="VisitType" type="CodeOfficialCodeTextType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>For outpatients only. i.e. New visit, Control visit etc.</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/PlaceOfTreatment
diagram
type CodeOfficialCodeTextType
children Code OfficialCode Text
annotation
documentation 
For outpatients only, i.e. Home, Telephone etc.
source
<xs:element name="PlaceOfTreatment" type="CodeOfficialCodeTextType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>For outpatients only, i.e. Home, Telephone etc.</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/Discharged
diagram
children To Physician ToExternalOrganization ToInternalOrganization
annotation
documentation 
Data about the discharge
source
<xs:element name="Discharged" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Data about the discharge</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="To" type="CodeOfficialCodeTextType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Where the patient was discharged, i.e. Home, Other organization etc.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Physician" type="ResourceType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>The physician for the internal organization</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:choice minOccurs="0">
        <xs:element name="ToExternalOrganization" type="ExternalOrganizationType" minOccurs="0">
          <xs:annotation>
            <xs:documentation>If the patient was discaharged to an external organization</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="ToInternalOrganization" type="OrganizationType" minOccurs="0">
          <xs:annotation>
            <xs:documentation>If the patient was discaharged to an internall organization</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ContactType/Discharged/To
diagram
type CodeOfficialCodeTextType
children Code OfficialCode Text
annotation
documentation 
Where the patient was discharged, i.e. Home, Other organization etc.
source
<xs:element name="To" type="CodeOfficialCodeTextType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Where the patient was discharged, i.e. Home, Other organization etc.</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/Discharged/Physician
diagram
type ResourceType
children Id Code Name
annotation
documentation 
The physician for the internal organization
source
<xs:element name="Physician" type="ResourceType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>The physician for the internal organization</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/Discharged/ToExternalOrganization
diagram
type ExternalOrganizationType
children Id Code Name
annotation
documentation 
If the patient was discaharged to an external organization
source
<xs:element name="ToExternalOrganization" type="ExternalOrganizationType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>If the patient was discaharged to an external organization</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/Discharged/ToInternalOrganization
diagram
type OrganizationType
children Id ShortNameId Name
annotation
documentation 
If the patient was discaharged to an internall organization
source
<xs:element name="ToInternalOrganization" type="OrganizationType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>If the patient was discaharged to an internall organization</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/InDiagnosis
diagram
type DiagnosisType
children Id MedCode
annotation
documentation 
In diagnosis using code from medical register, i.e. ICD10
source
<xs:element name="InDiagnosis" type="DiagnosisType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>In diagnosis using code from medical register, i.e. ICD10</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/Confidential
diagram
type extension of CodeTextType
children Code Text Comment
annotation
documentation 
Confidential contact
source
<xs:element name="Confidential" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Confidential contact</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:complexContent>
      <xs:extension base="CodeTextType">
        <xs:sequence>
          <xs:element name="Comment" type="xs:string">
            <xs:annotation>
              <xs:documentation>Comment on the confidentiality</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
</xs:element>

element ContactType/Confidential/Comment
diagram
type xs:string
annotation
documentation 
Comment on the confidentiality
source
<xs:element name="Comment" type="xs:string">
  <xs:annotation>
    <xs:documentation>Comment on the confidentiality</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactType/Accident
diagram
children Municipality
attributes
Name  Type  Use  Default  Fixed  Annotation
Accident  xs:boolean  optional  true    
annotation
documentation 
The patient was admitted because of an accident
source
<xs:element name="Accident" minOccurs="0">
  <xs:annotation>
    <xs:documentation>The patient was admitted because of an accident</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Municipality" type="CodeNameType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Municipality in which the accident happened</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="Accident" type="xs:boolean" use="optional" default="true"/>
  </xs:complexType>
</xs:element>

element ContactType/Accident/Municipality
diagram
type CodeNameType
children Code Name
annotation
documentation 
Municipality in which the accident happened
source
<xs:element name="Municipality" type="CodeNameType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Municipality in which the accident happened</xs:documentation>
  </xs:annotation>
</xs:element>

complexType ContactTypeDetails
diagram
type extension of ContactType
children Id From To MedicalOrganization TypeOfCare Status Emergency RequestFrom TypeOfContact Admitted Transportation VisitType PlaceOfTreatment Discharged InDiagnosis Confidential Accident Details
annotation
documentation 
Contact with all org. details
source
<xs:complexType name="ContactTypeDetails">
  <xs:annotation>
    <xs:documentation>Contact with all org. details</xs:documentation>
  </xs:annotation>
  <xs:complexContent>
    <xs:extension base="ContactType">
      <xs:sequence>
        <xs:element name="Details">
          <xs:annotation>
            <xs:documentation>Details attached to the medical organization and the care unit. Details change if the patient is transferred between organizations during the admission.</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="MedicalDetails">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="MedicalDetail" type="ContactDetailMedType" maxOccurs="unbounded">
                      <xs:annotation>
                        <xs:documentation>Details attached to the medical organziation</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="CareDetails">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="CareDetail" type="ContactDetailCareType" maxOccurs="unbounded">
                      <xs:annotation>
                        <xs:documentation>Details attached to the care unit.</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

element ContactTypeDetails/Details
diagram
children MedicalDetails CareDetails
annotation
documentation 
Details attached to the medical organization and the care unit. Details change if the patient is transferred between organizations during the admission.
source
<xs:element name="Details">
  <xs:annotation>
    <xs:documentation>Details attached to the medical organization and the care unit. Details change if the patient is transferred between organizations during the admission.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="MedicalDetails">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="MedicalDetail" type="ContactDetailMedType" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>Details attached to the medical organziation</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="CareDetails">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="CareDetail" type="ContactDetailCareType" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>Details attached to the care unit.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ContactTypeDetails/Details/MedicalDetails
diagram
children MedicalDetail
source
<xs:element name="MedicalDetails">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="MedicalDetail" type="ContactDetailMedType" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Details attached to the medical organziation</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ContactTypeDetails/Details/MedicalDetails/MedicalDetail
diagram
type ContactDetailMedType
children Id Status From To Organization ContactActivityId PatientResponsible ContactResponsible
annotation
documentation 
Details attached to the medical organziation
source
<xs:element name="MedicalDetail" type="ContactDetailMedType" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Details attached to the medical organziation</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactTypeDetails/Details/CareDetails
diagram
children CareDetail
source
<xs:element name="CareDetails">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="CareDetail" type="ContactDetailCareType" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Details attached to the care unit.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ContactTypeDetails/Details/CareDetails/CareDetail
diagram
type ContactDetailCareType
children Id Status From To Organization ContactActivityId CareResponsible CareGroup Placement PatientCategory
annotation
documentation 
Details attached to the care unit.
source
<xs:element name="CareDetail" type="ContactDetailCareType" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Details attached to the care unit.</xs:documentation>
  </xs:annotation>
</xs:element>

complexType ContactTypeLatest
diagram
type extension of ContactType
children Id From To MedicalOrganization TypeOfCare Status Emergency RequestFrom TypeOfContact Admitted Transportation VisitType PlaceOfTreatment Discharged InDiagnosis Confidential Accident Details
annotation
documentation 
Contact with latest org. details
source
<xs:complexType name="ContactTypeLatest">
  <xs:annotation>
    <xs:documentation>Contact with latest org. details</xs:documentation>
  </xs:annotation>
  <xs:complexContent>
    <xs:extension base="ContactType">
      <xs:sequence>
        <xs:element name="Details">
          <xs:annotation>
            <xs:documentation>Details attached to the medical organization and the care unit</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="LatestDetails">
                <xs:annotation>
                  <xs:documentation>The current details if the patient is in hospital or the details at the time of discharge if the patient is discharged.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="MedicalDetail" type="ContactDetailMedType">
                      <xs:annotation>
                        <xs:documentation>Details attached to the medical organziation</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="CareDetail" type="ContactDetailCareType">
                      <xs:annotation>
                        <xs:documentation>Details attached to the care unit.</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

element ContactTypeLatest/Details
diagram
children LatestDetails
annotation
documentation 
Details attached to the medical organization and the care unit
source
<xs:element name="Details">
  <xs:annotation>
    <xs:documentation>Details attached to the medical organization and the care unit</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="LatestDetails">
        <xs:annotation>
          <xs:documentation>The current details if the patient is in hospital or the details at the time of discharge if the patient is discharged.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="MedicalDetail" type="ContactDetailMedType">
              <xs:annotation>
                <xs:documentation>Details attached to the medical organziation</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="CareDetail" type="ContactDetailCareType">
              <xs:annotation>
                <xs:documentation>Details attached to the care unit.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ContactTypeLatest/Details/LatestDetails
diagram
children MedicalDetail CareDetail
annotation
documentation 
The current details if the patient is in hospital or the details at the time of discharge if the patient is discharged.
source
<xs:element name="LatestDetails">
  <xs:annotation>
    <xs:documentation>The current details if the patient is in hospital or the details at the time of discharge if the patient is discharged.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="MedicalDetail" type="ContactDetailMedType">
        <xs:annotation>
          <xs:documentation>Details attached to the medical organziation</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CareDetail" type="ContactDetailCareType">
        <xs:annotation>
          <xs:documentation>Details attached to the care unit.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ContactTypeLatest/Details/LatestDetails/MedicalDetail
diagram
type ContactDetailMedType
children Id Status From To Organization ContactActivityId PatientResponsible ContactResponsible
annotation
documentation 
Details attached to the medical organziation
source
<xs:element name="MedicalDetail" type="ContactDetailMedType">
  <xs:annotation>
    <xs:documentation>Details attached to the medical organziation</xs:documentation>
  </xs:annotation>
</xs:element>

element ContactTypeLatest/Details/LatestDetails/CareDetail
diagram
type ContactDetailCareType
children Id Status From To Organization ContactActivityId CareResponsible CareGroup Placement PatientCategory
annotation
documentation 
Details attached to the care unit.
source
<xs:element name="CareDetail" type="ContactDetailCareType">
  <xs:annotation>
    <xs:documentation>Details attached to the care unit.</xs:documentation>
  </xs:annotation>
</xs:element>

complexType DiagnosisType
diagram
children Id MedCode
used by
element ContactType/InDiagnosis
annotation
documentation 
Diagnosis incl. medcode and medregister
source
<xs:complexType name="DiagnosisType">
  <xs:annotation>
    <xs:documentation>Diagnosis incl. medcode and medregister</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Id" type="xs:int">
      <xs:annotation>
        <xs:documentation>Internal Id</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="MedCode">
      <xs:annotation>
        <xs:documentation>Medical code from a medical register, i.e. ICD10</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:complexContent>
          <xs:extension base="IdCodeTextType">
            <xs:sequence>
              <xs:element name="MedRegister" type="IdCodeOfficialCodeTextType">
                <xs:annotation>
                  <xs:documentation>Medical register, i.e. ICD10</xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:sequence>
          </xs:extension>
        </xs:complexContent>
      </xs:complexType>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element DiagnosisType/Id
diagram
type xs:int
annotation
documentation 
Internal Id
source
<xs:element name="Id" type="xs:int">
  <xs:annotation>
    <xs:documentation>Internal Id</xs:documentation>
  </xs:annotation>
</xs:element>

element DiagnosisType/MedCode
diagram
type extension of IdCodeTextType
children Id Code Text MedRegister
annotation
documentation 
Medical code from a medical register, i.e. ICD10
source
<xs:element name="MedCode">
  <xs:annotation>
    <xs:documentation>Medical code from a medical register, i.e. ICD10</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:complexContent>
      <xs:extension base="IdCodeTextType">
        <xs:sequence>
          <xs:element name="MedRegister" type="IdCodeOfficialCodeTextType">
            <xs:annotation>
              <xs:documentation>Medical register, i.e. ICD10</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
</xs:element>

element DiagnosisType/MedCode/MedRegister
diagram
type IdCodeOfficialCodeTextType
children Id Code OfficialCode Text
annotation
documentation 
Medical register, i.e. ICD10
source
<xs:element name="MedRegister" type="IdCodeOfficialCodeTextType">
  <xs:annotation>
    <xs:documentation>Medical register, i.e. ICD10</xs:documentation>
  </xs:annotation>
</xs:element>

complexType ProcedureCodeType
diagram
children SequenceNumber MedCode
annotation
documentation 
Procedure codes incl. medcode and medregister
source
<xs:complexType name="ProcedureCodeType">
  <xs:annotation>
    <xs:documentation>Procedure codes incl. medcode and medregister</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="SequenceNumber" type="xs:int">
      <xs:annotation>
        <xs:documentation>Code sequence number. 1 is the maincode. 2..n are additional codes.</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="MedCode">
      <xs:annotation>
        <xs:documentation>Medical code from a medical register, i.e. NCSP</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:complexContent>
          <xs:extension base="IdCodeTextType">
            <xs:sequence>
              <xs:element name="MedRegister" type="IdCodeOfficialCodeTextType">
                <xs:annotation>
                  <xs:documentation>Medical register, i.e. NCSP</xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:sequence>
          </xs:extension>
        </xs:complexContent>
      </xs:complexType>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element ProcedureCodeType/SequenceNumber
diagram
type xs:int
annotation
documentation 
Code sequence number. 1 is the maincode. 2..n are additional codes.
source
<xs:element name="SequenceNumber" type="xs:int">
  <xs:annotation>
    <xs:documentation>Code sequence number. 1 is the maincode. 2..n are additional codes.</xs:documentation>
  </xs:annotation>
</xs:element>

element ProcedureCodeType/MedCode
diagram
type extension of IdCodeTextType
children Id Code Text MedRegister
annotation
documentation 
Medical code from a medical register, i.e. NCSP
source
<xs:element name="MedCode">
  <xs:annotation>
    <xs:documentation>Medical code from a medical register, i.e. NCSP</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:complexContent>
      <xs:extension base="IdCodeTextType">
        <xs:sequence>
          <xs:element name="MedRegister" type="IdCodeOfficialCodeTextType">
            <xs:annotation>
              <xs:documentation>Medical register, i.e. NCSP</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
</xs:element>

element ProcedureCodeType/MedCode/MedRegister
diagram
type IdCodeOfficialCodeTextType
children Id Code OfficialCode Text
annotation
documentation 
Medical register, i.e. NCSP
source
<xs:element name="MedRegister" type="IdCodeOfficialCodeTextType">
  <xs:annotation>
    <xs:documentation>Medical register, i.e. NCSP</xs:documentation>
  </xs:annotation>
</xs:element>

complexType RemarkType
diagram
children Remark Signature SignatureDateTime
used by
elements AdmMedRemarkType/Administrative AdmMedRemarkType/Medical
annotation
documentation 
Remark, signature and signature date
source
<xs:complexType name="RemarkType">
  <xs:annotation>
    <xs:documentation>Remark, signature and signature date</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Remark" type="xs:string"/>
    <xs:element name="Signature" type="xs:string"/>
    <xs:element name="SignatureDateTime" type="xs:dateTime"/>
  </xs:sequence>
</xs:complexType>

element RemarkType/Remark
diagram
type xs:string
source
<xs:element name="Remark" type="xs:string"/>

element RemarkType/Signature
diagram
type xs:string
source
<xs:element name="Signature" type="xs:string"/>

element RemarkType/SignatureDateTime
diagram
type xs:dateTime
source
<xs:element name="SignatureDateTime" type="xs:dateTime"/>

complexType CodeNameType
diagram
children Code Name
used by
elements PatientEconomicAddressBaseType/Country PersonRegisterAddressType/County PatientEconomicAddressBaseType/County PersonAddressExtType/Municipality PersonRegisterAddressBaseType/Municipality PatientEconomicAddressBaseType/Municipality ContactType/Accident/Municipality PersonAddressType/PostalAddress PersonRegisterAddressType/UrbanNeighbourhood PatientEconomicAddressBaseType/UrbanNeighbourhood
annotation
documentation 
Code and Name
source
<xs:complexType name="CodeNameType">
  <xs:annotation>
    <xs:documentation>Code and Name</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Code" type="xs:string"/>
    <xs:element name="Name" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

element CodeNameType/Code
diagram
type xs:string
source
<xs:element name="Code" type="xs:string"/>

element CodeNameType/Name
diagram
type xs:string
source
<xs:element name="Name" type="xs:string"/>

complexType CodeOfficialCodeTextType
diagram
children Code OfficialCode Text
used by
elements ContactType/Admitted/From ContactDetailCareType/PatientCategory ContactType/PlaceOfTreatment PersonalInformationBaseType/Sex ContactType/Discharged/To ContactType/Admitted/Type ContactType/TypeOfCare ContactType/TypeOfContact ContactType/VisitType
annotation
documentation 
Code, OfficialCode and Text
source
<xs:complexType name="CodeOfficialCodeTextType">
  <xs:annotation>
    <xs:documentation>Code, OfficialCode and Text</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Code" type="xs:string"/>
    <xs:element name="OfficialCode" type="xs:string" minOccurs="0"/>
    <xs:element name="Text" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

element CodeOfficialCodeTextType/Code
diagram
type xs:string
source
<xs:element name="Code" type="xs:string"/>

element CodeOfficialCodeTextType/OfficialCode
diagram
type xs:string
source
<xs:element name="OfficialCode" type="xs:string" minOccurs="0"/>

element CodeOfficialCodeTextType/Text
diagram
type xs:string
source
<xs:element name="Text" type="xs:string"/>

complexType CodeTextType
diagram
children Code Text
used by
elements ContactType/Confidential PersonalInformationExt2Type/MaritalStatus PersonalInformationExt2Type/Nationality PersonalInformationExt3Type/Occupation ContactDetailType/Status ContactType/Status ContactType/Transportation
annotation
documentation 
Code and Text
source
<xs:complexType name="CodeTextType">
  <xs:annotation>
    <xs:documentation>Code and Text</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Code" type="xs:string"/>
    <xs:element name="Text" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

element CodeTextType/Code
diagram
type xs:string
source
<xs:element name="Code" type="xs:string"/>

element CodeTextType/Text
diagram
type xs:string
source
<xs:element name="Text" type="xs:string"/>

complexType IdCodeNameType
diagram
children Id Code Name
used by
elements ContactDetailCareType/Placement/Permanent ContactDetailCareType/Placement/Temporary
annotation
documentation 
Id, Code and Name
source
<xs:complexType name="IdCodeNameType">
  <xs:annotation>
    <xs:documentation>Id, Code and Name</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Id" type="xs:int"/>
    <xs:element name="Code" type="xs:string"/>
    <xs:element name="Name" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

element IdCodeNameType/Id
diagram
type xs:int
source
<xs:element name="Id" type="xs:int"/>

element IdCodeNameType/Code
diagram
type xs:string
source
<xs:element name="Code" type="xs:string"/>

element IdCodeNameType/Name
diagram
type xs:string
source
<xs:element name="Name" type="xs:string"/>

complexType IdCodeOfficialCodeTextType
diagram
children Id Code OfficialCode Text
used by
elements DiagnosisType/MedCode/MedRegister ProcedureCodeType/MedCode/MedRegister MedCodeType/MedRegister
annotation
documentation 
Id, Code, Official Code and Text
source
<xs:complexType name="IdCodeOfficialCodeTextType">
  <xs:annotation>
    <xs:documentation>Id, Code, Official Code and Text</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Id" type="xs:int"/>
    <xs:element name="Code" type="xs:string"/>
    <xs:element name="OfficialCode" type="xs:string" minOccurs="0"/>
    <xs:element name="Text" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

element IdCodeOfficialCodeTextType/Id
diagram
type xs:int
source
<xs:element name="Id" type="xs:int"/>

element IdCodeOfficialCodeTextType/Code
diagram
type xs:string
source
<xs:element name="Code" type="xs:string"/>

element IdCodeOfficialCodeTextType/OfficialCode
diagram
type xs:string
source
<xs:element name="OfficialCode" type="xs:string" minOccurs="0"/>

element IdCodeOfficialCodeTextType/Text
diagram
type xs:string
source
<xs:element name="Text" type="xs:string"/>

complexType IdCodeShortAndLongTextType
diagram
children Id Code ShortText LongText
annotation
documentation 
Id, Code, ShortText and LongText
source
<xs:complexType name="IdCodeShortAndLongTextType">
  <xs:annotation>
    <xs:documentation>Id, Code, ShortText and LongText</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Id" type="xs:int"/>
    <xs:element name="Code" type="xs:string"/>
    <xs:element name="ShortText" type="xs:string"/>
    <xs:element name="LongText" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

element IdCodeShortAndLongTextType/Id
diagram
type xs:int
source
<xs:element name="Id" type="xs:int"/>

element IdCodeShortAndLongTextType/Code
diagram
type xs:string
source
<xs:element name="Code" type="xs:string"/>

element IdCodeShortAndLongTextType/ShortText
diagram
type xs:string
source
<xs:element name="ShortText" type="xs:string"/>

element IdCodeShortAndLongTextType/LongText
diagram
type xs:string
source
<xs:element name="LongText" type="xs:string"/>

complexType IdCodeTextType
diagram
children Id Code Text
used by
elements DiagnosisType/MedCode ProcedureCodeType/MedCode
complexType MedCodeType
annotation
documentation 
Id, Code and Text
source
<xs:complexType name="IdCodeTextType">
  <xs:annotation>
    <xs:documentation>Id, Code and Text</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Id" type="xs:int"/>
    <xs:element name="Code" type="xs:string"/>
    <xs:element name="Text" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

element IdCodeTextType/Id
diagram
type xs:int
source
<xs:element name="Id" type="xs:int"/>

element IdCodeTextType/Code
diagram
type xs:string
source
<xs:element name="Code" type="xs:string"/>

element IdCodeTextType/Text
diagram
type xs:string
source
<xs:element name="Text" type="xs:string"/>

complexType IdCodeType
diagram
children Id Code
annotation
documentation 
 Id and Code
source
<xs:complexType name="IdCodeType">
  <xs:annotation>
    <xs:documentation> Id and Code</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Id" type="xs:int"/>
    <xs:element name="Code" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

element IdCodeType/Id
diagram
type xs:int
source
<xs:element name="Id" type="xs:int"/>

element IdCodeType/Code
diagram
type xs:string
source
<xs:element name="Code" type="xs:string"/>

complexType IdNameType
diagram
children Id Name
annotation
documentation 
Id and Name
source
<xs:complexType name="IdNameType">
  <xs:annotation>
    <xs:documentation>Id and Name</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Id" type="xs:int"/>
    <xs:element name="Name" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

element IdNameType/Id
diagram
type xs:int
source
<xs:element name="Id" type="xs:int"/>

element IdNameType/Name
diagram
type xs:string
source
<xs:element name="Name" type="xs:string"/>

complexType IdShortAndLongTextType
diagram
children Id ShortText LongText
annotation
documentation 
Id, ShortText and LongText
source
<xs:complexType name="IdShortAndLongTextType">
  <xs:annotation>
    <xs:documentation>Id, ShortText and LongText</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Id" type="xs:int"/>
    <xs:element name="ShortText" type="xs:string"/>
    <xs:element name="LongText" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

element IdShortAndLongTextType/Id
diagram
type xs:int
source
<xs:element name="Id" type="xs:int"/>

element IdShortAndLongTextType/ShortText
diagram
type xs:string
source
<xs:element name="ShortText" type="xs:string"/>

element IdShortAndLongTextType/LongText
diagram
type xs:string
source
<xs:element name="LongText" type="xs:string"/>

complexType IdTextType
diagram
children Id Text
annotation
documentation 
Id and Text
source
<xs:complexType name="IdTextType">
  <xs:annotation>
    <xs:documentation>Id and Text</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Id" type="xs:int"/>
    <xs:element name="Text" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

element IdTextType/Id
diagram
type xs:int
source
<xs:element name="Id" type="xs:int"/>

element IdTextType/Text
diagram
type xs:string
source
<xs:element name="Text" type="xs:string"/>

complexType LastChangedType
diagram
children ChangedBy Changed
annotation
documentation 
Last changed by and date
source
<xs:complexType name="LastChangedType">
  <xs:annotation>
    <xs:documentation>Last changed by and date</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="ChangedBy" type="xs:string"/>
    <xs:element name="Changed" type="xs:dateTime"/>
  </xs:sequence>
</xs:complexType>

element LastChangedType/ChangedBy
diagram
type xs:string
source
<xs:element name="ChangedBy" type="xs:string"/>

element LastChangedType/Changed
diagram
type xs:dateTime
source
<xs:element name="Changed" type="xs:dateTime"/>

complexType MedCodeType
diagram
type extension of IdCodeTextType
children Id Code Text MedRegister
used by
element IMFBaseType/Code
annotation
documentation 
Medical code incl. medregister
source
<xs:complexType name="MedCodeType">
  <xs:annotation>
    <xs:documentation>Medical code incl. medregister</xs:documentation>
  </xs:annotation>
  <xs:complexContent>
    <xs:extension base="IdCodeTextType">
      <xs:sequence>
        <xs:element name="MedRegister" type="IdCodeOfficialCodeTextType">
          <xs:annotation>
            <xs:documentation>Medical register, i.e. ICD10</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

element MedCodeType/MedRegister
diagram
type IdCodeOfficialCodeTextType
children Id Code OfficialCode Text
annotation
documentation 
Medical register, i.e. ICD10
source
<xs:element name="MedRegister" type="IdCodeOfficialCodeTextType">
  <xs:annotation>
    <xs:documentation>Medical register, i.e. ICD10</xs:documentation>
  </xs:annotation>
</xs:element>

complexType ShortAndLongTextType
diagram
children ShortText LongText
annotation
documentation 
ShortText and LongText
source
<xs:complexType name="ShortAndLongTextType">
  <xs:annotation>
    <xs:documentation>ShortText and LongText</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="ShortText" type="xs:string"/>
    <xs:element name="LongText" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

element ShortAndLongTextType/ShortText
diagram
type xs:string
source
<xs:element name="ShortText" type="xs:string"/>

element ShortAndLongTextType/LongText
diagram
type xs:string
source
<xs:element name="LongText" type="xs:string"/>

complexType UserType
diagram
children Name FullName
annotation
documentation 
ShortNameId and Name
source
<xs:complexType name="UserType">
  <xs:annotation>
    <xs:documentation>ShortNameId and Name</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Name" type="xs:string"/>
    <xs:element name="FullName" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

element UserType/Name
diagram
type xs:string
source
<xs:element name="Name" type="xs:string"/>

element UserType/FullName
diagram
type xs:string
source
<xs:element name="FullName" type="xs:string"/>

complexType ExternalOrganizationType
diagram
children Id Code Name
used by
elements PersonalInformationExt3Type/ExternalDoctor ContactType/RequestFrom/External/ExternalOrganization ContactType/Admitted/FromExternalOrganization PersonalInformationExt3Type/HealthCareCentre ContactType/Discharged/ToExternalOrganization
annotation
documentation 
Type for an external organization or resource (EksternInstans)
source
<xs:complexType name="ExternalOrganizationType">
  <xs:annotation>
    <xs:documentation>Type for an external organization or resource (EksternInstans)</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Id" type="xs:int"/>
    <xs:element name="Code" type="xs:string"/>
    <xs:element name="Name" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

element ExternalOrganizationType/Id
diagram
type xs:int
source
<xs:element name="Id" type="xs:int"/>

element ExternalOrganizationType/Code
diagram
type xs:string
source
<xs:element name="Code" type="xs:string"/>

element ExternalOrganizationType/Name
diagram
type xs:string
source
<xs:element name="Name" type="xs:string"/>

complexType OrganizationType
diagram
children Id ShortNameId Name
used by
elements ContactType/Admitted/FromInternalOrganization ContactType/RequestFrom/Internal/InternalOrganization ContactType/MedicalOrganization ContactDetailType/Organization ContactType/Discharged/ToInternalOrganization
annotation
documentation 
Type for the organizational unit
source
<xs:complexType name="OrganizationType">
  <xs:annotation>
    <xs:documentation>Type for the organizational unit</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Id" type="xs:int"/>
    <xs:element name="ShortNameId" type="xs:string"/>
    <xs:element name="Name" type="xs:string" minOccurs="0"/>
  </xs:sequence>
</xs:complexType>

element OrganizationType/Id
diagram
type xs:int
source
<xs:element name="Id" type="xs:int"/>

element OrganizationType/ShortNameId
diagram
type xs:string
source
<xs:element name="ShortNameId" type="xs:string"/>

element OrganizationType/Name
diagram
type xs:string
source
<xs:element name="Name" type="xs:string" minOccurs="0"/>

complexType ResourceType
diagram
children Id Code Name
used by
elements ContactDetailCareType/CareGroup ContactDetailCareType/CareResponsible ContactDetailMedType/ContactResponsible ContactType/RequestFrom/Internal/InternalPhysician ContactDetailMedType/PatientResponsible ContactType/Discharged/Physician
annotation
documentation 
Type for a resource
source
<xs:complexType name="ResourceType">
  <xs:annotation>
    <xs:documentation>Type for a resource</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Id" type="xs:int"/>
    <xs:element name="Code" type="xs:string" minOccurs="0"/>
    <xs:element name="Name" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

element ResourceType/Id
diagram
type xs:int
source
<xs:element name="Id" type="xs:int"/>

element ResourceType/Code
diagram
type xs:string
source
<xs:element name="Code" type="xs:string" minOccurs="0"/>

element ResourceType/Name
diagram
type xs:string
source
<xs:element name="Name" type="xs:string"/>


XML Schema documentation generated with
XML Spy Schema Editor www.xmlspy.com