forked from fastenhealth/fasten-onprem
-
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.
started working on DICOM support (stored in Media object) (fastenheal…
- Loading branch information
Showing
32 changed files
with
729 additions
and
27 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 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
77 changes: 77 additions & 0 deletions
77
frontend/src/app/components/fhir/datatypes/dicom/dicom.component.html
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,77 @@ | ||
<div class="row"> | ||
<div class="col text-center"> | ||
<div class="btn-group" role="group" aria-label="Basic example"> | ||
<button ngbTooltip="scroll layers" type="button" (click)="onChangeTool('Scroll')" class="btn btn-secondary pd-x-25" [class.active]="selectedTool == 'Scroll'"><i class="fas fa-bars"></i></button> | ||
<button ngbTooltip="zoom and pan" type="button" (click)="onChangeTool('ZoomAndPan')" class="btn btn-secondary pd-x-25" [class.active]="selectedTool == 'ZoomAndPan'"><i class="fas fa-search"></i></button> | ||
<button ngbTooltip="change brightness" type="button" (click)="onChangeTool('WindowLevel')" class="btn btn-secondary pd-x-25" [class.active]="selectedTool == 'WindowLevel'"><i class="fas fa-adjust"></i></button> | ||
<button ngbTooltip="add measurements" type="button" (click)="onChangeTool('Draw')" class="btn btn-secondary pd-x-25" [class.active]="selectedTool == 'Draw'"><i class="fas fa-edit"></i></button> | ||
</div> | ||
|
||
<div class="btn-group" role="group" aria-label="Basic example"> | ||
<button ngbTooltip="toggle orientation" type="button" (click)="toggleOrientation()" class="btn btn-secondary pd-x-25"><i class="fas fa-compress"></i></button> | ||
</div> | ||
|
||
<div class="btn-group" role="group" aria-label="Info"> | ||
<button ngbTooltip="show info" type="button" (click)="openTagsModal(tagsModal)" class="btn btn-secondary pd-x-25"><i class="fas fa-info"></i></button> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="dwv"> | ||
<!-- <mat-progress-bar mode="determinate" value="{{ loadProgress }}"></mat-progress-bar>--> | ||
<!-- <div class="button-row">--> | ||
<!-- <mat-button-toggle-group name="tool" [disabled]="!dataLoaded">--> | ||
<!-- <mat-button-toggle value="{{ tool }}" color="primary"--> | ||
<!-- *ngFor="let tool of toolNames"--> | ||
<!-- title="{{ tool }}"--> | ||
<!-- (click)="onChangeTool(tool)"--> | ||
<!-- [disabled]="!dataLoaded || !canRunTool(tool)">--> | ||
<!-- <mat-icon>{{ getToolIcon(tool) }}</mat-icon>--> | ||
<!-- </mat-button-toggle>--> | ||
<!-- </mat-button-toggle-group>--> | ||
<div id="layerGroup0" class="layerGroup pd-t-10"> | ||
<div id="dropBox"></div> | ||
</div> | ||
</div> | ||
|
||
|
||
<ng-template #tagsModal let-modal> | ||
<div class="modal-header"> | ||
<h4 class="modal-title" id="modal-basic-title">DICOM tags</h4> | ||
|
||
<button type="button" class="close" aria-label="Close" (click)="modal.dismiss('Cross click')"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<div class="table-responsive"> | ||
<table class="table table-striped mg-b-0"> | ||
<thead> | ||
<tr> | ||
<th>ID</th> | ||
<th>Name</th> | ||
<th>Value</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr *ngFor="let row of visibleMetaData"> | ||
<th scope="row">{{row.id}}</th> | ||
<td>{{row.name}}</td> | ||
<td>{{row.value}}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<ngb-pagination | ||
class="mr-auto" | ||
[collectionSize]="metaData.length" | ||
[(page)]="tagsPage" | ||
[pageSize]="tagsPageSize" | ||
(pageChange)="refreshTags()" | ||
> | ||
</ngb-pagination> | ||
<button type="button" class="btn btn-outline-dark" (click)="modal.close('Close click')">Close</button> | ||
</div> | ||
</ng-template> |
22 changes: 22 additions & 0 deletions
22
frontend/src/app/components/fhir/datatypes/dicom/dicom.component.scss
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,22 @@ | ||
/* Layers */ | ||
//.layerGroup { | ||
// position: relative; | ||
// padding: 0; | ||
// display: flex; | ||
// justify-content: center; | ||
// height: 90%; | ||
//} | ||
//.layer { | ||
// position: absolute; | ||
// pointer-events: none; | ||
//} | ||
|
||
#dwv { | ||
width: 100%; | ||
height: 700px; | ||
} | ||
|
||
#layerGroup0 { | ||
//width: 90%; | ||
height: 90%; | ||
} |
23 changes: 23 additions & 0 deletions
23
frontend/src/app/components/fhir/datatypes/dicom/dicom.component.spec.ts
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,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { DicomComponent } from './dicom.component'; | ||
|
||
describe('DicomComponent', () => { | ||
let component: DicomComponent; | ||
let fixture: ComponentFixture<DicomComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ DicomComponent ] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(DicomComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.