.6

Smoking Cessation Enrolment Response (5008)

<?xml version="1.0" encoding="utf
-
8"?>

<!
--

Created with Liquid XML Studio 1.0.7.0 (http://www.liquid
-
technologies.com)
--
>

<
xs:schema

xmlns
="
http://www.telemessenger.co.nz/hce/programenrolmentresponse
"

xmlns:xs
="
http://www.w3.org/2001/XMLSchema
"

targetNamespace
="
http://www.telemessenger.co.nz/hce/programenrolmentresponse
"

elementFormDefault
="
qualified
"

attributeFormDefault
="
unqualified
">


<
xs:element

name
="
ProgramEnrolmentResponse
"

type
="
ProgramResponse
"/>


<
xs:complexType

name
="
ProgramResponse
">



<
xs:sequence
>




<
xs:element

name
="
Status
">





<
xs:simpleType
>






<
xs:restriction

base
="
xs:string
">







<
xs:enumeration

va
lue
="
OK
"/>







<
xs:enumeration

value
="
ERROR
"/>






</
xs:restriction
>





</
xs:simpleType
>




</
xs:element
>




<
xs:element

name
="
AccessCode
"

type
="
xs:string
"/>




<
xs:element

name
="
Messages
"

type
="
ResponseMessages
"

minOccurs
="
0
"/>



</
xs:sequence
>


</
xs:
complexType
>


<
xs:complexType

name
="
ResponseMessage
">



<
xs:sequence
>




<
xs:element

name
="
Code
"

type
="
xs:string
"/>

Proof of Concept

Functional Requirements Document


Page
48

Simpl
©

2013

Commercial
-
In
-
Confidence




<
xs:element

name
="
Description
"

type
="
xs:string
"/>




<
xs:element

name
="
Field
"

type
="
xs:string
"/>




<
xs:element

name
="
FieldValue
"

type
="
x
s:string
"/>



</
xs:sequence
>


</
xs:complexType
>


<
xs:complexType

name
="
ResponseMessages
">



<
xs:sequence
>




<
xs:element

name
="
Message
"

type
="
ResponseMessage
"

maxOccurs
="
unbounded
"/>



</
xs:sequence
>


</
xs:complexType
>

</
xs:schema
>

9.7

Specialised Search Reque
st (5009)

<?xml version="1.0" encoding="UTF
-
8"?>

<!
--
W3C Schema generated by XMLSpy v2007 sp2 (http://www.altova.com)
--
>

<
xs:schema

xmlns
="
http://www.healthpoint.co.nz/hce/specialisedsearch
"

xmlns:xs
="
http://www.w3.org/2001/XMLSchema
"

targetNamespace
="
http
://www.healthpoint.co.nz/hce/specialisedsearch
"

elementFormDefault
="
unqualified
"

attributeFormDefault
="
unqualified
">


<
xs:element

name
="
specialisedsearchrequest
">



<
xs:complexType
>




<
xs:sequence
>





<
xs:element

name
="
keyword
">






<
xs:simpleType
>







<
xs:restriction

base
="
xs:string
">








<
xs:enumeration

value
="
fast burner
"/>







</
xs:restriction
>






</
xs:simpleType
>





</
xs:element
>





<
xs:element

name
="
filters
">






<
xs:complexType
>







<
xs:sequence
>








<
xs:element

name
="
healthcare
-
t
ype
"

minOccurs
="
0
">









<
xs:complexType
>










<
xs:attribute

name
="
type
"

use
="
required
">











<
xs:simpleType
>












<
xs:restriction

base
="
xs:string
">













<
xs:enumeration

value
="
public
"/>












</
xs:restriction
>











</
xs:
simpleType
>










</
xs:attribute
>









</
xs:complexType
>








</
xs:element
>








<
xs:element

name
="
service
-
types
"

minOccurs
="
0
">









<
xs:complexType
>










<
xs:sequence

maxOccurs
="
unbounded
">











<
xs:element

name
="
service
-
type
">












<
xs:simpleType
>













<
xs:restriction

base
="
xs:string
">














<
xs:enumeration

value
="
DIET101
"/>













</
xs:restriction
>












</
xs:simpleType
>











</
xs:element
>










</
xs:sequence
>









</
xs:complexType
>








<
/
xs:element
>








<
xs:element

name
="
regions
"

minOccurs
="
0
">









<
xs:complexType
>










<
xs:sequence

maxOccurs
="
unbounded
">











<
xs:element

name
="
region
">












<
xs:simpleType
>













<
xs:restriction

base
="
xs:string
">














<
xs:enumeration

value
="
AKCNTRL
"/>













</
xs:restriction
>

Proof of Concept

Functional Requirements Document


Page
49

Simpl
©

2013

Commercial
-
In
-
Confidence












</
xs:simpleType
>











</
xs:element
>










</
xs:sequence
>









</
xs:complexType
>








</
xs:element
>







</
xs:sequence
>






</
xs:complexType
>





</
xs:element
>




</
xs:
sequence
>




<
xs:attribute

name
="
start
"

use
="
required
">





<
xs:simpleType
>






<
xs:restriction

base
="
xs:int
">







<
xs:enumeration

value
="
0
"/>






</
xs:restriction
>





</
xs:simpleType
>




</
xs:attribute
>




<
xs:attribute

name
="
howMany
"

use
="
required
">





<
xs:simpleType
>






<
xs:restriction

base
="
xs:int
">







<
xs:enumeration

value
="
2
"/>






</
xs:restriction
>





</
xs:simpleType
>




</
xs:attribute
>



</
xs:complexType
>


</
xs:element
>

</
xs:schema
>


9.8

Specialised Search Response (5010)

<?xml version="1.0
" encoding="UTF
-
8"?>

<!
--
W3C Schema generated by XMLSpy v2007 sp2 (http://www.altova.com)
--
>

<
xs:schema

xmlns
="
http://www.healthpoint.co.nz/hce/specialisedsearchresponse
"

xmlns:xs
="
http://www.w3.org/2001/XMLSchema
"

targetNamespace
="
http://www.healthpoint.c
o.nz/hce/specialisedsearchresponse
"

elementFormDefault
="
unqualified
"

attributeFormDefault
="
unqualified
">


<
xs:element

name
="
specialisedsearchresult
">



<
xs:complexType
>




<
xs:sequence
>





<
xs:element

name
="
results
">






<
xs:complexType
>







<
xs:sequen
ce
>








<
xs:element

name
="
result
"

minOccurs
="
0
"

maxOccurs
="
unbounded
">









<
xs:complexType
>










<
xs:sequence
>











<
xs:element

name
="
name
">












<
xs:simpleType
>













<
xs:restriction

base
="
xs:string
">














<
xs:enumerati
on

value
="
Second Result
"/>














<
xs:enumeration

value
="
Service/Dietician&apos;s
name
"/>













</
xs:restriction
>












</
xs:simpleType
>











</
xs:element
>











<
xs:element

name
="
address
"

type
="
xs:string
"/>











<
xs:element

name
="
description
"

type
="
xs:string
"/>










</
xs:sequence
>










<
xs:attribute

name
="
id
"

use
="
required
">











<
xs:simpleType
>












<
xs:restriction

base
="
xs:int
">













<
xs:enumeration

value
="
12345
"/>













<
xs:enumeration

value
="
12346
"/>












</
xs:restriction
>

Proof of Concept

Functional Requirements Document


Page
50

Simpl
©

2013

Commercial
-
In
-
Confidence











</
xs:simpleType
>










</
xs:attribute
>









</
xs:complexType
>








</
xs:element
>







</
xs:sequence
>







<
xs:attribute

name
="
total
"

use
="
required
">








<
xs:simpleType
>









<
xs:restriction

base
="
xs:int
">










<
xs:enumeration

value
="
120
"/>









</
xs:restriction
>








</
xs:simpleType
>







</
xs:attribute
>







<
xs:attribute

name
="
start
"

use
="
required
">








<
xs:simpleType
>









<
xs:restriction

base
="
xs:int
">










<
xs:enumer
ation

value
="
0
"/>









</
xs:restriction
>








</
xs:simpleType
>







</
xs:attribute
>







<
xs:attribute

name
="
howMany
"

use
="
required
">








<
xs:simpleType
>









<
xs:restriction

base
="
xs:int
">










<
xs:enumeration

value
="
2
"/>









</
xs:res
triction
>








</
xs:simpleType
>







</
xs:attribute
>






</
xs:complexType
>





</
xs:element
>




</
xs:sequence
>



</
xs:complexType
>


</
xs:element
>

</
xs:schema
>