-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'use-fhir-questionnaire' of https://github.com/beda-soft…
…ware/sdc-ide into 69-use-fhir-questionnaire
- Loading branch information
Showing
42 changed files
with
880 additions
and
538 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
export const baseURL = | ||
(window as any).BASE_URL === '{{BASE_URL}}' | ||
? 'http://localhost:8080/' | ||
: (window as any).BASE_URL; | ||
export const juteURL = | ||
(window as any).JUTE_URL === '{{JUTE_URL}}' | ||
? 'http://localhost:8090/' | ||
: (window as any).JUTE_URL; | ||
const envs = { | ||
baseURL: ['BASE_URL', 'http://localhost:8080'], | ||
juteURL: ['JUTE_URL', 'http://localhost:8099'], | ||
aiQuestionnaireBuilderUrl: ['AI_BUILDER_URL', 'http://localhost:3002'], | ||
fhirpathMappingUrl: ['FHIRPATHMAPPING_URL', 'http://localhost:8091'], | ||
fhirMappingLanguageUrl: ['FHIRMAPPING_URL','http://localhost:8084/matchboxv3/fhir'] | ||
} | ||
|
||
export const aiQuestionnaireBuilderUrl = 'https://builder.emr.beda.software'; | ||
// export const aiQuestionnaireBuilderUrl = 'http://localhost:3002'; | ||
export const fhirpathMappingUrl = 'https://fhirpathmapper.emr.beda.software'; | ||
// export const fhirpathMappingUrl = 'http://localhost:8091'; | ||
export const configuration:Record<keyof typeof envs,string> = {} as any; | ||
|
||
const globalConfig = (window as any) | ||
|
||
Object.keys(envs).forEach((key) => { | ||
const [globalKey,defaultValue] = envs[key]; | ||
if(globalConfig[globalKey] == `{{${globalKey}}}`){ | ||
configuration[key] = defaultValue; | ||
} else { | ||
configuration[key] = globalConfig[globalKey]; | ||
} | ||
}) | ||
console.log(configuration) |
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,33 @@ | ||
@import 'src/styles/colors'; | ||
|
||
.title { | ||
display: flex; | ||
line-height: 32px; | ||
margin-bottom: 3px; | ||
} | ||
|
||
.container { | ||
width: 100%; | ||
height: 100%; | ||
overflow: auto; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.evenContainer { | ||
background-color: $base-light-color; | ||
} | ||
|
||
.oddContainer { | ||
background-color: $base-surface-color; | ||
} | ||
|
||
.content { | ||
flex: 1; | ||
padding: 20px; | ||
overflow-y: auto; | ||
} | ||
|
||
.boxHeader { | ||
position: relative; | ||
} |
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 classNames from 'classnames'; | ||
|
||
import s from './Cell.module.scss'; | ||
|
||
interface CellProps extends React.HTMLAttributes<HTMLDivElement> { | ||
title?: string; | ||
even?: boolean; | ||
} | ||
|
||
export function Cell({ title, children, even }: CellProps) { | ||
const isEven = even ?? false; | ||
|
||
return ( | ||
<div className={classNames(s.container, isEven ? s.evenContainer : s.oddContainer)}> | ||
<div className={s.content}> | ||
<div className={s.boxHeader}> | ||
<h2 className={s.title}>{title}</h2> | ||
</div> | ||
{children} | ||
</div> | ||
</div> | ||
); | ||
} |
74 changes: 0 additions & 74 deletions
74
web/src/components/ExpandableElement/ExpandableElement.module.scss
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
web/src/components/ExpandableRow/ExpandableRow.module.scss
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
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
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
Oops, something went wrong.