-
Notifications
You must be signed in to change notification settings - Fork 3
Encounter
JonasBacker edited this page Nov 19, 2019
·
1 revision
query Encounter{
Encounter(_id: "5dcd0b739f814f507c1cb86e"){
id
status
}
}
query EncounterList {
EncounterList {
entry {
resource {
...on Encounter {
id
resourceType
status
}
}
}
}
}
mutation EncounterCreate{
EncounterCreate(resource: {
resourceType: Encounter,
id: "2",
text: {
status: "generated",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">Encounter with patient @example</div>",
},
status: "triaged",
class: {
system: "http://terminology.hl7.org/CodeSystem/v3-ActCode",
code: "IMP",
display: "inpatient encounter",
},
},
)
{
id
}
}
mutation EncounterUpdate{
EncounterUpdate( id: "5dcd0b739f814f507c1cb86e", resource: {
resourceType: Encounter,
status: "arrived",
class: {
system: "http://terminology.hl7.org/CodeSystem/v3-ActCode",
code: "IMP",
display: "inpatient encounter",
},
}
)
{
id
status
}
}
mutation EncounterRemove{
EncounterRemove( id: "5dcd0ccaa442951b54c07b36"){
id
}
}