This wiki has undergone a migration to Confluence found Here
<meta name="googlebot" content="noindex">

Difference between revisions of "Datatype Examples Collection area"

From HL7Wiki
Jump to navigation Jump to search
Line 549: Line 549:
 
===XML ITS Example===
 
===XML ITS Example===
  
<.......>
+
<nowiki><!-- To indicate an unstructured organization name  --></nowiki>
 +
<name>Good Health Hospital</name>
 +
 
 +
<nowiki><!-- To indicate an unstructured organization name with a validity date interval --></nowiki>
 +
<name>Good Health Hospital
 +
    <validTime>
 +
          <low value="19990401"/>
 +
          <high value="20040331"/>
 +
    </validTime>
 +
</name>
 +
 
 +
<nowiki><!-- To indicate a home address with unstructured address lines  --></nowiki>
 +
<addr use="H">
 +
    <streetAddressLine>Hexagon House</streetAddressLine>
 +
    <streetAddressLine>Pynes Hill</streetAddressLine>
 +
    <streetAddressLine>Rydon Lane</streetAddressLine>
 +
    <streetAddressLine>Exeter</streetAddressLine>
 +
    <streetAddressLine>Devon</streetAddressLine>
 +
    <postalCode>EX2 5SE</postalCode>
 +
    <addressKey>12345678</addressKey>
 +
</addr>
 +
 
 +
<nowiki><!-- To indicate a temporary address with unstructured address lines and a description and dates --></nowiki>
 +
<addr use="TMP">
 +
    <streetAddressLine>AQUEOUS II</streetAddressLine>
 +
    <streetAddressLine>ASTON CROSS</streetAddressLine>
 +
    <streetAddressLine>ROCKY LANE</streetAddressLine>
 +
    <streetAddressLine>ASTON</streetAddressLine>
 +
    <streetAddressLine>BIRMINGHAM</streetAddressLine>
 +
    <postalCode>B6 5RQ</postalCode>
 +
    <addressKey>23456789</addressKey>
 +
    <desc>Holiday home</desc>
 +
    <useablePeriod>
 +
          <low value="20040716"/>
 +
          <high value="20040831"/>
 +
    </useablePeriod>
 +
</addr>
 +
 
 +
<nowiki> <!-- To indicate a home address with structured address lines --></nowiki>
 +
<addr use="H">
 +
    <houseNumber>Hexagon House</houseNumber>
 +
    <streetName>Pynes Hill</streetName>
 +
    <streetName>Rydon Lane</streetName>
 +
    <city>Exeter</city>
 +
    <county>Devon</county>
 +
    <postalCode>EX2 5SE</postalCode>
 +
    <addressKey>12345678</addressKey>
 +
</addr>
  
 
Provenance:
 
Provenance:

Revision as of 12:25, 2 March 2007

This page will be the area in which collected datatype XML ITS Examples are stored prior to documenting and comparing

All XML ITS Examples should have provenance notes and if possible a link to the source document.



Contents

Basic Data Types

ANY (DataValue)

XML ITS Example

<.......>

Provenance:


UML ITS Generated Example

<.......>

Comparison Notes


HXIT (History Item)

XML ITS Example

<.......>

Provenance:


UML ITS Generated Example

<.......>


Comparison Notes


BL (Boolean)

XML ITS Example

<contextConductionInd value="true"/>
<seperatableInd value="false"/>
<seperatableInd nullFlavor="UNK"/>

Provenance: CfH MIM v6.1.00 Datatypes section

UML ITS Generated Example

<.......>


Comparison Notes


BN (Boolean Non Null)

XML ITS Example

<contextConductionInd value="true"/>
<seperatableInd value="false"/>

Provenance: CfH MIM v6.1.00 Datatypes section

UML ITS Generated Example

<.......>


Comparison Notes


Text And Content Data Types

Content

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


Data

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


ED (Encapsulated Data)

XML ITS Example

Encapsulated Data Plain Text (f)

<value>Some plain text</value>


Encapsulated Data Text and Line Breaks (f)

<.....>


Encapsulated Data Limited HTML (f)

<value mediaType="text/x-h7uk-html" >
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/1999/xhtml ..\dt\xhtmlNPfIT.xsd">
<head>
<title>Diagnostic Imaging Procedure Report</title>
</head>
<body>
<p>The lung fields are clear. Heart size is enlarged with slight unfolding of the aorta.</p>
<p>CTR = 18/35 cm</p>
<p>The right hemi-diaphragm is raised</p>
</body>
</html>
</value>


Encapsulated Data Attachment Reference (f)

<value>
    <reference value="http://www.nhsia.nhs.uk/MIMv3.0/index.htm"/>
</value>

Encapsulated Data Attachment (f)

<!-- To indicate attachment data (in an observation class "value" attribute)  -->
<value encoding="B64" mediaType="text/plain">[BASE64REPRESENTATIONOFTHEDATA]</value>


Provenance: CfH MIM 6.1.00 Datatypes section

UML ITS Generated Example

<.......>

Comparison Notes


ST (Character String)

XML ITS Example

<text>Some plain text</text>
<value nullFlavor="UNK"/>


Provenance: CfH MIM 6.1.00 Datatypes section

UML ITS Generated Example

<.......>

Comparison Notes


SC (Coded String)

XML ITS Example

<softwareName>NHAIS</softwareName>
<softwareName code="1" codeSystem="2.16.840.1.113883.2.1.3.2.9999" displayName="NHAIS">NHAIS</softwareName>
<softwareName nullFlavor="UNK"/>


Provenance: CfH MIM 6.1.00 Datatypes section

UML ITS Generated Example

<.......>

Comparison Notes


Coded Data Types

Term

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


CD (Concept Descriptor)

XML ITS Example

<value code="11" codeSystem="2.16.840.1.113883.2.1.3.2.4.17.42" displayName="NHS Number confirmed"/>

Provenance: CfH MIM Version 6.1.00 Datatypes Section

UML ITS Generated Example

<.......>

Comparison Notes


CR (Concept Role)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


CE (Coded With Equivalents)

XML ITS Example


   <originalText>currently suffering from asthma""</originalText>
   <translation code="195967001" codeSystem="2.16.840.1.113883.2.1.3.2.4.15" displayName="asthma"/>


Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


CV (Coded Value)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


CO (Coded Ordinal)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


CS (Coded Simple Value)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


Miscellaneous Data Types

II (Instance Identifier)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


Ref

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


TEL (Telecommunication Address)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


Names and Addresses

ADXP (Address Part)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


AD (Address)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


ENXP (Entity Name Part)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


EN (Entity Name)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


TN (Trivial Name)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


PN (Person Name)

XML ITS Example

<!-- To indicate an unstructured usual person name -->
<name use="L">John Smith</name>
<!-- To indicate an unstructured alias person name with a validity date interval -->
<name use="A">John Smith
    <validTime>
         <low value="19990401"/>
         <high value="20040331"/>
    </validTime>
</name
<!-- To indicate a structured usual person name with title, two forenames, family name and suffix  -->
<name use="L">
    <prefix>Mr</prefix>
    <given>John</given>
    <given>Paul</given>
    <family>Smith</family>
    <suffix>Snr</suffix>
</name>
<!-- To indicate a structured usual person name with title, two forenames, family name and suffix, with a validity date interval -->
<name use="A">
    <prefix>Mr</prefix>
    <given>John</given>
    <given>Paul</given>
    <family>Smith</family>
    <suffix>Snr</suffix>
    <validTime>
         <low value="19990401"/>
         <high value="20040331"/>
    </validTime>
</name>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


PN (Organization Name)

XML ITS Example

<!-- To indicate an unstructured organization name  -->
<name>Good Health Hospital</name>
<!-- To indicate an unstructured organization name with a validity date interval -->
<name>Good Health Hospital
    <validTime>
         <low value="19990401"/>
         <high value="20040331"/>
    </validTime>
</name>
<!-- To indicate a home address with unstructured address lines  -->
<addr use="H">
    <streetAddressLine>Hexagon House</streetAddressLine>
    <streetAddressLine>Pynes Hill</streetAddressLine>
    <streetAddressLine>Rydon Lane</streetAddressLine>
    <streetAddressLine>Exeter</streetAddressLine>
    <streetAddressLine>Devon</streetAddressLine>
    <postalCode>EX2 5SE</postalCode>
    <addressKey>12345678</addressKey>
</addr>
<!-- To indicate a temporary address with unstructured address lines and a description and dates -->
<addr use="TMP">
    <streetAddressLine>AQUEOUS II</streetAddressLine>
    <streetAddressLine>ASTON CROSS</streetAddressLine>
    <streetAddressLine>ROCKY LANE</streetAddressLine>
    <streetAddressLine>ASTON</streetAddressLine>
    <streetAddressLine>BIRMINGHAM</streetAddressLine>
    <postalCode>B6 5RQ</postalCode>
    <addressKey>23456789</addressKey>
    <desc>Holiday home</desc>
    <useablePeriod>
         <low value="20040716"/>
         <high value="20040831"/>
    </useablePeriod>
</addr>

<!-- To indicate a home address with structured address lines -->

<addr use="H">
    <houseNumber>Hexagon House</houseNumber>
    <streetName>Pynes Hill</streetName>
    <streetName>Rydon Lane</streetName>
    <city>Exeter</city>
    <county>Devon</county>
    <postalCode>EX2 5SE</postalCode>
    <addressKey>12345678</addressKey>
</addr>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


Quantities

QTY (Quantity)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


INT (Integer)

XML ITS Example

<repeatNumber value="1"/>
<sequenceNumber nullFlavor="UNK"/>


Provenance: CfH MIM v6.1.00 Datatypes section

UML ITS Generated Example

<.......>

Comparison Notes



REAL (Real)

XML ITS Example

<value value="2.3"/>
<value nullFlavor="UNK"/>

Provenance: CfH MIM v6.1.00 Datatypes section

UML ITS Generated Example

<.......>

Comparison Notes


RTO (Ratio)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


PQ (Physical Quantity)

XML ITS Example

<!-- To indicate a percentage for the "value" attribute of an observation class  -->
<value value="92.55" unit="%"/>
<!-- To indicate a measured quantity in alternative units of 30 grams -->
<quantity value="30" unit="gram">
   <translation value="30" code="258682000" codeSystem="2.16.840.1.113883.2.1.3.2.4.15" displayName="gram"/>
</quantity>
<!-- To indicate a counted quantity in alternative units of 100 tablets  -->
<quantity value="100" unit="1">
     <translation value="100" code="3319411000001109" codeSystem="2.16.840.1.113883.2.1.3.2.4.15" displayName="tablet"/>
</quantity>
<!-- To indicate a counted quantity in arbitrary units -->
<value value="6" unit="1">
    <translation value="6">
         <originalText>packets each containing 21 tablets of A and 7 tablets of B</originalText>
    </translation>
</value>


Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


PQR (Physical Quantity Representation)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


MO (Monetary Amount)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


TS (Point in Time)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


Collections

SET (Set)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


LIST (Sequence)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


GLIST (Generated Sequence)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


SLIST (Sampled Sequence)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


BAG (Bag)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


IVL (Interval)

XML ITS Example

<!-- To indicate an effective time of  12:05 on 25/06/2004 --> 
<effectiveTime>
</effectiveTime>
<!-- To indicate an effective time between of  12:05 and 12:20 on 25/06/2004  -->
<effectiveTime>
    <low value="200406251205"/>
    <high value="200406251220"/>
</effectiveTime>
<!-- To indicate an effective time after  12:05 on 25/06/2004 -->
<effectiveTime>
    <low value="200406251205"/>
</effectiveTime>
<!-- To indicate an effective time before  25/06/2004 -->
<effectiveTime>
    <high value="20040625"/>
</effectiveTime>
<!-- To indicate an effective time of one month duration -->
<effectiveTime>
    <width value="1" unit="mo"/>
</effectiveTime>
<!-- To indicate an effective time with a 24 hour duration centred on  15/06/2002  -->
<effectiveTime>
    <width value="24" unit="h"/>
</effectiveTime>

Provenance: CfH MIM v6.1.00 Datatypes section

UML ITS Generated Example

<.......>

Comparison Notes


HIST (History)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


Timing Specifications

PIVL (PeriodicInterval)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


EIVL (Event-Related Periodic Interval of Time)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes


GTS (General Timing Specification)

XML ITS Example

<.......>

Provenance:

UML ITS Generated Example

<.......>

Comparison Notes