fix graph-ql tests
This commit is contained in:
parent
c8beb27d59
commit
c002d5b5d1
|
@ -3,47 +3,79 @@
|
|||
"instance-tests" : {
|
||||
"simple" : {
|
||||
"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" : {
|
||||
"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"
|
||||
}]
|
||||
}}
|
||||
"active" : true,
|
||||
"identifier" : [
|
||||
{
|
||||
"system" : "urn:oid:1.2.36.146.595.217.0.1",
|
||||
"value" : "12345"
|
||||
}
|
||||
],
|
||||
"name" : [
|
||||
{
|
||||
"family" : "Chalmers",
|
||||
"given" : [
|
||||
"Peter",
|
||||
"James"
|
||||
]
|
||||
},
|
||||
{
|
||||
"given" : [
|
||||
"Jim"
|
||||
]
|
||||
},
|
||||
{
|
||||
"family" : "Windsor",
|
||||
"given" : [
|
||||
"Peter",
|
||||
"James"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
"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}}}",
|
||||
"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"
|
||||
}]
|
||||
}}
|
||||
"Patient" : {
|
||||
"active" : true,
|
||||
"identifier" : [
|
||||
{
|
||||
"system" : "urn:oid:1.2.36.146.595.217.0.1",
|
||||
"value" : "12345"
|
||||
}
|
||||
],
|
||||
"name" : [
|
||||
{
|
||||
"family" : "Chalmers",
|
||||
"given" : [
|
||||
"Peter",
|
||||
"James"
|
||||
]
|
||||
},
|
||||
{
|
||||
"given" : [
|
||||
"Jim"
|
||||
]
|
||||
},
|
||||
{
|
||||
"family" : "Windsor",
|
||||
"given" : [
|
||||
"Peter",
|
||||
"James"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue