Skip to content

Commit

Permalink
Experimenting with terminology integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
preston committed Mar 1, 2017
1 parent ad2a4e5 commit 2ac3e19
Show file tree
Hide file tree
Showing 13 changed files with 388 additions and 142 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# KNARTwork: The Community Knowledge Artifact Editor

KNARTwork is a multi-purpose web application for authoring, viewing, and transforming knowledge artifacts across popular specifications, with a strong slant towards healthcare-specific formats. By default, this application provides a purely standalone experience that does not use any standard-specific APIs (such as FHIR) or databases (such as RDBMS or NoSQL) systems, and may be used as-is by end users wanting to manage source documents as an out-of-band process using git/subversion, Dropbox, email etc. Server-side persistence options will be added as optional features as backend implementations emerge from the CDS community.
KNARTwork is a multi-purpose web application for authoring, viewing, and transforming knowledge artifact-like documents across popular specifications, primarily aimed healthcare-specific uses. By default, this application provides a purely standalone experience that does not use any standard-specific APIs (such as FHIR) or databases (such as RDBMS or NoSQL) systems, and may be used as-is by end users wanting to manage source documents as an out-of-band process using git/subversion, Dropbox, email etc. Server-side persistence options will be added as optional features as backend implementations emerge from the CDS community.

Community contributions -- especially those specific to evolving clinical standards -- are highly encouraged! Please submit your pull requests (PRs) via the community's public GitHub project page.

Expand Down
32 changes: 19 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,33 @@
"postinstall": "typings install"
},
"dependencies": {
"@angular/common": "^2.3.0",
"@angular/compiler": "^2.3.0",
"@angular/core": "^2.3.0",
"@angular/forms": "^2.3.0",
"@angular/http": "^2.3.0",
"@angular/platform-browser": "^2.3.0",
"@angular/platform-browser-dynamic": "^2.3.0",
"@angular/router": "^3.3.0",
"@angular/upgrade": "^2.3.0",
"@angular/common": "^2.4.8",
"@angular/compiler": "^2.4.8",
"@angular/core": "^2.4.8",
"@angular/forms": "^2.4.8",
"@angular/http": "^2.4.8",
"@angular/platform-browser": "^2.4.8",
"@angular/platform-browser-dynamic": "^2.4.8",
"@angular/router": "^3.4.8",
"@angular/upgrade": "^2.4.8",
"angular-in-memory-web-api": "^0.1.17",
"angular2-router-loader": "^0.3.5",
"angular2-toaster": "^1.1.0",
"bootstrap": "^3.3.7",
"concurrently": "^3.1.0",
"concurrently": "^3.3.0",
"core-js": "^2.4.1",
"grunt-contrib-compress": "^1.4.1",
"grunt-contrib-uglify": "^2.2.0",
"install": "^0.8.7",
"jquery": "^3.1.1",
"reflect-metadata": "^0.1.8",
"reflect-metadata": "^0.1.10",
"rxjs": "5.0.0-beta.12",
"source-map-loader": "^0.1.6",
"systemjs": "0.19.40",
"ts-loader": "^1.3.1",
"typescript": "^2.1.4",
"ts-loader": "^1.3.3",
"typescript": "^2.2.1",
"webpack": "^1.14.0",
"webpack-dev-server": "^1.16.3",
"zone.js": "^0.6.26"
},
"devDependencies": {
Expand Down
7 changes: 5 additions & 2 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';

import { SnomedctModule } from './app/modules/snomedct/snomedct.module';


const appRoutes: Routes = [
{ path: '', component: HomeComponent },
{ path: 'api', component: ApiComponent }
Expand All @@ -51,8 +54,8 @@ const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes);
routing,
FormsModule,
HttpModule,
ToasterModule
// ExportModule // Our own custom voodoo.
ToasterModule,
SnomedctModule // Our own custom voodoo.
],
declarations: [
AppComponent,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Component } from '@angular/core';

@Component({
selector: 'snomedct-browser',
template : '/snomedct-browser.html'
})
export class SnomedctBrowser {

}
10 changes: 10 additions & 0 deletions src/app/modules/snomedct/snomedct.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { NgModule } from '@angular/core';

import { SnomedctBrowser} from './components/snomedct-browser.component';

@NgModule({
declarations: [SnomedctBrowser]
})
export class SnomedctModule {

}
16 changes: 8 additions & 8 deletions src/app/views/home.pug
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,29 @@ toaster-container
button.btn.btn-lg("(click)"="createFromTemplate()")
span.glyphicon.glyphicon-plus
| Create a new knowledge artifact.
br
small
i ..or..
//- br
//- small
//- i ..or..
hr
div.text-center
h1
span.glyphicon.glyphicon-cloud
| Load from the web...
| Or load from the web...
.row
.col-sm-9.form-group
input.form-control(name="remote_url" type='text' "[(ngModel)]"="remoteUrl" placeholder="http://example.com/awesome-knart.xml")
.col-sm-3
button.btn.btn-default("(click)"="loadRemoteUrl()") Load it!
.col-sm-12
small
| Anywhere on the Internet, or even "inside the firewall"!
br
i ..or..
| Works "inside the firewall"!
//- br
//- i ..or..
hr
form.form
h1.text-center
span.glyphicon.glyphicon-folder-open
| Load a local file..
| Or load a local file..
.form-group
label Format
select.form-control#loader_type_select(name="documentType" "[(ngModel)]"="documentFormat")
Expand Down
1 change: 1 addition & 0 deletions src/app/views/snomedct-browser.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1 TODO
8 changes: 4 additions & 4 deletions typings/globals/core-js/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Generated by typings
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/be0ba281b67575b3b626a6bbb15b152add97244e/core-js/core-js.d.ts
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/3c56e866d6edd234416a92c3d35c15ccd7fe6b72/core-js/index.d.ts
declare type PropertyKey = string | number | symbol;

// #############################################################################################
Expand Down Expand Up @@ -872,7 +872,7 @@ declare namespace Reflect {

// #############################################################################################
// ECMAScript 7
// Modules: es7.array.includes, es7.string.at, es7.string.lpad, es7.string.rpad,
// Modules: es7.array.includes, es7.string.at, es7.string.pad-start, es7.string.pad-end,
// es7.object.to-array, es7.object.get-own-property-descriptors, es7.regexp.escape,
// es7.map.to-json, and es7.set.to-json
// #############################################################################################
Expand All @@ -883,8 +883,8 @@ interface Array<T> {

interface String {
at(index: number): string;
lpad(length: number, fillStr?: string): string;
rpad(length: number, fillStr?: string): string;
padStart(length: number, fillStr?: string): string;
padEnd(length: number, fillStr?: string): string;
}

interface ObjectConstructor {
Expand Down
6 changes: 3 additions & 3 deletions typings/globals/core-js/typings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"resolution": "main",
"tree": {
"src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/be0ba281b67575b3b626a6bbb15b152add97244e/core-js/core-js.d.ts",
"raw": "registry:dt/core-js#0.0.0+20160914114559",
"typings": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/be0ba281b67575b3b626a6bbb15b152add97244e/core-js/core-js.d.ts"
"src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/3c56e866d6edd234416a92c3d35c15ccd7fe6b72/core-js/index.d.ts",
"raw": "registry:dt/core-js#0.9.7+20161130133742",
"typings": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/3c56e866d6edd234416a92c3d35c15ccd7fe6b72/core-js/index.d.ts"
}
}
39 changes: 17 additions & 22 deletions typings/globals/jasmine/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,20 @@
// Generated by typings
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/9e778b38c214e52ef1718cc024c008cae2db605c/jasmine/jasmine.d.ts
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/4a8052290cc86a13f677cc25a5a9b82a64318b47/jasmine/index.d.ts
declare function describe(description: string, specDefinitions: () => void): void;
declare function fdescribe(description: string, specDefinitions: () => void): void;
declare function xdescribe(description: string, specDefinitions: () => void): void;

declare function it(expectation: string, assertion?: () => void, timeout?: number): void;
declare function it(expectation: string, assertion?: (done: DoneFn) => void, timeout?: number): void;
declare function fit(expectation: string, assertion?: () => void, timeout?: number): void;
declare function fit(expectation: string, assertion?: (done: DoneFn) => void, timeout?: number): void;
declare function xit(expectation: string, assertion?: () => void, timeout?: number): void;
declare function xit(expectation: string, assertion?: (done: DoneFn) => void, timeout?: number): void;

/** If you call the function pending anywhere in the spec body, no matter the expectations, the spec will be marked pending. */
declare function pending(reason?: string): void;

declare function beforeEach(action: () => void, timeout?: number): void;
declare function beforeEach(action: (done: DoneFn) => void, timeout?: number): void;
declare function afterEach(action: () => void, timeout?: number): void;
declare function afterEach(action: (done: DoneFn) => void, timeout?: number): void;

declare function beforeAll(action: () => void, timeout?: number): void;
declare function beforeAll(action: (done: DoneFn) => void, timeout?: number): void;
declare function afterAll(action: () => void, timeout?: number): void;
declare function afterAll(action: (done: DoneFn) => void, timeout?: number): void;

declare function expect(spy: Function): jasmine.Matchers;
Expand All @@ -36,7 +29,7 @@ interface DoneFn extends Function {
fail: (message?: Error|string) => void;
}

declare function spyOn(object: any, method: string): jasmine.Spy;
declare function spyOn<T>(object: T, method: keyof T): jasmine.Spy;

declare function runs(asyncMethod: Function): void;
declare function waitsFor(latchMethod: () => boolean, failureMessage?: string, timeout?: number): void;
Expand Down Expand Up @@ -183,6 +176,7 @@ declare namespace jasmine {
allowRespy(allow: boolean): void;
randomTests(): boolean;
randomizeTests(b: boolean): void;
clearReporters(): void;
}

interface FakeTimer {
Expand Down Expand Up @@ -370,13 +364,18 @@ declare namespace jasmine {
}

interface CustomReporterResult {
description: string,
failedExpectations?: FailedExpectation[],
fullName: string,
id: string;
passedExpectations?: PassedExpectation[],
pendingReason?: string;
status?: string;
description: string,
failedExpectations?: FailedExpectation[],
fullName: string,
id: string;
passedExpectations?: PassedExpectation[],
pendingReason?: string;
status?: string;
}

interface RunDetails {
failedExpectations: ExpectationResult[];
order: jasmine.Order
}

interface CustomReporter {
Expand All @@ -385,7 +384,7 @@ declare namespace jasmine {
specStarted?(result: CustomReporterResult): void;
specDone?(result: CustomReporterResult): void;
suiteDone?(result: CustomReporterResult): void;
jasmineDone?(): any;
jasmineDone?(runDetails: RunDetails): void;
}

interface Runner {
Expand Down Expand Up @@ -490,7 +489,6 @@ declare namespace jasmine {
calls: Calls;
mostRecentCall: { args: any[]; };
argsForCall: any[];
wasCalled: boolean;
}

interface SpyAnd {
Expand Down Expand Up @@ -550,10 +548,7 @@ declare namespace jasmine {
finished: boolean;
result: any;
messages: any;
runDetails: {
failedExpectations: ExpectationResult[];
order: jasmine.Order
}
runDetails: RunDetails

new (): any;

Expand Down
6 changes: 3 additions & 3 deletions typings/globals/jasmine/typings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"resolution": "main",
"tree": {
"src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/9e778b38c214e52ef1718cc024c008cae2db605c/jasmine/jasmine.d.ts",
"raw": "registry:dt/jasmine#2.5.0+20161025102649",
"typings": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/9e778b38c214e52ef1718cc024c008cae2db605c/jasmine/jasmine.d.ts"
"src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/4a8052290cc86a13f677cc25a5a9b82a64318b47/jasmine/index.d.ts",
"raw": "registry:dt/jasmine#2.5.0+20170207112528",
"typings": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/4a8052290cc86a13f677cc25a5a9b82a64318b47/jasmine/index.d.ts"
}
}
Loading

0 comments on commit 2ac3e19

Please sign in to comment.