From 6aef7650767a7bac1f18b6e1b416ac32d8c17af5 Mon Sep 17 00:00:00 2001 From: Sahil Malhotra Date: Tue, 17 Jun 2025 10:56:18 -0400 Subject: [PATCH 01/16] update vite config to work with deployment --- frontend/vite.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index c729b1d..2695043 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -9,7 +9,7 @@ export default defineConfig({ base: '', plugins: [react()], preview: { - allowedHosts: ['.mitre.org', '.us-east-1.elb.amazonaws.com'] + allowedHosts: ['.mitre.org', '.elb.us-east-1.amazonaws.com'] }, define: { 'process.env': process.env @@ -18,6 +18,6 @@ export default defineConfig({ port: parseInt(process.env.PORT!), open: false, host: true, - allowedHosts: ['.mitre.org', '.us-east-1.elb.amazonaws.com'] + allowedHosts: ['.mitre.org', '.elb.us-east-1.amazonaws.com'] } }); From 335e93648362a5c428194399d7a6d85d9fe4eeb3 Mon Sep 17 00:00:00 2001 From: Patrick LaRocque Date: Thu, 19 Jun 2025 17:01:42 -0400 Subject: [PATCH 02/16] Handle the case where there is no DrugDescription in the NewRx message. --- backend/src/routes/doctorOrders.js | 51 ++++++++++++++++++------------ 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/backend/src/routes/doctorOrders.js b/backend/src/routes/doctorOrders.js index a7d101e..8646ae0 100644 --- a/backend/src/routes/doctorOrders.js +++ b/backend/src/routes/doctorOrders.js @@ -396,51 +396,60 @@ const getDispenseStatus = (order, guidanceResponse) => { */ async function parseNCPDPScript(newRx) { // Parsing XML NCPDP SCRIPT from EHR + const patient = newRx.Message.Body.NewRx.Patient; + const prescriber = newRx.Message.Body.NewRx.Prescriber; + const medicationPrescribed = newRx.Message.Body.NewRx.MedicationPrescribed; + const incompleteOrder = { orderId: newRx.Message.Header.MessageID.toString(), // Will need to return to this and use actual pt identifier or uuid caseNumber: newRx.Message.Header.AuthorizationNumber, prescriberOrderNumber: newRx.Message.Header.PrescriberOrderNumber, patientName: - newRx.Message.Body.NewRx.Patient.HumanPatient.Name.FirstName + + patient.HumanPatient.Name.FirstName + ' ' + - newRx.Message.Body.NewRx.Patient.HumanPatient.Name.LastName, - patientFirstName: newRx.Message.Body.NewRx.Patient.HumanPatient.Name.FirstName, - patientLastName: newRx.Message.Body.NewRx.Patient.HumanPatient.Name.LastName, - patientDOB: newRx.Message.Body.NewRx.Patient.HumanPatient.DateOfBirth.Date, - patientCity: newRx.Message.Body.NewRx.Patient.HumanPatient.Address.City, - patientStateProvince: newRx.Message.Body.NewRx.Patient.HumanPatient.Address.StateProvince, - patientPostalCode: newRx.Message.Body.NewRx.Patient.HumanPatient.Address.PostalCode, - patientCountry: newRx.Message.Body.NewRx.Patient.HumanPatient.Address.Country, + patient.HumanPatient.Name.LastName, + patientFirstName: patient.HumanPatient.Name.FirstName, + patientLastName: patient.HumanPatient.Name.LastName, + patientDOB: patient.HumanPatient.DateOfBirth.Date, + patientCity: patient.HumanPatient.Address.City, + patientStateProvince: patient.HumanPatient.Address.StateProvince, + patientPostalCode: patient.HumanPatient.Address.PostalCode, + patientCountry: patient.HumanPatient.Address.Country, doctorName: 'Dr. ' + - newRx.Message.Body.NewRx.Prescriber.NonVeterinarian.Name.FirstName + + prescriber.NonVeterinarian.Name.FirstName + ' ' + - newRx.Message.Body.NewRx.Prescriber.NonVeterinarian.Name.LastName, + prescriber.NonVeterinarian.Name.LastName, doctorContact: - newRx.Message.Body.NewRx.Prescriber.NonVeterinarian.CommunicationNumbers.PrimaryTelephone + prescriber.NonVeterinarian.CommunicationNumbers.PrimaryTelephone ?.Number, - doctorID: newRx.Message.Body.NewRx.Prescriber.NonVeterinarian.Identification.NPI, + doctorID: prescriber.NonVeterinarian.Identification.NPI, doctorEmail: - newRx.Message.Body.NewRx.Prescriber.NonVeterinarian.CommunicationNumbers.ElectronicMail, - drugNames: newRx.Message.Body.NewRx.MedicationPrescribed.DrugDescription, - simpleDrugName: newRx.Message.Body.NewRx.MedicationPrescribed.DrugDescription.split(' ')[0], + prescriber.NonVeterinarian.CommunicationNumbers.ElectronicMail, + drugNames: medicationPrescribed.DrugDescription, + simpleDrugName: medicationPrescribed.DrugDescription?.split(' ')[0], drugNdcCode: - newRx.Message.Body.NewRx.MedicationPrescribed.DrugCoded.ProductCode?.Code || - newRx.Message.Body.NewRx.MedicationPrescribed.DrugCoded.NDC || + medicationPrescribed.DrugCoded.ProductCode?.Code || + medicationPrescribed.DrugCoded.NDC || null, drugRxnormCode: - newRx.Message.Body.NewRx.MedicationPrescribed.DrugCoded.DrugDBCode?.Code || null, + medicationPrescribed.DrugCoded.DrugDBCode?.Code || null, - rxDate: newRx.Message.Body.NewRx.MedicationPrescribed.WrittenDate.Date, + rxDate: medicationPrescribed.WrittenDate.Date, drugPrice: 200, // Add later? - quantities: newRx.Message.Body.NewRx.MedicationPrescribed.Quantity.Value, + quantities: medicationPrescribed.Quantity.Value, total: 1800, pickupDate: 'Tue Dec 13 2022', // Add later? dispenseStatus: 'Pending' }; + if (incompleteOrder.drugNames === undefined || incompleteOrder.drugNames === 'undefined') { + incompleteOrder.drugNames = incompleteOrder.drugNdcCode; + incompleteOrder.simpleDrugName = incompleteOrder.drugNdcCode; + } + const metRequirements = isRemsDrug(incompleteOrder) ? [] : null; const order = new doctorOrder({ ...incompleteOrder, metRequirements }); return order; From 270a7e482a7b5cbaddbb830a658e6ce313c85abc Mon Sep 17 00:00:00 2001 From: Patrick LaRocque Date: Tue, 1 Jul 2025 14:41:43 -0400 Subject: [PATCH 03/16] run prettier --- backend/src/routes/doctorOrders.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/backend/src/routes/doctorOrders.js b/backend/src/routes/doctorOrders.js index 8646ae0..9af2b78 100644 --- a/backend/src/routes/doctorOrders.js +++ b/backend/src/routes/doctorOrders.js @@ -404,10 +404,7 @@ async function parseNCPDPScript(newRx) { orderId: newRx.Message.Header.MessageID.toString(), // Will need to return to this and use actual pt identifier or uuid caseNumber: newRx.Message.Header.AuthorizationNumber, prescriberOrderNumber: newRx.Message.Header.PrescriberOrderNumber, - patientName: - patient.HumanPatient.Name.FirstName + - ' ' + - patient.HumanPatient.Name.LastName, + patientName: patient.HumanPatient.Name.FirstName + ' ' + patient.HumanPatient.Name.LastName, patientFirstName: patient.HumanPatient.Name.FirstName, patientLastName: patient.HumanPatient.Name.LastName, patientDOB: patient.HumanPatient.DateOfBirth.Date, @@ -420,12 +417,9 @@ async function parseNCPDPScript(newRx) { prescriber.NonVeterinarian.Name.FirstName + ' ' + prescriber.NonVeterinarian.Name.LastName, - doctorContact: - prescriber.NonVeterinarian.CommunicationNumbers.PrimaryTelephone - ?.Number, + doctorContact: prescriber.NonVeterinarian.CommunicationNumbers.PrimaryTelephone?.Number, doctorID: prescriber.NonVeterinarian.Identification.NPI, - doctorEmail: - prescriber.NonVeterinarian.CommunicationNumbers.ElectronicMail, + doctorEmail: prescriber.NonVeterinarian.CommunicationNumbers.ElectronicMail, drugNames: medicationPrescribed.DrugDescription, simpleDrugName: medicationPrescribed.DrugDescription?.split(' ')[0], @@ -434,8 +428,7 @@ async function parseNCPDPScript(newRx) { medicationPrescribed.DrugCoded.NDC || null, - drugRxnormCode: - medicationPrescribed.DrugCoded.DrugDBCode?.Code || null, + drugRxnormCode: medicationPrescribed.DrugCoded.DrugDBCode?.Code || null, rxDate: medicationPrescribed.WrittenDate.Date, drugPrice: 200, // Add later? From f5ece79a6bf0e71ab067ba26759a41cdbfe5d86f Mon Sep 17 00:00:00 2001 From: Sahil Malhotra Date: Mon, 7 Jul 2025 11:37:22 -0400 Subject: [PATCH 04/16] disable hmr in prod --- Dockerfile | 1 + dockerRunnerProd.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7a27089..00ab7c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ RUN npm install WORKDIR /home/node/app/frontend RUN npm install +RUN npm run build WORKDIR /home/node/app diff --git a/dockerRunnerProd.sh b/dockerRunnerProd.sh index 2c2806e..7e90354 100755 --- a/dockerRunnerProd.sh +++ b/dockerRunnerProd.sh @@ -1,7 +1,8 @@ #!/bin/sh cd frontend -( npm run start ) & SERVER_PID=$! +npm run build +( npm run preview ) & SERVER_PID=$! cd ../backend ( npm run start ) & BACKEND_SERVER_PID=$! From d93f486d4f069be79e77ca192d9cf5d612773ac5 Mon Sep 17 00:00:00 2001 From: Sahil Malhotra Date: Mon, 7 Jul 2025 13:35:56 -0400 Subject: [PATCH 05/16] remove build command from shell script - running during docker build and takes too long - fails health checks --- dockerRunnerProd.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/dockerRunnerProd.sh b/dockerRunnerProd.sh index 7e90354..d6a310b 100755 --- a/dockerRunnerProd.sh +++ b/dockerRunnerProd.sh @@ -1,7 +1,6 @@ #!/bin/sh cd frontend -npm run build ( npm run preview ) & SERVER_PID=$! cd ../backend From c9635c9cc381a49f5e6ae68e0e39e1ee52b48c7a Mon Sep 17 00:00:00 2001 From: Sahil Malhotra Date: Mon, 7 Jul 2025 13:51:58 -0400 Subject: [PATCH 06/16] configure vite port for preview - affecting health check & networking --- dockerRunnerProd.sh | 1 + frontend/vite.config.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dockerRunnerProd.sh b/dockerRunnerProd.sh index d6a310b..7e90354 100755 --- a/dockerRunnerProd.sh +++ b/dockerRunnerProd.sh @@ -1,6 +1,7 @@ #!/bin/sh cd frontend +npm run build ( npm run preview ) & SERVER_PID=$! cd ../backend diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 2695043..827fc70 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -9,7 +9,9 @@ export default defineConfig({ base: '', plugins: [react()], preview: { - allowedHosts: ['.mitre.org', '.elb.us-east-1.amazonaws.com'] + allowedHosts: ['.mitre.org', '.elb.us-east-1.amazonaws.com'], + port: parseInt(process.env.PORT!), + host: true, }, define: { 'process.env': process.env From 9b42702888523fa7aa109f6f8e9cb32c3c09e857 Mon Sep 17 00:00:00 2001 From: Sahil Malhotra Date: Mon, 7 Jul 2025 14:27:15 -0400 Subject: [PATCH 07/16] config for base url --- frontend/vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 827fc70..6981265 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -6,7 +6,7 @@ import dotenv from 'dotenv'; dotenv.config({ path: '.env' }); // load env vars from .env export default defineConfig({ // depending on your application, base can also be "/" - base: '', + base: process.env.REACT_APP_VITE_BASE || '', plugins: [react()], preview: { allowedHosts: ['.mitre.org', '.elb.us-east-1.amazonaws.com'], From 147f30bcc7b668b9390cb14024a77e0f53142677 Mon Sep 17 00:00:00 2001 From: Sahil Malhotra Date: Mon, 7 Jul 2025 16:06:14 -0400 Subject: [PATCH 08/16] logging for CORS --- backend/env.json | 3 ++- backend/src/server.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/env.json b/backend/env.json index 138415c..a331449 100644 --- a/backend/env.json +++ b/backend/env.json @@ -15,7 +15,8 @@ "http://localhost:5050", "http://localhost:5050/", "http://localhost:4040", - "http://localhost:4040/" + "http://localhost:4040/", + "*" ] }, "MONGO_USERNAME": { diff --git a/backend/src/server.ts b/backend/src/server.ts index 802c10d..06e3e2b 100644 --- a/backend/src/server.ts +++ b/backend/src/server.ts @@ -21,6 +21,8 @@ async function main() { origin: env.ALLOWED_ORIGIN }; + console.log("CORS OPTIONS: " + JSON.stringify(options)) + app.use(bodyParser.urlencoded({ extended: false })); app.use(cors(options)); app.use('/doctorOrders', doctorOrders); From eca697f907d7145c81665125320aec23c3685e90 Mon Sep 17 00:00:00 2001 From: Sahil Malhotra Date: Tue, 8 Jul 2025 07:22:11 -0400 Subject: [PATCH 09/16] react router routing for prod config --- frontend/src/App.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 7b9f888..afe7688 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -13,10 +13,12 @@ axios.defaults.baseURL = process.env.REACT_APP_PIMS_BACKEND_URL : 'http://localhost:' + (process.env.REACT_APP_PIMS_BACKEND_PORT ? process.env.REACT_APP_PIMS_BACKEND_PORT : '5051'); +const basename = process.env.REACT_APP_VITE_BASE?.replace(/\/$/, '') || ''; + function App() { return ( - +
From 16bff37fb7f612682367db96236ae92de7da90d9 Mon Sep 17 00:00:00 2001 From: Sahil Malhotra Date: Tue, 8 Jul 2025 07:25:17 -0400 Subject: [PATCH 10/16] remove * from cors origin - override with env variable --- backend/env.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/env.json b/backend/env.json index a331449..138415c 100644 --- a/backend/env.json +++ b/backend/env.json @@ -15,8 +15,7 @@ "http://localhost:5050", "http://localhost:5050/", "http://localhost:4040", - "http://localhost:4040/", - "*" + "http://localhost:4040/" ] }, "MONGO_USERNAME": { From 8d80e80762c656f745e0dfeb6e82078523895f3f Mon Sep 17 00:00:00 2001 From: Sahil Malhotra Date: Tue, 8 Jul 2025 08:00:38 -0400 Subject: [PATCH 11/16] update ALLOWED_ORIGIN type for wildcard --- backend/env.json | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/backend/env.json b/backend/env.json index 138415c..30e25f1 100644 --- a/backend/env.json +++ b/backend/env.json @@ -4,19 +4,8 @@ "default": 5051 }, "ALLOWED_ORIGIN": { - "type": "object", - "default": [ - "http://localhost:3000", - "http://localhost:3000/", - "http://localhost:3005", - "http://localhost:3005/", - "http://localhost:3008", - "http://localhost:3008/", - "http://localhost:5050", - "http://localhost:5050/", - "http://localhost:4040", - "http://localhost:4040/" - ] + "type": "string", + "default": "*" }, "MONGO_USERNAME": { "type": "string", From 826054c936e65b5b6c96cc7cbd898e5d74364f27 Mon Sep 17 00:00:00 2001 From: Sahil Malhotra Date: Tue, 8 Jul 2025 08:36:13 -0400 Subject: [PATCH 12/16] update vite config to remove double route in prod --- frontend/vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 6981265..827fc70 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -6,7 +6,7 @@ import dotenv from 'dotenv'; dotenv.config({ path: '.env' }); // load env vars from .env export default defineConfig({ // depending on your application, base can also be "/" - base: process.env.REACT_APP_VITE_BASE || '', + base: '', plugins: [react()], preview: { allowedHosts: ['.mitre.org', '.elb.us-east-1.amazonaws.com'], From 38064c6ac40624c2f13965451655afe3d2b28485 Mon Sep 17 00:00:00 2001 From: Sahil Malhotra Date: Tue, 8 Jul 2025 09:05:46 -0400 Subject: [PATCH 13/16] re-add pims vite base url, needed for app to work, duplicate routes issue will be worked around for now --- frontend/vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 827fc70..6981265 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -6,7 +6,7 @@ import dotenv from 'dotenv'; dotenv.config({ path: '.env' }); // load env vars from .env export default defineConfig({ // depending on your application, base can also be "/" - base: '', + base: process.env.REACT_APP_VITE_BASE || '', plugins: [react()], preview: { allowedHosts: ['.mitre.org', '.elb.us-east-1.amazonaws.com'], From 747de507f950e89a4c61d0013dc0744d8c36458d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 18 Jul 2025 04:01:35 +0000 Subject: [PATCH 14/16] Bump the npm_and_yarn group across 1 directory with 2 updates Bumps the npm_and_yarn group with 2 updates in the /frontend directory: [on-headers](https://github.com/jshttp/on-headers) and [compression](https://github.com/expressjs/compression). Updates `on-headers` from 1.0.2 to 1.1.0 - [Release notes](https://github.com/jshttp/on-headers/releases) - [Changelog](https://github.com/jshttp/on-headers/blob/master/HISTORY.md) - [Commits](https://github.com/jshttp/on-headers/compare/v1.0.2...v1.1.0) Updates `compression` from 1.7.4 to 1.8.1 - [Release notes](https://github.com/expressjs/compression/releases) - [Changelog](https://github.com/expressjs/compression/blob/master/HISTORY.md) - [Commits](https://github.com/expressjs/compression/compare/1.7.4...v1.8.1) --- updated-dependencies: - dependency-name: on-headers dependency-version: 1.1.0 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: compression dependency-version: 1.8.1 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] --- frontend/package-lock.json | 59 ++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 34 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index ca85400..8045496 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -6748,14 +6748,6 @@ "npm": "1.2.8000 || >= 1.4.16" } }, - "node_modules/body-parser/node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "engines": { - "node": ">= 0.8" - } - }, "node_modules/body-parser/node_modules/debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", @@ -6876,9 +6868,10 @@ } }, "node_modules/bytes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", - "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -7223,16 +7216,17 @@ } }, "node_modules/compression": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", - "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.8.1.tgz", + "integrity": "sha512-9mAqGPHLakhCLeNyxPkK4xVo746zQ/czLH1Ky+vkitMnWfWZps8r0qXuwhwizagCRttsL4lfG4pIOvaWLpAP0w==", + "license": "MIT", "dependencies": { - "accepts": "~1.3.5", - "bytes": "3.0.0", - "compressible": "~2.0.16", + "bytes": "3.1.2", + "compressible": "~2.0.18", "debug": "2.6.9", - "on-headers": "~1.0.2", - "safe-buffer": "5.1.2", + "negotiator": "~0.6.4", + "on-headers": "~1.1.0", + "safe-buffer": "5.2.1", "vary": "~1.1.2" }, "engines": { @@ -7252,10 +7246,14 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, - "node_modules/compression/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + "node_modules/compression/node_modules/negotiator": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz", + "integrity": "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } }, "node_modules/concat-map": { "version": "0.0.1", @@ -14705,9 +14703,10 @@ } }, "node_modules/on-headers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", - "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.1.0.tgz", + "integrity": "sha512-737ZY3yNnXy37FHkQxPzt4UZ2UWPWiCZWLvFZ4fu5cueciegX0zGPnrlY6bwRg4FdQOe9YU8MkmJwGhoMybl8A==", + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -16511,14 +16510,6 @@ "node": ">= 0.8" } }, - "node_modules/raw-body/node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "engines": { - "node": ">= 0.8" - } - }, "node_modules/react": { "version": "18.3.1", "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", From 87b240163c85e84ad6bb77418e8daa9de7234355 Mon Sep 17 00:00:00 2001 From: lmd59 Date: Fri, 8 Aug 2025 10:36:04 -0400 Subject: [PATCH 15/16] Update README.md Add data rights --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index 2a2989c..19ad5a2 100644 --- a/README.md +++ b/README.md @@ -52,3 +52,35 @@ This application requires node.js v20.0 or greater. Using [`nvm`](https://github - `nvm install 20` - `nvm use 20` or `nvm use default 20`, as most of the REMS Integration Prototype repositories are compatible with node v20.0. + +# Data Rights + +
+NOTICE +
+ +This (software/technical data) was produced for the U. S. Government under Contract Number 75FCMC18D0047/75FCMC23D0004, and is subject to Federal Acquisition Regulation Clause 52.227-14, Rights in Data-General. + + +No other use other than that granted to the U. S. Government, or to those acting on behalf of the U. S. Government under that Clause is authorized without the express written permission of The MITRE Corporation. + + +For further information, please contact The MITRE Corporation, Contracts Management Office, 7515 Colshire Drive, McLean, VA 22102-7539, (703) 983-6000. + +
+©2025 The MITRE Corporation. +
+ +
+ +Licensed under the Apache License, Version 2.0 (the "License"); use of this repository is permitted in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + From 5efbb6e85787dcd7de3fd4f736df9e9c536530ea Mon Sep 17 00:00:00 2001 From: Sahil Malhotra Date: Thu, 28 Aug 2025 10:42:28 -0400 Subject: [PATCH 16/16] run prettier/lint --- backend/src/server.ts | 2 +- frontend/vite.config.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/server.ts b/backend/src/server.ts index 06e3e2b..1627125 100644 --- a/backend/src/server.ts +++ b/backend/src/server.ts @@ -21,7 +21,7 @@ async function main() { origin: env.ALLOWED_ORIGIN }; - console.log("CORS OPTIONS: " + JSON.stringify(options)) + console.log('CORS OPTIONS: ' + JSON.stringify(options)); app.use(bodyParser.urlencoded({ extended: false })); app.use(cors(options)); diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 6981265..187cc8c 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -10,8 +10,8 @@ export default defineConfig({ plugins: [react()], preview: { allowedHosts: ['.mitre.org', '.elb.us-east-1.amazonaws.com'], - port: parseInt(process.env.PORT!), - host: true, + port: parseInt(process.env.PORT!), + host: true }, define: { 'process.env': process.env