This page is part of the FHIR Specification (v0.0.82: DSTU 1). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions 
Example Index:
| General SecurityEvent Example | XML | JSON |
| Login example | XML | JSON |
| Logout example | XML | JSON |
| RESTful Operation | XML | JSON |
XML
General SecurityEvent Example (id = "example")
<SecurityEvent xmlns="http://hl7.org/fhir"> <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml">Application Start for under service login "Grahame" (id: Grahame's Test HL7Connect)</div> </text> <event> <type> <coding> <system value="http://nema.org/dicom/dcid"/> <code value="110100"/> <display value="Application Activity"/> </coding> </type> <subtype> <coding> <system value="http://nema.org/dicom/dcid"/> <code value="110120"/> <display value="Application Start"/> </coding> </subtype> <action value="E"/> <dateTime value="2012-10-25T22:04:27+11:00"/> <outcome value="0"/> </event> <participant> <role> <text value="Service User (Logon)"/> </role> <userId value="Grahame"/> <requestor value="false"/> <network> <identifier value="127.0.0.1"/> <type value="2"/> </network> </participant> <source> <site value="Development"/> <identifier value="Grahame's Laptop"/> <type> <system value="http://hl7.org/fhir/security-event-sub-type"/> <code value="1"/> </type> </source> <object> <identifier> <label value="Dell Serial Number"/> <value value="ABCDEF"/> </identifier> <type value="4"/> <role value="4"/> <lifecycle value="6"/> <name value="Grahame's Laptop"/> </object> </SecurityEvent>
JSON
General SecurityEvent Example
{
"resourceType": "SecurityEvent",
"text": {
"status": "generated",
"div": "<div>Application Start for under service login "Grahame" (id: Grahame's Test HL7Connect)</div>"
},
"event": {
"type": {
"coding": [
{
"system": "http://nema.org/dicom/dcid",
"code": "110100",
"display": "Application Activity"
}
]
},
"subtype": [
{
"coding": [
{
"system": "http://nema.org/dicom/dcid",
"code": "110120",
"display": "Application Start"
}
]
}
],
"action": "E",
"dateTime": "2012-10-25T22:04:27+11:00",
"outcome": "0"
},
"participant": [
{
"role": [
{
"text": "Service User (Logon)"
}
],
"userId": "Grahame",
"requestor": false,
"network": {
"identifier": "127.0.0.1",
"type": "2"
}
}
],
"source": {
"site": "Development",
"identifier": "Grahame's Laptop",
"type": [
{
"system": "http://hl7.org/fhir/security-event-sub-type",
"code": "1"
}
]
},
"object": [
{
"identifier": {
"label": "Dell Serial Number",
"value": "ABCDEF"
},
"type": "4",
"role": "4",
"lifecycle": "6",
"name": "Grahame's Laptop"
}
]
}
XML
Login example (id = "example-login")
<SecurityEvent xmlns="http://hl7.org/fhir"> <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"> <p> <b>Generated Narrative</b> </p> <h3>Events</h3> <table class="grid"> <tr> <td> <b>Type</b> </td> <td> <b>Subtype</b> </td> <td> <b>Action</b> </td> <td> <b>DateTime</b> </td> <td> <b>Outcome</b> </td> <td> <b>OutcomeDesc</b> </td> </tr> <tr> <td> <span title="Codes: {http://nema.org/dicom/dcid 110114}">User Authentication</span> </td> <td> <span title="Codes: {http://nema.org/dicom/dcid 110122}">Login</span> </td> <td>E</td> <td>20-Jun 2013 23:41</td> <td>_0</td> <td> </td> </tr> </table> <blockquote> <p> <b>participant</b> </p> <p> <b>userId</b>: 95 </p> <p> <b>altId</b>: 601847123 </p> <p> <b>name</b>: Grahame Grieve </p> <p> <b>requestor</b>: true </p> <h3>Networks</h3> <table class="grid"> <tr> <td> <b>Identifier</b> </td> <td> <b>Type</b> </td> </tr> <tr> <td>127.0.0.1</td> <td>_2</td> </tr> </table> </blockquote> <h3>Sources</h3> <table class="grid"> <tr> <td> <b>Site</b> </td> <td> <b>Identifier</b> </td> <td> <b>Type</b> </td> </tr> <tr> <td>Cloud</td> <td>hl7connect.healthintersections.com.au</td> <td> <span title="{http://hl7.org/fhir/security-source-type 3}">Web Server</span> </td> </tr> </table> </div> </text> <event> <type> <coding> <system value="http://nema.org/dicom/dcid"/> <code value="110114"/> <display value="User Authentication"/> </coding> </type> <subtype> <coding> <system value="http://nema.org/dicom/dcid"/> <code value="110122"/> <display value="Login"/> </coding> </subtype> <action value="E"/> <dateTime value="2013-06-20T23:41:23Z"/> <outcome value="0"/> </event> <participant> <userId value="95"/> <altId value="601847123"/> <name value="Grahame Grieve"/> <requestor value="true"/> <network> <identifier value="127.0.0.1"/> <type value="2"/> </network> </participant> <source> <site value="Cloud"/> <identifier value="hl7connect.healthintersections.com.au"/> <type> <system value="http://hl7.org/fhir/security-source-type"/> <code value="3"/> <display value="Web Server"/> </type> </source> </SecurityEvent>
JSON
Login example
{
"resourceType": "SecurityEvent",
"text": {
"status": "generated",
"div": "<div>\n <p>\n <b>Generated Narrative</b>\n </p>\n <h3>Events</h3>\n <table class=\"grid\">\n <tr>\n <td>\n <b>Type</b>\n </td>\n <td>\n <b>Subtype</b>\n </td>\n <td>\n <b>Action</b>\n </td>\n <td>\n <b>DateTime</b>\n </td>\n <td>\n <b>Outcome</b>\n </td>\n <td>\n <b>OutcomeDesc</b>\n </td>\n </tr>\n <tr>\n <td>\n <span title=\"Codes: {http://nema.org/dicom/dcid 110114}\">User Authentication</span>\n </td>\n <td>\n <span title=\"Codes: {http://nema.org/dicom/dcid 110122}\">Login</span>\n </td>\n <td>E</td>\n <td>20-Jun 2013 23:41</td>\n <td>_0</td>\n <td> </td>\n </tr>\n </table>\n <blockquote>\n <p>\n <b>participant</b>\n </p>\n <p>\n <b>userId</b>: 95\n </p>\n <p>\n <b>altId</b>: 601847123\n </p>\n <p>\n <b>name</b>: Grahame Grieve\n </p>\n <p>\n <b>requestor</b>: true\n </p>\n <h3>Networks</h3>\n <table class=\"grid\">\n <tr>\n <td>\n <b>Identifier</b>\n </td>\n <td>\n <b>Type</b>\n </td>\n </tr>\n <tr>\n <td>127.0.0.1</td>\n <td>_2</td>\n </tr>\n </table>\n </blockquote>\n <h3>Sources</h3>\n <table class=\"grid\">\n <tr>\n <td>\n <b>Site</b>\n </td>\n <td>\n <b>Identifier</b>\n </td>\n <td>\n <b>Type</b>\n </td>\n </tr>\n <tr>\n <td>Cloud</td>\n <td>hl7connect.healthintersections.com.au</td>\n <td>\n <span title=\"{http://hl7.org/fhir/security-source-type 3}\">Web Server</span>\n </td>\n </tr>\n </table>\n </div>"
},
"event": {
"type": {
"coding": [
{
"system": "http://nema.org/dicom/dcid",
"code": "110114",
"display": "User Authentication"
}
]
},
"subtype": [
{
"coding": [
{
"system": "http://nema.org/dicom/dcid",
"code": "110122",
"display": "Login"
}
]
}
],
"action": "E",
"dateTime": "2013-06-20T23:41:23Z",
"outcome": "0"
},
"participant": [
{
"userId": "95",
"altId": "601847123",
"name": "Grahame Grieve",
"requestor": true,
"network": {
"identifier": "127.0.0.1",
"type": "2"
}
}
],
"source": {
"site": "Cloud",
"identifier": "hl7connect.healthintersections.com.au",
"type": [
{
"system": "http://hl7.org/fhir/security-source-type",
"code": "3",
"display": "Web Server"
}
]
}
}
XML
Logout example (id = "example-logout")
<SecurityEvent xmlns="http://hl7.org/fhir"> <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"> <p> <b>Generated Narrative</b> </p> <h3>Events</h3> <table class="grid"> <tr> <td> <b>Type</b> </td> <td> <b>Subtype</b> </td> <td> <b>Action</b> </td> <td> <b>DateTime</b> </td> <td> <b>Outcome</b> </td> <td> <b>OutcomeDesc</b> </td> </tr> <tr> <td> <span title="Codes: {http://nema.org/dicom/dcid 110114}">User Authentication</span> </td> <td> <span title="Codes: {http://nema.org/dicom/dcid 110123}">Logout</span> </td> <td>E</td> <td>20-Jun 2013 23:46</td> <td>_0</td> <td> </td> </tr> </table> <blockquote> <p> <b>participant</b> </p> <p> <b>userId</b>: 95 </p> <p> <b>altId</b>: 601847123 </p> <p> <b>name</b>: Grahame Grieve </p> <p> <b>requestor</b>: true </p> <h3>Networks</h3> <table class="grid"> <tr> <td> <b>Identifier</b> </td> <td> <b>Type</b> </td> </tr> <tr> <td>127.0.0.1</td> <td>_2</td> </tr> </table> </blockquote> <h3>Sources</h3> <table class="grid"> <tr> <td> <b>Site</b> </td> <td> <b>Identifier</b> </td> <td> <b>Type</b> </td> </tr> <tr> <td>Cloud</td> <td>hl7connect.healthintersections.com.au</td> <td> <span title="{http://hl7.org/fhir/security-source-type 3}">Web Server</span> </td> </tr> </table> </div> </text> <event> <type> <coding> <system value="http://nema.org/dicom/dcid"/> <code value="110114"/> <display value="User Authentication"/> </coding> </type> <subtype> <coding> <system value="http://nema.org/dicom/dcid"/> <code value="110123"/> <display value="Logout"/> </coding> </subtype> <action value="E"/> <dateTime value="2013-06-20T23:46:41Z"/> <outcome value="0"/> </event> <participant> <userId value="95"/> <altId value="601847123"/> <name value="Grahame Grieve"/> <requestor value="true"/> <network> <identifier value="127.0.0.1"/> <type value="2"/> </network> </participant> <source> <site value="Cloud"/> <identifier value="hl7connect.healthintersections.com.au"/> <type> <system value="http://hl7.org/fhir/security-source-type"/> <code value="3"/> <display value="Web Server"/> </type> </source> </SecurityEvent>
JSON
Logout example
{
"resourceType": "SecurityEvent",
"text": {
"status": "generated",
"div": "<div>\n <p>\n <b>Generated Narrative</b>\n </p>\n <h3>Events</h3>\n <table class=\"grid\">\n <tr>\n <td>\n <b>Type</b>\n </td>\n <td>\n <b>Subtype</b>\n </td>\n <td>\n <b>Action</b>\n </td>\n <td>\n <b>DateTime</b>\n </td>\n <td>\n <b>Outcome</b>\n </td>\n <td>\n <b>OutcomeDesc</b>\n </td>\n </tr>\n <tr>\n <td>\n <span title=\"Codes: {http://nema.org/dicom/dcid 110114}\">User Authentication</span>\n </td>\n <td>\n <span title=\"Codes: {http://nema.org/dicom/dcid 110123}\">Logout</span>\n </td>\n <td>E</td>\n <td>20-Jun 2013 23:46</td>\n <td>_0</td>\n <td> </td>\n </tr>\n </table>\n <blockquote>\n <p>\n <b>participant</b>\n </p>\n <p>\n <b>userId</b>: 95\n </p>\n <p>\n <b>altId</b>: 601847123\n </p>\n <p>\n <b>name</b>: Grahame Grieve\n </p>\n <p>\n <b>requestor</b>: true\n </p>\n <h3>Networks</h3>\n <table class=\"grid\">\n <tr>\n <td>\n <b>Identifier</b>\n </td>\n <td>\n <b>Type</b>\n </td>\n </tr>\n <tr>\n <td>127.0.0.1</td>\n <td>_2</td>\n </tr>\n </table>\n </blockquote>\n <h3>Sources</h3>\n <table class=\"grid\">\n <tr>\n <td>\n <b>Site</b>\n </td>\n <td>\n <b>Identifier</b>\n </td>\n <td>\n <b>Type</b>\n </td>\n </tr>\n <tr>\n <td>Cloud</td>\n <td>hl7connect.healthintersections.com.au</td>\n <td>\n <span title=\"{http://hl7.org/fhir/security-source-type 3}\">Web Server</span>\n </td>\n </tr>\n </table>\n </div>"
},
"event": {
"type": {
"coding": [
{
"system": "http://nema.org/dicom/dcid",
"code": "110114",
"display": "User Authentication"
}
]
},
"subtype": [
{
"coding": [
{
"system": "http://nema.org/dicom/dcid",
"code": "110123",
"display": "Logout"
}
]
}
],
"action": "E",
"dateTime": "2013-06-20T23:46:41Z",
"outcome": "0"
},
"participant": [
{
"userId": "95",
"altId": "601847123",
"name": "Grahame Grieve",
"requestor": true,
"network": {
"identifier": "127.0.0.1",
"type": "2"
}
}
],
"source": {
"site": "Cloud",
"identifier": "hl7connect.healthintersections.com.au",
"type": [
{
"system": "http://hl7.org/fhir/security-source-type",
"code": "3",
"display": "Web Server"
}
]
}
}
XML
RESTful Operation (id = "example-rest")
<SecurityEvent xmlns="http://hl7.org/fhir"> <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"> <p> <b>Generated Narrative</b> </p> <h3>Events</h3> <table class="grid"> <tr> <td> <b>Type</b> </td> <td> <b>Subtype</b> </td> <td> <b>Action</b> </td> <td> <b>DateTime</b> </td> <td> <b>Outcome</b> </td> <td> <b>OutcomeDesc</b> </td> </tr> <tr> <td> <span title="Codes: {http://hl7.org/fhir/security-event-type rest}">Restful Operation</span> </td> <td> <span title="Codes: {http://hl7.org/fhir/restful-operation vread}">vread</span> </td> <td>R</td> <td>20-Jun 2013 23:42</td> <td>_0</td> <td> </td> </tr> </table> <blockquote> <p> <b>participant</b> </p> <p> <b>userId</b>: 95 </p> <p> <b>altId</b>: 601847123 </p> <p> <b>name</b>: Grahame Grieve </p> <p> <b>requestor</b>: true </p> </blockquote> <h3>Sources</h3> <table class="grid"> <tr> <td> <b>Site</b> </td> <td> <b>Identifier</b> </td> <td> <b>Type</b> </td> </tr> <tr> <td>Cloud</td> <td>hl7connect.healthintersections.com.au</td> <td> <span title="{http://hl7.org/fhir/security-source-type 3}">Web Server</span> </td> </tr> </table> <blockquote> <p> <b>object</b> </p> <p> <b>reference</b>: <a href="Patient/example/history/1">Patient/example/history/1</a> </p> <p> <b>type</b>: _2 </p> <p> <b>lifecycle</b>: _6 </p> </blockquote> </div> </text> <event> <type> <coding> <system value="http://hl7.org/fhir/security-event-type"/> <code value="rest"/> <display value="Restful Operation"/> </coding> </type> <subtype> <coding> <system value="http://hl7.org/fhir/restful-operation"/> <code value="vread"/> <display value="vread"/> </coding> </subtype> <action value="R"/> <dateTime value="2013-06-20T23:42:24Z"/> <outcome value="0"/> </event> <participant> <userId value="95"/> <altId value="601847123"/> <name value="Grahame Grieve"/> <requestor value="true"/> </participant> <source> <site value="Cloud"/> <identifier value="hl7connect.healthintersections.com.au"/> <type> <system value="http://hl7.org/fhir/security-source-type"/> <code value="3"/> <display value="Web Server"/> </type> </source> <object> <reference> <reference value="Patient/example/history/1"/> </reference> <type value="2"/> <lifecycle value="6"/> </object> </SecurityEvent>
JSON
RESTful Operation
{
"resourceType": "SecurityEvent",
"text": {
"status": "generated",
"div": "<div>\n <p>\n <b>Generated Narrative</b>\n </p>\n <h3>Events</h3>\n <table class=\"grid\">\n <tr>\n <td>\n <b>Type</b>\n </td>\n <td>\n <b>Subtype</b>\n </td>\n <td>\n <b>Action</b>\n </td>\n <td>\n <b>DateTime</b>\n </td>\n <td>\n <b>Outcome</b>\n </td>\n <td>\n <b>OutcomeDesc</b>\n </td>\n </tr>\n <tr>\n <td>\n <span title=\"Codes: {http://hl7.org/fhir/security-event-type rest}\">Restful Operation</span>\n </td>\n <td>\n <span title=\"Codes: {http://hl7.org/fhir/restful-operation vread}\">vread</span>\n </td>\n <td>R</td>\n <td>20-Jun 2013 23:42</td>\n <td>_0</td>\n <td> </td>\n </tr>\n </table>\n <blockquote>\n <p>\n <b>participant</b>\n </p>\n <p>\n <b>userId</b>: 95\n </p>\n <p>\n <b>altId</b>: 601847123\n </p>\n <p>\n <b>name</b>: Grahame Grieve\n </p>\n <p>\n <b>requestor</b>: true\n </p>\n </blockquote>\n <h3>Sources</h3>\n <table class=\"grid\">\n <tr>\n <td>\n <b>Site</b>\n </td>\n <td>\n <b>Identifier</b>\n </td>\n <td>\n <b>Type</b>\n </td>\n </tr>\n <tr>\n <td>Cloud</td>\n <td>hl7connect.healthintersections.com.au</td>\n <td>\n <span title=\"{http://hl7.org/fhir/security-source-type 3}\">Web Server</span>\n </td>\n </tr>\n </table>\n <blockquote>\n <p>\n <b>object</b>\n </p>\n <p>\n <b>reference</b>: \n <a href=\"Patient/example/history/1\">Patient/example/history/1</a>\n </p>\n <p>\n <b>type</b>: _2\n </p>\n <p>\n <b>lifecycle</b>: _6\n </p>\n </blockquote>\n </div>"
},
"event": {
"type": {
"coding": [
{
"system": "http://hl7.org/fhir/security-event-type",
"code": "rest",
"display": "Restful Operation"
}
]
},
"subtype": [
{
"coding": [
{
"system": "http://hl7.org/fhir/restful-operation",
"code": "vread",
"display": "vread"
}
]
}
],
"action": "R",
"dateTime": "2013-06-20T23:42:24Z",
"outcome": "0"
},
"participant": [
{
"userId": "95",
"altId": "601847123",
"name": "Grahame Grieve",
"requestor": true
}
],
"source": {
"site": "Cloud",
"identifier": "hl7connect.healthintersections.com.au",
"type": [
{
"system": "http://hl7.org/fhir/security-source-type",
"code": "3",
"display": "Web Server"
}
]
},
"object": [
{
"reference": {
"reference": "Patient/example/history/1"
},
"type": "2",
"lifecycle": "6"
}
]
}