new SanteEMRWrapper()
SanteEMR Binding Class
This is a wrapper class that encapsulates the functionality of SanteEMR
- Source:
Methods
analyzeVisit(encounter) → {Array}
Perform an analysis of the actions in the {@link:encounter} and return the detected issues
Parameters:
Name | Type | Description |
---|---|---|
encounter |
PatientEncounter | The encounter containing data to be analysed |
- Source:
Returns:
The array of detected issues
- Type
- Array
patientHasOpenEncounter(patient)
Determines whether the patient has an open encounter or not
Parameters:
Name | Type | Description |
---|---|---|
patient |
Patient | The patient which is supposed to have the open encounter |
- Source:
Returns:
The updated patient with a populated tag if the encounter is open
resolveSummaryTemplate(templateId) → {String}
Resolve the summary template (one line summary) for the template
Parameters:
Name | Type | Description |
---|---|---|
templateId |
string | The template mnemonic to resolve the summary for |
- Source:
Returns:
The location of the summary template
- Type
- String
resolveTemplateIcon(templateId)
Resolves the template icon for the specified act/entity template
Parameters:
Name | Type | Description |
---|---|---|
templateId |
string | The template mnemonic to resolve the icon for |
- Source:
Returns:
The resolved icon
saveVisitAsync(encounter) → {PatientEncounter}
Save the encounter
Parameters:
Name | Type | Description |
---|---|---|
encounter |
PatientEncounter | The encounter that is to be saved |
- Source:
Returns:
The updated encounter
- Type
- PatientEncounter
startVisitAsync(templateId, carePathway, recordTargetId, fulfills, fulfillmentComponents, informantPtcpt) → {PatientEncounter}
Starts a visit given the input parameters provided
Parameters:
Name | Type | Description |
---|---|---|
templateId |
string | The visit template (encounter template) which is to be started, this dictates the input form and the structure of the visit |
carePathway |
string | The care pathway in which this visit fits (used for generating the CDSS actions) |
recordTargetId |
string | The identification of the record target to which the visit is intended |
fulfills |
ActRelationship | An array of {@link:ActRelationship} objects which represent the encounter in the care plan that this visit fulfills |
fulfillmentComponents |
ActRelationship | An array of {@link:ActRelationship} objects which reprensets the proposals from the stored care plan which this visit is fulfilling |
informantPtcpt |
ActParticipation | The informant / guardian on the act |
- Source:
Returns:
The constructed and saved {@link:PatientEncounter}
- Type
- PatientEncounter
(static) this.showCheckin(patientId)
Parameters:
Name | Type | Description |
---|---|---|
patientId |
string | The patient identifier to show the checkin modal for |
- Source:
(static) this.showDischarge(encounter, $timeout)
Parameters:
Name | Type | Description |
---|---|---|
encounter |
string | The encounter or encounter id to be discharged |
$timeout |
timeout | The scope timeout service |
- Source:
(static) this.showRequeue(encounter)
Parameters:
Name | Type | Description |
---|---|---|
encounter |
string | The encounter object to show the modal for |
- Source: