update graphql tests
This commit is contained in:
parent
ecc4f81780
commit
a6162ceee0
|
@ -1,11 +1,16 @@
|
||||||
{
|
{
|
||||||
"@type" : "graphql-server-tests",
|
"@type" : "graphql-server-tests",
|
||||||
"tests" : {
|
"instance-tests" : {
|
||||||
"simple" : {
|
"simple" : {
|
||||||
"description" : "Just a simple test of the basic graphQL engine: a simple query on a known patient (example, from the spec)",
|
"description" : "Just a simple test of the basic graphQL engine: a simple query on a known patient (example, from the spec)",
|
||||||
"url" : "/Patient/example/$graphql?query={identifier{system,value}active,name{text,given,family}",
|
"url" : "/Patient/example/$graphql?query={identifier{system,value}active,name{text,given,family}}",
|
||||||
"output" : {
|
"output" : {
|
||||||
"data" : {
|
"data" : {
|
||||||
|
"identifier":[{
|
||||||
|
"system":"urn:oid:1.2.36.146.595.217.0.1",
|
||||||
|
"value":"12345"
|
||||||
|
}],
|
||||||
|
"active":true,
|
||||||
"name":[{
|
"name":[{
|
||||||
"given":["Peter","James"],
|
"given":["Peter","James"],
|
||||||
"family":"Chalmers"
|
"family":"Chalmers"
|
||||||
|
@ -15,8 +20,30 @@
|
||||||
"given":["Peter","James"],
|
"given":["Peter","James"],
|
||||||
"family":"Windsor"
|
"family":"Windsor"
|
||||||
}]
|
}]
|
||||||
}
|
}}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"root-tests" : {
|
||||||
|
"simple" : {
|
||||||
|
"description" : "Just a simple test of the basic graphQL engine: a simple query on a known patient (example, from the spec)",
|
||||||
|
"url" : "/$graphql?query={Patient(id:example){identifier{system,value}active,name{text,given,family}}}",
|
||||||
|
"output" : {
|
||||||
|
"data" : {
|
||||||
|
"identifier":[{
|
||||||
|
"system":"urn:oid:1.2.36.146.595.217.0.1",
|
||||||
|
"value":"12345"
|
||||||
|
}],
|
||||||
|
"active":true,
|
||||||
|
"name":[{
|
||||||
|
"given":["Peter","James"],
|
||||||
|
"family":"Chalmers"
|
||||||
|
},{
|
||||||
|
"given":["Jim"]
|
||||||
|
},{
|
||||||
|
"given":["Peter","James"],
|
||||||
|
"family":"Windsor"
|
||||||
|
}]
|
||||||
|
}}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue