Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
7f384c4
Initial support for mCSD.
lukeaduncan Jan 15, 2018
79719e0
Finished up adding in required queries for mCSD. Removed conformance…
lukeaduncan Jan 16, 2018
8d94675
Added in function to work as an mCSD update consumer when passed a UR…
lukeaduncan Jan 16, 2018
e2fdfde
Removed debugging statement.
lukeaduncan Jan 16, 2018
40abee8
Attempted change to get chained parameters to reference self.
lukeaduncan Jan 16, 2018
d30861f
Fixed self referential chained parameters with assistance from Ryan C…
lukeaduncan Jan 16, 2018
cf47157
Added in basic ATNA support for mCSD queries (for Practitioner so far…
lukeaduncan Jan 17, 2018
e02244d
Added in communication and communicationrequest resources.
lukeaduncan Jan 17, 2018
c780475
Added in simple echo plugin for mACM for communication request.
lukeaduncan Jan 17, 2018
57c94af
Fixed some content type handling as well as with _format.
lukeaduncan Jan 17, 2018
0b77116
Fixed typo in conversion method.
lukeaduncan Jan 17, 2018
bceb357
Fixed username in atna for mCSD and fixed typo in convert plugin.
lukeaduncan Jan 17, 2018
bad33b1
Updated ATNA message to be compliant for mCSD. Fixed up an issue wit…
lukeaduncan Jan 18, 2018
9f6ec56
Fixed history query to use the correct resource type.
lukeaduncan Jan 31, 2018
fd18fe1
Adding mCSD to CSD translator as a history
ashaban Apr 9, 2018
e7917ad
removing unused module
ashaban Apr 9, 2018
4aec672
Minor changes to variable name
ashaban Apr 9, 2018
01b9be6
Merge pull request #1 from ashaban/master
lukeaduncan May 11, 2018
f2f7caa
Fixed typo in location partOf query.
lukeaduncan Jun 11, 2018
a1b0372
Updated server to allow multiple databases by URL which is saved in t…
lukeaduncan Jun 12, 2018
a53b317
Updated server to allow multiple databases by URL which is saved in t…
lukeaduncan Jun 12, 2018
1ec565b
Merge branch 'master' of github.com:intrahealth/hearth
lukeaduncan Jun 12, 2018
1f7b149
Fixed relation links to include the database name in the URL when it …
lukeaduncan Jun 21, 2018
e132c3d
Added in $hierarchy operation for Location to return all the children…
lukeaduncan Jun 22, 2018
6638aeb
Added in operation to do the reverse order of . (i.e. to return all…
lukeaduncan Jun 22, 2018
c5c8eb3
Updated and operations to also return the requested/starting Location.
lukeaduncan Jun 22, 2018
cf86abb
Updated hierarchy/parent operation to add an additional field to the …
lukeaduncan Jun 25, 2018
cd29894
Updated matching queue to allow a list of databses to create workers …
lukeaduncan Jun 25, 2018
6c513b8
Added in the allowDiskUse option for the hiearchy aggregation.
lukeaduncan Jun 27, 2018
ee4b8bf
Updated hierarchy/parents operation for Location. Instead of using a…
lukeaduncan Jul 11, 2018
df9a54f
Added _tag to Location for queries.
lukeaduncan Jul 24, 2018
075e13f
Updated dependencies.
lukeaduncan Aug 29, 2018
7765333
Further dependency updates.
lukeaduncan Aug 29, 2018
2a9a8d1
push to dockerhub script
citizenrich Oct 13, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions dockerhub.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -ex

# automate tagging with the short commit hash
docker build --no-cache -t intrahealth/hearth:$(git rev-parse --short HEAD) .
docker tag intrahealth/hearth:$(git rev-parse --short HEAD) intrahealth/hearth:latest
docker push intrahealth/hearth:$(git rev-parse --short HEAD)
docker push intrahealth/hearth:latest
44 changes: 43 additions & 1 deletion lib/atna-audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const ATNAAuditConfig = require('./config').getConf('atnaAudit')
let connDetail = {
interface: ATNAAuditConfig.interface,
host: ATNAAuditConfig.host,
port: ATNAAuditConfig.port
port: ATNAAuditConfig.port,
options: {}
}

if (ATNAAuditConfig.certOptions.key) {
Expand Down Expand Up @@ -110,6 +111,47 @@ exports.buildPDQmAuditMsg = (ctx) => {
return syslog
}

exports.buildmCSDAuditMsg = (ctx, transaction, actor) => {
// event
var eventID = new ATNA.construct.Code(110112, 'Query', 'DCM')
var typeCode = new ATNA.construct.Code(transaction, 'Mobile Care Services Discovery '+actor+' Query', 'IHE Transactions')
var eIdent = new ATNA.construct.EventIdentification(ATNA.constants.EVENT_ACTION_EXECUTE, new Date(), ATNA.constants.OUTCOME_SUCCESS, eventID, typeCode)

var user = ctx.authenticatedUser.email;
// Active Participant - System
var sysRoleCode = new ATNA.construct.Code(110153, 'Source', 'DCM')
var sysParticipant = new ATNA.construct.ActiveParticipant(user, '', false, ctx.requestorIp, ATNA.constants.NET_AP_TYPE_IP, [sysRoleCode])

// Active Participant - User
var userRoleCodeDef = new ATNA.construct.Code(110152, 'DCM', 'Destination')
var userParticipant = new ATNA.construct.ActiveParticipant(user, '', true, null, null, [userRoleCodeDef])

// Audit Source
var sourceTypeCode = new ATNA.construct.Code(ATNA.constants.AUDIT_SRC_TYPE_WEB_SERVER, '', '')
var sourceIdent = new ATNA.construct.AuditSourceIdentification(null, ctx.authenticatedUser, sourceTypeCode)

// Participant Object
var objIdTypeCode = new ATNA.construct.Code(transaction, 'Mobile Care Services Discovery '+actor+' Query', 'IHE Transactions')
var participantObj = new ATNA.construct.ParticipantObjectIdentification(
ctx.fullUrl,
ATNA.constants.OBJ_TYPE_SYS_OBJ,
ATNA.constants.OBJ_TYPE_CODE_ROLE_QUERY,
null,
null,
objIdTypeCode,
null,
new Buffer(ctx.fullUrl).toString('base64')
)

var audit = new ATNA.construct.AuditMessage(eIdent, [sysParticipant, userParticipant], [participantObj], [sourceIdent])
var xml = audit.toXML()

const syslog = ATNA.construct.wrapInSyslog(xml)

return syslog
}


exports.sendAuditEvent = (msg, callback) => {
if (!ATNAAuditConfig.enabled) {
return
Expand Down
Loading