-
Notifications
You must be signed in to change notification settings - Fork 3
AuditEvent
JonasBacker edited this page Nov 19, 2019
·
1 revision
query AuditEvent{
AuditEvent(_id: "5dd3c47efdf702056c97cd0b"){
id
resourceType
}
}
query AuditEventList {
AuditEventList {
entry {
resource {
...on AuditEvent {
id
resourceType
}
}
}
}
}
mutation AuditEventCreate{
AuditEventCreate(resource: {
resourceType: AuditEvent,
id: "example",
text: {
status: "generated",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">Application Start for under service login "Grahame" (id: Grahame's Test HL7Connect)</div>"
},
type: {
system: "http://dicom.nema.org/resources/ontology/DCM",
code: "110100",
display: "Application Activity"
},
subtype: [
{
system: "http://dicom.nema.org/resources/ontology/DCM",
code: "110120",
display: "Application Start"
}
],
action: "E",
recorded: "2012-10-25T22:04:27+11:00",
outcome: "0",
agent: [
{
type: {
coding: [
{
system: "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
code: "humanuser",
display: "human user"
}
]
},
role: [
{
text: "Service User (Logon)"
}
],
requestor: false,
network: {
address: "127.0.0.1",
type: "2"
}
},
{
type: {
coding: [
{
system: "http://dicom.nema.org/resources/ontology/DCM",
code: "110153",
display: "Source Role ID"
}
]
},
altId: "6580",
requestor: false,
network: {
address: "Workstation1.ehr.familyclinic.com",
type: "1"
}
}
],
source: {
site: "Development",
observer:"Grahame's Laptop",
},
entity: [
{
type: {
system: "http://terminology.hl7.org/CodeSystem/audit-entity-type",
code: "4",
display: "Other"
},
role: {
system: "http://terminology.hl7.org/CodeSystem/object-role",
code: "4",
display: "Domain Resource"
},
lifecycle: {
system: "http://terminology.hl7.org/CodeSystem/dicom-audit-lifecycle",
code: "6",
display: "Access / Use"
},
name: "Grahame's Laptop"
}
]
}
)
{
id
}
}
mutation AuditEventUpdate{
AuditEventUpdate( id: "5dd3c47efdf702056c97cd0b", resource: {
resourceType: AuditEvent,
id: "example",
text: {
status: "generated",
div: "<div xmlns=\"http://www.w3.org/1999/xhtml\">Application Start for under service login "Grahame" (id: Grahame's Test HL7Connect)</div>"
},
type: {
system: "http://dicom.nema.org/resources/ontology/DCM",
code: "110101",
display: "Application Activity"
},
subtype: [
{
system: "http://dicom.nema.org/resources/ontology/DCM",
code: "110120",
display: "Application Start"
}
],
action: "E",
recorded: "2012-10-25T22:04:27+11:00",
outcome: "0",
agent: [
{
type: {
coding: [
{
system: "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
code: "humanuser",
display: "human user"
}
]
},
role: [
{
text: "Service User (Logon)"
}
],
requestor: false,
network: {
address: "127.0.0.1",
type: "2"
}
},
{
type: {
coding: [
{
system: "http://dicom.nema.org/resources/ontology/DCM",
code: "110153",
display: "Source Role ID"
}
]
},
altId: "6580",
requestor: false,
network: {
address: "Workstation1.ehr.familyclinic.com",
type: "1"
}
}
],
source: {
site: "Development",
observer:"Grahame's Laptop",
},
entity: [
{
type: {
system: "http://terminology.hl7.org/CodeSystem/audit-entity-type",
code: "4",
display: "Other"
},
role: {
system: "http://terminology.hl7.org/CodeSystem/object-role",
code: "4",
display: "Domain Resource"
},
lifecycle: {
system: "http://terminology.hl7.org/CodeSystem/dicom-audit-lifecycle",
code: "6",
display: "Access / Use"
},
name: "Grahame's Laptop"
}
]
}
)
{
id
}
}
mutation AuditEventRemove{
AuditEventRemove( id: "5dd3c498fdf702056c97cd0f"){
id
}
}