-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'epic-medication-enhancements-and-mar' into epic-medicat…
…ion-enhancements-and-mar-2
- Loading branch information
Showing
454 changed files
with
17,308 additions
and
9,422 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"humao.rest-client", | ||
"streetsidesoftware.code-spell-checker", | ||
"styled-components.vscode-styled-components" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
sql: | | ||
SELECT | ||
id, | ||
topic, | ||
payload->>'resource' AS resource, | ||
ROUND(EXTRACT(EPOCH FROM (NOW() - created_at)) / 60)::text AS duration_minutes | ||
ROUND(EXTRACT(EPOCH FROM (CURRENT_TIMESTAMP - created_at)) / 60)::text AS duration_minutes | ||
FROM fhir.jobs | ||
WHERE status = 'Queued' | ||
AND NOW() - created_at > INTERVAL '15 minutes'; | ||
AND CURRENT_TIMESTAMP - created_at > INTERVAL '15 minutes' | ||
AND topic != 'fhir.resolver' | ||
ORDER BY created_at ASC | ||
send: | ||
- target: external | ||
id: default | ||
subject: '[Tamanu Alert] Long queued FHIR jobs ({{ hostname }})' | ||
template: | | ||
<p>Server: {{ hostname }}</p> | ||
<p>Alert: {{ filename }}</p> | ||
<h1>Long queued FHIR jobs detected</h1> | ||
<ul> | ||
{% for row in rows | slice(end=5) %} | ||
<li><b>{{row.resource}}</> ID: <b>{{ row.id }}</b> - Duration: <i>{{ row.duration_minutes }} minutes</i></li> | ||
{% endfor %} | ||
{% if rows | length > 5 %} | ||
<li>... and {{ rows | length - 5 }} more</li> | ||
{% endif %} | ||
</ul> | ||
<p>For more information, please check the logs.</p> | ||
- Server: {{ hostname }} | ||
- Alert: {{ filename }} | ||
{% for row in rows | slice(end=5) %} | ||
- **{{ row.topic }}** {{row.resource}} ({{ row.id }}) for {{ row.duration_minutes }} minutes | ||
{% endfor %} | ||
{% if rows | length > 5 %} | ||
- ... and {{ rows | length - 5 }} more | ||
{% endif %} |
Oops, something went wrong.