Skip to content

Instantly share code, notes, and snippets.

View angshu's full-sized avatar

angshuman sarkar angshu

  • Bangalore, India
View GitHub Profile
@angshu
angshu / radiologyStudies.html
Created July 27, 2021 16:01
radiologyStudies angular directive view
<section class="dashboard-section ng-scope pacs-orders">
<h2 class="section-title">{{::section | titleTranslate}}</h2>
<div>
<section ng-show="radiologyOrders">
<ul class="navigation-link-container clearfix">
<li ng-repeat="radiologyOrder in ::radiologyOrders">
<span class="tree-list-item" >
<a ng-click="openImage(radiologyOrder)" target="_blank">
{{::getLabel(radiologyOrder)}}
</a>
@angshu
angshu / gist:9afdf2e1635cb6c9610025750e5582c4
Created July 27, 2021 15:56
Custom Display Control for Radiology Studies
.directive('radiologyStudies', ['$http', '$q', 'appService', 'orderService', 'orderTypeService', 'spinner', 'messagingService','$window', function ($http, $q, appService, orderService, orderTypeService, spinner, messagingService, $window) {
var link = function ($scope) {
$scope.contentUrl = appService.configBaseUrl() + "/customDisplayControl/views/radiologyStudies.html";
var orderTypeUuid = orderTypeService.getOrderTypeUuid("Radiology Order");
var radiologyImageUrl = $scope.section.oviyamImageUrl || "/oviyam2/viewer.html?patientID={{patientID}}&studyUID={{studyUID}}";
var getOrders = function () {
var params = {
patientUuid: $scope.patient.uuid,
orderTypeUuid: orderTypeUuid,
includeObs: true
{
"name": "Vitals_demo",
"id": 4,
"uuid": "23ad0e07-43d3-41af-bb5b-fe919fd18296",
"defaultLocale": "en",
"controls": [
{
"type": "obsControl",
"label": {
"translationKey": "HEIGHT_4",
24-06-2021 20:51:10 [ERROR] VelocityMessagePreparator - Failed to create velocity engine Failed to initialize an instance of org.apache.velocity.runtime.log.Log4JLogChute with the current runtime configuration.
org.apache.velocity.exception.VelocityException: Failed to initialize an instance of org.apache.velocity.runtime.log.Log4JLogChute with the current runtime configuration.
at org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:206)
at org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:255)
at org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:795)
at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:250)
at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:107)
at org.openmrs.notification.mail.velocity.VelocityMessagePreparator.<init>(VelocityMessagePreparator.java:43)
at org.openmrs.api.context.Context.getMessagePreparator(Context.java:576)
at org.openmrs.api.context.Context.getMessageService(C
{
"resourceType": "Bundle",
"id": "Diagnostic-bundle-3952",
"meta": {
"lastUpdated": "2020-08-15T17:02:53.495+05:30",
"tag": [{
"system": "http://terminology.hl7.org/CodeSystem/v3-ObservationValue",
"code": "SUBSETTED",
"display": "Resource encoded in summary mode"
}
{
"resourceType": "Bundle",
"id": "Diagnostic-bundle-3952",
"meta": {
"lastUpdated": "2020-08-15T17:02:53.495+05:30",
"tag": [{
"system": "http://terminology.hl7.org/CodeSystem/v3-ObservationValue",
"code": "SUBSETTED",
"display": "Resource encoded in summary mode"
}
@angshu
angshu / gist:22f78c36c46b19cd71a92c4f4b5f9f62
Created August 14, 2020 06:44
Simple prescription bundle
{
"resourceType": "Bundle",
"id": "28a163a9-4eb4-40b8-adfb-5192d4beb63b",
"meta": {
"lastUpdated": "2018-08-01T00:00:00.000+05:30"
},
"identifier": {
"system": "https://www.max.in/bundle",
"value": "28a163a9-4eb4-40b8-adfb-5192d4beb63b"
},
{
"resourceType": "Bundle",
"id": "bdb98e40-7a91-45de-8a79-8c065205f366",
"meta": {
"lastUpdated": "2020-08-01T00:00:00.000+05:30"
},
"identifier": {
"system": "https://www.max.in/bundle",
"value": "bdb98e40-7a91-45de-8a79-8c065205f366"
},
{
"resourceType": "Bundle",
"id": "fc3b1148-d35a-4c7d-a8bf-f3073d33f519",
"meta": {
"lastUpdated": "2020-08-03T00:00:00.000+05:30"
},
"identifier": {
"system": "https://www.max.in/bundle",
"value": "fc3b1148-d35a-4c7d-a8bf-f3073d33f519"
},
{
"resourceType": "Bundle",
"id": "1eef1b16-f3c2-4e20-b32b-6e1edf103d5a",
"meta": {
"lastUpdated": "2020-07-09T15:32:26.605+05:30"
},
"identifier": {
"system": "https://www.max.in/bundle",
"value": "1eef1b16-f3c2-4e20-b32b-6e1edf103d5a"
},