Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.git
node_modules
logs
databaseData
15 changes: 15 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Set to true to add reviewers to pull requests
addReviewers: true

# Set to true to add assignees to pull requests
addAssignees: false

# A list of reviewers to be added to pull requests (GitHub user name)
reviewers:
- zacharyrobin
- kierk
- KeeyanGhoreshi
- smalho01

# A number of reviewers added to the pull request, Set to 0 to add all reviewers
numberOfReviewers: 0
22 changes: 22 additions & 0 deletions .github/workflows/ForkSync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Sync Fork

on:
schedule:
- cron: '30 14 * * 1' # every Monday at 14:30 UCT
workflow_dispatch: # on button click for manual testing

jobs:
sync:

runs-on: ubuntu-latest

steps:
- uses: tgymnich/fork-sync@v1.4 #1.4 is stable but may need to be updated
with:
owner: HL7-DaVinci
base: master # Upstream
head: master # local
ignore_fail: true
auto_merge: false
pr_title: Fork Auto Sync
pr_message: Upstream repository has been updated - Please review changes
2 changes: 1 addition & 1 deletion .github/workflows/docker-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
with:
context: .
push: true
tags: smalho01234/dtr:latest
tags: codexrems/dtr:REMSvlatest
43 changes: 26 additions & 17 deletions src/components/QuestionnaireForm/QuestionnaireForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1010,17 +1010,6 @@ export default class QuestionnaireForm extends Component {
}

// For HIMSS Demo with Mettle always use GCS as payor info
const insurer = {
resourceType: "Organization",
id: "org1234",
name: "GCS",
identifier: [
{
system: "urn:ietf:rfc:3986",
value: "2.16.840.1.113883.13.34.110.1.150.2"
}
]
};
const managingOrg = {
resourceType: "Organization",
id: "org1111",
Expand Down Expand Up @@ -1064,7 +1053,6 @@ export default class QuestionnaireForm extends Component {
if (priorAuthBundle && this.isPriorAuthBundleValid(priorAuthBundle)) {
priorAuthBundle.entry.unshift({ resource: managingOrg });
priorAuthBundle.entry.unshift({ resource: facility });
priorAuthBundle.entry.unshift({ resource: insurer });
priorAuthBundle.entry.unshift({ resource: this.props.deviceRequest });
priorAuthBundle.entry.unshift({ resource: qr });

Expand Down Expand Up @@ -1096,9 +1084,6 @@ export default class QuestionnaireForm extends Component {
// TODO: make this organization
reference: this.makeReference(priorAuthBundle, "Practitioner")
},
insurer: {
reference: this.makeReference(priorAuthBundle, "Organization")
},
facility: {
reference: this.makeReference(priorAuthBundle, "Location")
},
Expand Down Expand Up @@ -1177,6 +1162,19 @@ export default class QuestionnaireForm extends Component {
}
]
};

const signature = {
resourceType: "Signature",
type: [
{
system: "urn:iso-astm:E1762-95:2013",
code: "1.2.840.10065.1.12.1.14",
display: "Source Signature"
}
],
when: new Date(Date.now()).toISOString(),
who: this.makeReference(priorAuthBundle, "Practitioner")
}
var sequence = 1;
priorAuthBundle.entry.forEach(function (entry, index) {
if (entry.resource.resourceType == "Condition") {
Expand All @@ -1186,8 +1184,19 @@ export default class QuestionnaireForm extends Component {
});
}
});
console.log(priorAuthClaim);

priorAuthBundle.timestamp = new Date(Date.now()).toISOString()
priorAuthBundle.language = "en";
priorAuthBundle.id = shortid.generate();
priorAuthBundle.meta = {
lastUpdated: Date.now()
}
priorAuthBundle.implicitRules = "http://build.fhir.org/ig/HL7/davinci-pas/StructureDefinition-profile-pas-request-bundle"
priorAuthBundle.identifier = {
use: "official",
system: "urn:uuid:mitre-drls",
value: shortid.generate()
}
priorAuthBundle.signature = signature;
priorAuthBundle.entry.unshift({ resource: priorAuthClaim });

this.props.setPriorAuthClaim(priorAuthBundle);
Expand Down