-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding aet model, starting to add study components end services, UI: …
…Renewing Study page #1802
- Loading branch information
Showing
16 changed files
with
395 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
export interface J4careDateTime { | ||
FullYear:string; | ||
Month:string; | ||
Date:string; | ||
Hours:string; | ||
Minutes:string; | ||
Seconds:string; | ||
dateObject?:Date; | ||
} | ||
export type J4careDateTimeMode = "range" | "leftOpen" | "rightOpen" | "single"; | ||
|
||
export interface RangeObject { | ||
firstDateTime:J4careDateTime; | ||
secondDateTime:J4careDateTime; | ||
mode:J4careDateTimeMode; | ||
} | ||
|
||
export type StatisticsPage = "simple"|"detailed" | ||
|
||
export type FilterTag = "input"|"checkbox"|"select"|"modality"|"range-picker-limit"|"range-picker-time"|"range-picker"|"multi-select"; | ||
|
||
export type RangeUnit = "hour" | "day" | "week" | "month" | "year"; | ||
|
||
export class SelectDropdown { | ||
private _value:string; | ||
private _text:string; | ||
private _label:string; | ||
private _title?:string; | ||
constructor(value:any,text:string, title?:string){ | ||
this._value = value; | ||
this._text = text; | ||
this._label = text; | ||
this._title = title; | ||
} | ||
|
||
get value(): string { | ||
return this._value; | ||
} | ||
|
||
set value(value: string) { | ||
this._value = value; | ||
} | ||
|
||
get text(): string { | ||
return this._text; | ||
} | ||
|
||
set text(value: string) { | ||
this._text = value; | ||
} | ||
|
||
get label(): string { | ||
return this._label; | ||
} | ||
|
||
set label(value:string) { | ||
this._label = value; | ||
} | ||
|
||
get title(): string { | ||
return this._title; | ||
} | ||
|
||
set title(value: string) { | ||
this._title = value; | ||
} | ||
} | ||
export type Quantity = "count"|"size"|string; | ||
export type StudyDateMode = "StudyReceiveDateTime"|"StudyDate"|string; | ||
export type FilterSchema = FilterSchemaElement[]; | ||
|
||
export interface FilterSchemaElement { | ||
tag:FilterTag; | ||
filterKey:string; | ||
type?:"text"|"number"; | ||
text?:string; | ||
description?:string; | ||
placeholder?:string; | ||
showStar?:boolean; | ||
maxSelectedLabels?:number; | ||
options?:SelectDropdown[] | ||
} | ||
|
||
export type StudyTab = "study" | "patient" | "mwl" | "diff"; | ||
export type AccessLocation = "internal" | "external"; |
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,102 @@ | ||
import * as _ from "lodash"; | ||
|
||
export class Aet { | ||
private _dicomAETitle:string; | ||
private _dicomDescription:string; | ||
private _dcmAcceptedUserRole:string[]; | ||
private _dcmAllowDeletePatient:string; | ||
private _dcmAllowDeleteStudyPermanently:string; | ||
private _dicomApplicationCluster:string[]; | ||
private _dicomAssociationAcceptor:boolean; | ||
private _dicomAssociationInitiator:boolean; | ||
private _dicomNetworkConnection:any | ||
|
||
constructor(aetObject){ | ||
[ | ||
"dicomAETitle", | ||
"dicomDescription", | ||
"dcmAcceptedUserRole", | ||
"dcmAllowDeletePatient", | ||
"dcmAllowDeleteStudyPermanently", | ||
"dicomApplicationCluster", | ||
"dicomAssociationAcceptor", | ||
"dicomAssociationInitiator", | ||
"dicomNetworkConnection" | ||
].forEach(attr=>{ | ||
if(_.hasIn(aetObject,attr)) | ||
this[attr] = aetObject[attr]; | ||
}); | ||
} | ||
|
||
get dcmAcceptedUserRole(): string[] { | ||
return this._dcmAcceptedUserRole; | ||
} | ||
|
||
set dcmAcceptedUserRole(value: string[]) { | ||
this._dcmAcceptedUserRole = value; | ||
} | ||
|
||
get dcmAllowDeletePatient(): string { | ||
return this._dcmAllowDeletePatient; | ||
} | ||
|
||
set dcmAllowDeletePatient(value: string) { | ||
this._dcmAllowDeletePatient = value; | ||
} | ||
|
||
get dcmAllowDeleteStudyPermanently(): string { | ||
return this._dcmAllowDeleteStudyPermanently; | ||
} | ||
|
||
set dcmAllowDeleteStudyPermanently(value: string) { | ||
this._dcmAllowDeleteStudyPermanently = value; | ||
} | ||
|
||
get dicomAETitle(): string { | ||
return this._dicomAETitle; | ||
} | ||
|
||
set dicomAETitle(value: string) { | ||
this._dicomAETitle = value; | ||
} | ||
|
||
get dicomDescription(): string { | ||
return this._dicomDescription; | ||
} | ||
|
||
set dicomDescription(value: string) { | ||
this._dicomDescription = value; | ||
} | ||
|
||
get dicomApplicationCluster(): string[] { | ||
return this._dicomApplicationCluster; | ||
} | ||
|
||
set dicomApplicationCluster(value: string[]) { | ||
this._dicomApplicationCluster = value; | ||
} | ||
|
||
get dicomAssociationAcceptor(): boolean { | ||
return this._dicomAssociationAcceptor; | ||
} | ||
|
||
set dicomAssociationAcceptor(value: boolean) { | ||
this._dicomAssociationAcceptor = value; | ||
} | ||
|
||
get dicomAssociationInitiator(): boolean { | ||
return this._dicomAssociationInitiator; | ||
} | ||
|
||
set dicomAssociationInitiator(value: boolean) { | ||
this._dicomAssociationInitiator = value; | ||
} | ||
|
||
get dicomNetworkConnection(): any { | ||
return this._dicomNetworkConnection; | ||
} | ||
|
||
set dicomNetworkConnection(value: any) { | ||
this._dicomNetworkConnection = value; | ||
} | ||
} |
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,2 @@ | ||
export class InstanceDicom { | ||
} |
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,3 @@ | ||
export class PatientDicom { | ||
|
||
} |
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,2 @@ | ||
export class SeriesDicom { | ||
} |
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,2 @@ | ||
export class StudyDicom { | ||
} |
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,17 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'study-tab', | ||
template:` | ||
<ul class="nav nav-tabs" role="tablist"> | ||
<li [permission]="{id:'tab-study-study',param:'visible'}" role="presentation" routerLinkActive="active"><a role="tab" routerLink="/study/study" routerLinkActive="active">Study</a></li> | ||
<li [permission]="{id:'tab-study-patient',param:'visible'}" role="presentation" routerLinkActive="active"><a role="tab" routerLink="/study/patient" routerLinkActive="active">Patient</a></li> | ||
<li [permission]="{id:'tab-study-mwl',param:'visible'}" role="presentation" routerLinkActive="active"><a role="tab" routerLink="/study/mwl" routerLinkActive="active">MWL</a></li> | ||
<li [permission]="{id:'tab-study-diff',param:'visible'}" role="presentation" routerLinkActive="active"><a role="tab" routerLink="/study/diff" routerLinkActive="active">DIFF</a></li> | ||
</ul> | ||
` | ||
}) | ||
export class StudyTabComponent{ | ||
|
||
constructor() { } | ||
} |
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,6 @@ | ||
<div class="main_content white_design"> | ||
<study-tab></study-tab> | ||
<div class="tab-content"> | ||
<h2>Studies {{tab}}</h2> | ||
</div> | ||
</div> |
Empty file.
41 changes: 41 additions & 0 deletions
41
dcm4chee-arc-ui2/src/app/study/study/study.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,41 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { StudyComponent } from './study.component'; | ||
import {StudyTabComponent} from "../study-tab.component"; | ||
import {PermissionDirective} from "../../helpers/permissions/permission.directive"; | ||
import {ActivatedRoute} from "@angular/router"; | ||
import {AeListService} from "../../configuration/ae-list/ae-list.service"; | ||
import {StudyService} from "./study.service"; | ||
import {PermissionService} from "../../helpers/permissions/permission.service"; | ||
import {AppService} from "../../app.service"; | ||
import {HttpModule} from "@angular/http"; | ||
import {RouterTestingModule} from "@angular/router/testing"; | ||
|
||
describe('StudyComponent', () => { | ||
let component: StudyComponent; | ||
let fixture: ComponentFixture<StudyComponent>; | ||
|
||
/* beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ StudyComponent, StudyTabComponent, PermissionDirective], | ||
providers:[ | ||
{provide:ActivatedRoute, useClass:StudyComponentDependenc}, | ||
{provide:StudyService, useClass:StudyComponentDependenc}, | ||
{provide:AppService, useClass:StudyComponentDependenc}, | ||
{provide:PermissionService, useClass:StudyComponentDependenc} | ||
], | ||
imports:[RouterTestingModule] | ||
}) | ||
.compileComponents(); | ||
})); | ||
beforeEach(() => { | ||
fixture = TestBed.createComponent(StudyComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
});*/ | ||
}); |
Oops, something went wrong.