-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bugfix/LF-2769/typescript-update' into 'master'
Changed TypeScript definitions See merge request lfor/fhirpath.js!16
- Loading branch information
Showing
9 changed files
with
105 additions
and
100 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Model } from "../../src/fhirpath"; | ||
|
||
export const { | ||
choiceTypePaths, | ||
pathsDefinedElsewhere, | ||
type2Parent, | ||
path2Type | ||
}: Model; |
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,8 @@ | ||
import { Model } from "../../src/fhirpath"; | ||
|
||
export const { | ||
choiceTypePaths, | ||
pathsDefinedElsewhere, | ||
type2Parent, | ||
path2Type | ||
}: Model; |
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,8 @@ | ||
import { Model } from "../../src/fhirpath"; | ||
|
||
export const { | ||
choiceTypePaths, | ||
pathsDefinedElsewhere, | ||
type2Parent, | ||
path2Type | ||
}: Model; |
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,8 @@ | ||
import { Model } from "../../src/fhirpath"; | ||
|
||
export const { | ||
choiceTypePaths, | ||
pathsDefinedElsewhere, | ||
type2Parent, | ||
path2Type | ||
}: Model; |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,64 @@ | ||
export function compile( | ||
path: string | Path, | ||
model?: Model, | ||
options?: { | ||
resolveInternalTypes?: boolean | ||
traceFn?: (value: any, label: string) => void, | ||
userInvocationTable?: UserInvocationTable | ||
} | ||
): Compile; | ||
|
||
export function evaluate( | ||
fhirData: any, | ||
path: string | Path, | ||
context?: Context, | ||
model?: Model, | ||
options?: { | ||
resolveInternalTypes?: boolean, | ||
traceFn?: (value: any, label: string) => void | ||
userInvocationTable?: UserInvocationTable | ||
} | ||
): any[]; | ||
|
||
export function resolveInternalTypes(value: any): any; | ||
|
||
export function types(value: any): string[]; | ||
|
||
export function parse(expression: string): any; | ||
|
||
export const version :string; | ||
|
||
interface Path { | ||
base: string; | ||
expression: string; | ||
} | ||
|
||
interface Model { | ||
choiceTypePaths: { | ||
[path: string]: string[]; | ||
}; | ||
pathsDefinedElsewhere: { | ||
[path: string]: string; | ||
}; | ||
type2Parent: { | ||
[path: string]: string; | ||
}; | ||
path2Type: { | ||
[path: string]: string; | ||
}; | ||
} | ||
|
||
type Compile = (resource: any, context?: Context) => any[]; | ||
|
||
type Context = void | Record<string, any>; | ||
|
||
type UserInvocationTable = { | ||
[name: string]: { | ||
fn: Function, | ||
arity: { | ||
[numberOfParams: number]: Array<'Expr' | 'AnyAtRoot' | 'Identifier' | 'TypeSpecifier' | 'Any' | 'Integer' | 'Boolean' | 'Number' | 'String'> | ||
}, | ||
nullable?: boolean, | ||
internalStructures?: boolean | ||
} | ||
}; |