diff --git a/src/applications/_mock-form-ae-design-patterns/mocks/endpoints/feature-toggles/index.js b/src/applications/_mock-form-ae-design-patterns/mocks/endpoints/feature-toggles/index.js index 9718a0c61b0b..2ce6f22c70f0 100644 --- a/src/applications/_mock-form-ae-design-patterns/mocks/endpoints/feature-toggles/index.js +++ b/src/applications/_mock-form-ae-design-patterns/mocks/endpoints/feature-toggles/index.js @@ -4,6 +4,7 @@ const { snakeCase } = require('lodash'); // instead use generateFeatureToggles in server.js to set the toggle values const profileToggles = { profileUseExperimental: false, + aedpVADX: false, coeAccess: true, showEduBenefits1990Wizard: true, showEduBenefits0994Wizard: true, diff --git a/src/applications/_mock-form-ae-design-patterns/mocks/server.js b/src/applications/_mock-form-ae-design-patterns/mocks/server.js index 38b08f0c3f21..aaa39523af16 100644 --- a/src/applications/_mock-form-ae-design-patterns/mocks/server.js +++ b/src/applications/_mock-form-ae-design-patterns/mocks/server.js @@ -48,6 +48,7 @@ const responses = { generateFeatureToggles({ profileUseExperimental: true, coeAccess: true, + aedpVADX: true, }), ), secondsOfDelay, diff --git a/src/applications/disability-benefits/686c-674-v2/config/chapters/veteran-information/veteran-contact-information.js b/src/applications/disability-benefits/686c-674-v2/config/chapters/veteran-information/veteran-contact-information.js index d62901357825..a0e386f8915a 100644 --- a/src/applications/disability-benefits/686c-674-v2/config/chapters/veteran-information/veteran-contact-information.js +++ b/src/applications/disability-benefits/686c-674-v2/config/chapters/veteran-information/veteran-contact-information.js @@ -55,6 +55,7 @@ export const uiSchema = { }, emailAddress: { ...emailUI('Email address'), + 'ui:required': () => true, 'ui:options': { classNames: 'vads-u-margin-bottom--3', }, diff --git a/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/add-child-add-674.json b/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/add-child-add-674.json index 4d37db48ed16..1c863e817cd6 100644 --- a/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/add-child-add-674.json +++ b/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/add-child-add-674.json @@ -97,7 +97,8 @@ "postalCode": "20500" }, "veteranContactInformation": { - "phoneNumber": "1231231234" + "phoneNumber": "1231231234", + "emailAddress": "test@test.com" } }, "view:686Information": {}, diff --git a/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/add-child-report-divorce.json b/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/add-child-report-divorce.json index 25020de674d4..9479aef3022f 100644 --- a/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/add-child-report-divorce.json +++ b/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/add-child-report-divorce.json @@ -64,7 +64,8 @@ "postalCode": "20500" }, "veteranContactInformation": { - "phoneNumber": "1231231234" + "phoneNumber": "1231231234", + "emailAddress": "test@test.com" } }, "view:686Information": {}, diff --git a/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/ancilliary-flows.json b/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/ancilliary-flows.json index e3046fc3e031..fd780ca637e9 100644 --- a/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/ancilliary-flows.json +++ b/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/ancilliary-flows.json @@ -85,7 +85,8 @@ "postalCode": "20500" }, "veteranContactInformation": { - "phoneNumber": "1231231234" + "phoneNumber": "1231231234", + "emailAddress": "test@test.com" } }, "view:686Information": {}, diff --git a/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/spouse-child-all-fields.json b/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/spouse-child-all-fields.json index 5587bae4f50b..b760c3ac5f45 100644 --- a/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/spouse-child-all-fields.json +++ b/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/spouse-child-all-fields.json @@ -148,7 +148,8 @@ "postalCode": "20500" }, "veteranContactInformation": { - "phoneNumber": "1231231234" + "phoneNumber": "1231231234", + "emailAddress": "test@test.com" } }, "view:686Information": {}, diff --git a/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/spouse-report-divorce.json b/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/spouse-report-divorce.json index e370c6218675..6327ba30bb25 100644 --- a/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/spouse-report-divorce.json +++ b/src/applications/disability-benefits/686c-674-v2/tests/e2e/fixtures/spouse-report-divorce.json @@ -99,7 +99,8 @@ "postalCode": "20500" }, "veteranContactInformation": { - "phoneNumber": "1231231234" + "phoneNumber": "1231231234", + "emailAddress": "test@test.com" } }, "view:686Information": {}, diff --git a/src/applications/hca/components/FormPages/FinancialInformation.jsx b/src/applications/hca/components/FormPages/FinancialInformation.jsx index da80fd0c9d97..6106b75a9e7b 100644 --- a/src/applications/hca/components/FormPages/FinancialInformation.jsx +++ b/src/applications/hca/components/FormPages/FinancialInformation.jsx @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import FormNavButtons from '~/platform/forms-system/src/js/components/FormNavButtons'; +import FormNavButtons from 'platform/forms-system/src/js/components/FormNavButtons'; import { LAST_YEAR } from '../../utils/constants'; const HouseholdFinancialOnboarding = props => { diff --git a/src/applications/hca/components/FormPages/FinancialOnboarding.jsx b/src/applications/hca/components/FormPages/FinancialOnboarding.jsx index 0a4ed5a5d4a4..51bb36bbb460 100644 --- a/src/applications/hca/components/FormPages/FinancialOnboarding.jsx +++ b/src/applications/hca/components/FormPages/FinancialOnboarding.jsx @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import FormNavButtons from '~/platform/forms-system/src/js/components/FormNavButtons'; +import FormNavButtons from 'platform/forms-system/src/js/components/FormNavButtons'; import EnhancedEligibilityDescription from '../FormDescriptions/EnhancedEligibilityDescription'; import { LAST_YEAR } from '../../utils/constants'; diff --git a/src/applications/hca/components/FormPages/InsuranceInformation.jsx b/src/applications/hca/components/FormPages/InsuranceInformation.jsx index 9153e7bd12da..2d344790e6da 100644 --- a/src/applications/hca/components/FormPages/InsuranceInformation.jsx +++ b/src/applications/hca/components/FormPages/InsuranceInformation.jsx @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import FormNavButtons from '~/platform/forms-system/src/js/components/FormNavButtons'; +import FormNavButtons from 'platform/forms-system/src/js/components/FormNavButtons'; const InsuranceInformation = props => { const { diff --git a/src/applications/hca/tests/unit/components/FormFields/VaMedicalCenter.unit.spec.js b/src/applications/hca/tests/unit/components/FormFields/VaMedicalCenter.unit.spec.js index 8890053f7e8e..271138b500f2 100644 --- a/src/applications/hca/tests/unit/components/FormFields/VaMedicalCenter.unit.spec.js +++ b/src/applications/hca/tests/unit/components/FormFields/VaMedicalCenter.unit.spec.js @@ -1,27 +1,27 @@ import React from 'react'; import { Provider } from 'react-redux'; -import { render, waitFor } from '@testing-library/react'; +import { fireEvent, render, waitFor } from '@testing-library/react'; +import * as Sentry from '@sentry/browser'; import { expect } from 'chai'; import sinon from 'sinon'; import { mockApiRequest, setFetchJSONResponse, } from 'platform/testing/unit/helpers'; - import VaMedicalCenter from '../../../../components/FormFields/VaMedicalCenter'; describe('hca ', () => { const mockData = [ - { - id: 'vha_528A4', - uniqueId: '528A4', - name: 'ZBatavia VA Medical Center', - }, { id: 'vha_528A5', uniqueId: '528A5', name: 'Canandaigua VA Medical Center', }, + { + id: 'vha_528A4', + uniqueId: '528A4', + name: 'Batavia VA Medical Center', + }, ]; const getData = ({ reviewMode = false, @@ -56,44 +56,47 @@ describe('hca ', () => { }, }, }); - - context('when the component renders on form page', () => { - const { mockStore, props } = getData({}); - - it('should render both `va-select` fields', () => { - const { container } = render( - - - , - ); - const stateSelector = container.querySelector( + const subject = ({ mockStore, props }) => { + const { container } = render( + + + , + ); + const selectors = () => ({ + stateField: container.querySelector( `#${props.idSchema['view:facilityState'].$id}`, - ); - expect(stateSelector).to.exist; - const facilitySelector = container.querySelector( + ), + facilityField: container.querySelector( `#${props.idSchema.vaMedicalFacility.$id}`, - ); - expect(facilitySelector).to.exist; - }); - - it('should not render the containers from review mode', () => { - const { container } = render( - - - , - ); - const stateSelector = container.querySelector( + ), + facilityOptions: container.querySelectorAll( + `#${props.idSchema.vaMedicalFacility.$id} option`, + ), + stateReviewField: container.querySelector( '[data-testid="hca-facility-state"]', - ); - expect(stateSelector).to.not.exist; - const facilitySelector = container.querySelector( + ), + facilityReviewField: container.querySelector( '[data-testid="hca-facility-name"]', - ); - expect(facilitySelector).to.not.exist; + ), + vaAlert: container.querySelector('va-alert'), + vaSelect: container.querySelectorAll('va-select'), + vaLoadingIndicator: container.querySelector('va-loading-indicator'), }); + return { container, selectors }; + }; + + it('should render appropriate components when not in review mode', () => { + const { mockStore, props } = getData({}); + const { selectors } = subject({ mockStore, props }); + const components = selectors(); + expect(components.stateField).to.exist; + expect(components.facilityField).to.exist; + expect(components.stateReviewField).to.not.exist; + expect(components.facilityReviewField).to.not.exist; }); - context('when the component renders in review mode', () => { + it('should render appropriate components when in review mode', async () => { + mockApiRequest(mockData); const { mockStore, props } = getData({ formData: { 'view:facilityState': 'NY', @@ -101,239 +104,128 @@ describe('hca ', () => { }, reviewMode: true, }); - - it('should render the correct state and facility name', async () => { - mockApiRequest(mockData); - const { container } = render( - - - , - ); - - const stateSelector = container.querySelector( - '[data-testid="hca-facility-state"]', - ); - await waitFor(() => { - expect(stateSelector).to.contain.text('New York'); - }); - - const facilitySelector = container.querySelector( - '[data-testid="hca-facility-name"]', - ); - await waitFor(() => { - expect(facilitySelector).to.contain.text(mockData[1].name); - }); + const { selectors } = subject({ mockStore, props }); + + await waitFor(() => { + const components = selectors(); + expect(components.vaAlert).to.not.exist; + expect(components.vaLoadingIndicator).to.not.exist; + expect(components.vaSelect).to.have.lengthOf(0); + expect(components.stateReviewField).to.contain.text('New York'); + expect(components.facilityReviewField).to.contain.text(mockData[1].name); }); + }); - it('should not render the loading indicator', async () => { - mockApiRequest(mockData); - const { container } = render( - - - , - ); - const selector = container.querySelector('va-loading-indicator'); - await waitFor(() => { - expect(selector).to.not.exist; - }); + it('should correctly handle errors when the facility API call fails', async () => { + mockApiRequest(mockData, false); + setFetchJSONResponse( + global.fetch.onCall(0), + // eslint-disable-next-line prefer-promise-reject-errors + Promise.reject({ status: 503, error: 'error' }), + ); + const { mockStore, props } = getData({ + formData: { 'view:facilityState': 'NY' }, }); - - it('should not render the select input', async () => { - mockApiRequest(mockData); - const { container } = render( - - - , - ); - const selector = container.querySelector('va-select'); - await waitFor(() => { - expect(selector).to.not.exist; - }); + const spy = sinon.spy(Sentry, 'withScope'); + const { selectors } = subject({ mockStore, props }); + + await waitFor(() => { + const { stateField, facilityField, vaAlert } = selectors(); + expect(stateField).to.not.exist; + expect(facilityField).to.not.exist; + expect(vaAlert).to.exist; }); - it('should not render the server error alert', async () => { - mockApiRequest(mockData); - const { container } = render( - - - , - ); - const selector = container.querySelector('va-alert'); - await waitFor(() => { - expect(selector).to.not.exist; - }); + await waitFor(() => { + expect(spy.called).to.be.true; + spy.restore(); }); }); - context('when the user selects a facility state', () => { - it('should render the correct number of options, resorted in alphabetical order by name, if API call succeeds', async () => { - mockApiRequest(mockData); - const { mockStore, props } = getData({ - formData: { 'view:facilityState': 'NY' }, - }); - const { container } = render( - - - , - ); - - await waitFor(() => { - const options = container.querySelectorAll( - `#${props.idSchema.vaMedicalFacility.$id} option`, - ); - const alert = container.querySelector('va-alert'); - - expect(options).to.have.lengthOf(mockData.length); - expect(options[0]).to.have.attr('value', mockData[1].uniqueId); - expect(options[1]).to.have.attr('value', mockData[0].uniqueId); - expect(alert).to.not.exist; - }); + it('should render an alphabetized option list when facility API call succeeds', async () => { + mockApiRequest(mockData); + const { mockStore, props } = getData({ + formData: { 'view:facilityState': 'NY' }, }); - - it('should render the error alert if API call fails', async () => { - mockApiRequest(mockData, false); - setFetchJSONResponse( - global.fetch.onCall(0), - // eslint-disable-next-line prefer-promise-reject-errors - Promise.reject({ status: 503, error: 'error' }), - ); - const { mockStore, props } = getData({ - formData: { 'view:facilityState': 'NY' }, - }); - const { container } = render( - - - , - ); - await waitFor(() => { - const vaSelectState = container.querySelector( - `#${props.idSchema['view:facilityState'].$id}`, - ); - const vaSelectFacility = container.querySelector( - `#${props.idSchema.vaMedicalFacility.$id}`, - ); - const alert = container.querySelector('va-alert'); - - expect(vaSelectState).to.not.exist; - expect(vaSelectFacility).to.not.exist; - expect(alert).to.exist; - }); + const { selectors } = subject({ mockStore, props }); + + await waitFor(() => { + const { facilityOptions, vaAlert } = selectors(); + expect(vaAlert).to.not.exist; + expect(facilityOptions).to.have.lengthOf(mockData.length); + expect(facilityOptions[0]).to.have.attr('value', mockData[1].uniqueId); + expect(facilityOptions[1]).to.have.attr('value', mockData[0].uniqueId); }); }); - context('when the user selects a facility from the list', () => { - it('should call the `onChange` spy', async () => { - mockApiRequest(mockData); - const { mockStore, props } = getData({ - formData: { 'view:facilityState': 'NY' }, + it('should fire the `onChange` spy when the user selects a facility from the list', async () => { + mockApiRequest(mockData); + const { mockStore, props } = getData({ + formData: { 'view:facilityState': 'NY' }, + }); + const { selectors } = subject({ mockStore, props }); + + await waitFor(() => { + const { facilityField } = selectors(); + facilityField.__events.vaSelect({ + target: { + name: props.idSchema.vaMedicalFacility.$id, + value: mockData[1].id, + }, }); - const { container } = render( - - - , - ); + expect(props.onChange.called).to.be.true; + }); - await waitFor(() => { - const selector = container.querySelector( - `#${props.idSchema.vaMedicalFacility.$id}`, - ); + await waitFor(() => { + const { facilityField } = selectors(); + fireEvent.blur(facilityField); + expect(facilityField).to.not.have.attr('error'); + }); + }); - selector.__events.vaSelect({ - target: { - name: props.idSchema.vaMedicalFacility.$id, - value: mockData[1].id, - }, - }); + it('should correctly handle errors when the form is submitted without a selected facility', async () => { + const { mockStore, props } = getData({ + formData: {}, + submitted: true, + }); + const { selectors } = subject({ mockStore, props }); - expect(props.onChange.called).to.be.true; - }); + await waitFor(() => { + const { facilityField } = selectors(); + expect(facilityField).to.have.attr('error'); }); }); - context( - 'when the form is submitted without a selected facility', - async () => { - it('should render an error message on the facility field', async () => { - const { mockStore, props } = getData({ - formData: {}, - submitted: true, - }); - const { container } = render( - - - , - ); - await waitFor(() => { - const selector = container.querySelector( - `#${props.idSchema.vaMedicalFacility.$id}`, - ); - expect(selector).to.have.attr('error', 'Please provide a response'); - }); - }); - }, - ); + it('should correctly handle errors when the form is submitted without a selected state or facility', async () => { + const { mockStore, props } = getData({ + formData: {}, + submitted: true, + }); + const { selectors } = subject({ mockStore, props }); - context('when submitted without a selected state or facility', async () => { - it('should render error messages for both fields', async () => { - const { mockStore, props } = getData({ - formData: {}, - submitted: true, - }); - const { container } = render( - - - , - ); - await waitFor(() => { - const vaSelectState = container.querySelector( - `#${props.idSchema['view:facilityState'].$id}`, - ); - const vaSelectFacility = container.querySelector( - `#${props.idSchema.vaMedicalFacility.$id}`, - ); - expect(vaSelectState).to.have.attr( - 'error', - 'Please provide a response', - ); - expect(vaSelectFacility).to.have.attr( - 'error', - 'Please provide a response', - ); - }); + await waitFor(() => { + const { stateField, facilityField } = selectors(); + expect(stateField).to.have.attr('error'); + expect(facilityField).to.have.attr('error'); }); }); - context( - 'when the form is submitted with both state and facility selected', - async () => { - it('should not render error messages', async () => { - mockApiRequest(mockData); - const { mockStore, props } = getData({ - formData: { - 'view:facilityState': 'NY', - vaMedicalFacility: mockData[0].uniqueId, - }, - submitted: true, - }); - const { container } = render( - - - , - ); - await waitFor(() => { - const vaSelectState = container.querySelector( - `#${props.idSchema['view:facilityState'].$id}`, - ); - const vaSelectFacility = container.querySelector( - `#${props.idSchema.vaMedicalFacility.$id}`, - ); - const alert = container.querySelector('va-alert'); + it('should correctly behave when the form is submitted with both state and facility selected', async () => { + mockApiRequest(mockData); + const { mockStore, props } = getData({ + formData: { + 'view:facilityState': 'NY', + vaMedicalFacility: mockData[0].uniqueId, + }, + submitted: true, + }); + const { selectors } = subject({ mockStore, props }); - expect(alert).to.not.exist; - expect(vaSelectState).to.not.have.attr('error'); - expect(vaSelectFacility).to.not.have.attr('error'); - }); - }); - }, - ); + await waitFor(() => { + const { stateField, facilityField, vaAlert } = selectors(); + expect(vaAlert).to.not.exist; + expect(stateField).to.not.have.attr('error'); + expect(facilityField).to.not.have.attr('error'); + }); + }); }); diff --git a/src/applications/hca/tests/unit/components/FormPages/DisabilityConfirmation.unit.spec.js b/src/applications/hca/tests/unit/components/FormPages/DisabilityConfirmation.unit.spec.js index 58c78cf4f731..d315bcbbbb8b 100644 --- a/src/applications/hca/tests/unit/components/FormPages/DisabilityConfirmation.unit.spec.js +++ b/src/applications/hca/tests/unit/components/FormPages/DisabilityConfirmation.unit.spec.js @@ -2,41 +2,33 @@ import React from 'react'; import { fireEvent, render } from '@testing-library/react'; import { expect } from 'chai'; import sinon from 'sinon'; - import DisabilityConfirmation from '../../../../components/FormPages/DisabilityConfirmation'; describe('hca Disability Confirmation page', () => { - const getData = () => ({ - props: { data: {}, goBack: () => {}, goForward: sinon.spy() }, - }); - - context('when the component renders', () => { - const { props } = getData(); - - it('should render `va-alert` with correct status', () => { - const { container } = render(); - const selector = container.querySelector('va-alert'); - expect(selector).to.exist; - expect(selector).to.have.attr('status', 'info'); - }); - - it('should render navigation buttons', () => { - const { container } = render(); - expect( - container.querySelectorAll('.hca-button-progress'), - ).to.have.lengthOf(2); + const subject = ({ goForward = () => {} }) => { + const props = { data: {}, goBack: () => {}, goForward }; + const { container } = render(); + const selectors = () => ({ + vaAlert: container.querySelector('va-alert'), + navBtns: container.querySelectorAll('.hca-button-progress'), + continueBtn: container.querySelector('.usa-button-primary'), }); + return { container, selectors }; + }; + + it('should render the page with content and navigation buttons', () => { + const { selectors } = subject({}); + const { vaAlert, navBtns } = selectors(); + expect(vaAlert).to.exist; + expect(vaAlert).to.have.attr('status', 'info'); + expect(navBtns).to.have.lengthOf(2); }); - context('when the `Continue` button is clicked', () => { - const { props } = getData(); - - it('should call the `goForward` spy', () => { - const { container } = render(); - const selector = container.querySelector('.usa-button-primary'); - - fireEvent.click(selector); - expect(props.goForward.called).to.be.true; - }); + it('should call the `goForward` spy when the `Continue` button is clicked', () => { + const goForwardSpy = sinon.spy(); + const { selectors } = subject({ goForward: goForwardSpy }); + const { continueBtn } = selectors(); + fireEvent.click(continueBtn); + expect(goForwardSpy.called).to.be.true; }); }); diff --git a/src/applications/hca/tests/unit/components/FormPages/FinancialConfirmation.unit.spec.js b/src/applications/hca/tests/unit/components/FormPages/FinancialConfirmation.unit.spec.js index 520f8ef5ab2d..e227c1b77a8a 100644 --- a/src/applications/hca/tests/unit/components/FormPages/FinancialConfirmation.unit.spec.js +++ b/src/applications/hca/tests/unit/components/FormPages/FinancialConfirmation.unit.spec.js @@ -1,29 +1,24 @@ import React from 'react'; import { render } from '@testing-library/react'; import { expect } from 'chai'; - import FinancialConfirmation from '../../../../components/FormPages/FinancialConfirmation'; describe('hca Financial Confirmation page', () => { - const getData = () => ({ - props: { data: {}, goBack: () => {}, goForward: () => {} }, - }); - - context('when the component renders', () => { - const { props } = getData(); - - it('should render `va-alert` with correct status', () => { - const { container } = render(); - const selector = container.querySelector('va-alert'); - expect(selector).to.exist; - expect(selector).to.have.attr('status', 'info'); + const subject = () => { + const props = { data: {}, goBack: () => {}, goForward: () => {} }; + const { container } = render(); + const selectors = () => ({ + vaAlert: container.querySelector('va-alert'), + navBtns: container.querySelectorAll('.hca-button-progress'), }); + return { container, selectors }; + }; - it('should render navigation buttons', () => { - const { container } = render(); - expect( - container.querySelectorAll('.hca-button-progress'), - ).to.have.lengthOf(2); - }); + it('should render the page with content and navigation buttons', () => { + const { selectors } = subject(); + const { vaAlert, navBtns } = selectors(); + expect(vaAlert).to.exist; + expect(vaAlert).to.have.attr('status', 'info'); + expect(navBtns).to.have.lengthOf(2); }); }); diff --git a/src/applications/hca/tests/unit/components/FormPages/FinancialInformation.unit.spec.js b/src/applications/hca/tests/unit/components/FormPages/FinancialInformation.unit.spec.js index 929696c59e9c..642eb912c711 100644 --- a/src/applications/hca/tests/unit/components/FormPages/FinancialInformation.unit.spec.js +++ b/src/applications/hca/tests/unit/components/FormPages/FinancialInformation.unit.spec.js @@ -1,30 +1,24 @@ import React from 'react'; import { render } from '@testing-library/react'; import { expect } from 'chai'; - import FinancialInformation from '../../../../components/FormPages/FinancialInformation'; describe('hca Financial Information page', () => { - const getData = () => ({ - props: { data: {}, goBack: () => {}, goForward: () => {} }, - }); - - context('when the component renders', () => { - const { props } = getData(); - - it('should render with correct title', () => { - const { container } = render(); - const selector = container.querySelector( - '[data-testid="hca-custom-page-title"]', - ); - expect(selector).to.exist; - expect(selector).to.contain.text('Financial information you’ll need'); + const subject = () => { + const props = { data: {}, goBack: () => {}, goForward: () => {} }; + const { container } = render(); + const selectors = () => ({ + continueBtn: container.querySelector('.usa-button-primary'), + backBtn: container.querySelector('.usa-button-secondary'), }); + return { container, selectors }; + }; - it('should render navigation buttons', () => { - const { container } = render(); - expect(container.querySelector('.usa-button-primary')).to.exist; - expect(container.querySelector('.usa-button-secondary')).to.exist; - }); + it('should render the page with content and navigation buttons', () => { + const { container, selectors } = subject(); + const { continueBtn, backBtn } = selectors(); + expect(container).to.not.be.empty; + expect(continueBtn).to.exist; + expect(backBtn).to.exist; }); }); diff --git a/src/applications/hca/tests/unit/components/FormPages/FinancialOnboarding.unit.spec.js b/src/applications/hca/tests/unit/components/FormPages/FinancialOnboarding.unit.spec.js index 2f5a60b4d649..9b4e56e3a545 100644 --- a/src/applications/hca/tests/unit/components/FormPages/FinancialOnboarding.unit.spec.js +++ b/src/applications/hca/tests/unit/components/FormPages/FinancialOnboarding.unit.spec.js @@ -1,32 +1,24 @@ import React from 'react'; import { render } from '@testing-library/react'; import { expect } from 'chai'; - import FinancialOnboarding from '../../../../components/FormPages/FinancialOnboarding'; describe('hca Financial Onboarding page', () => { - const getData = () => ({ - props: { data: {}, goBack: () => {}, goForward: () => {} }, - }); - - context('when the component renders', () => { - const { props } = getData(); - - it('should render with correct title', () => { - const { container } = render(); - const selector = container.querySelector( - '[data-testid="hca-custom-page-title"]', - ); - expect(selector).to.exist; - expect(selector).to.contain.text( - 'How we use your household financial information', - ); + const subject = () => { + const props = { data: {}, goBack: () => {}, goForward: () => {} }; + const { container } = render(); + const selectors = () => ({ + continueBtn: container.querySelector('.usa-button-primary'), + backBtn: container.querySelector('.usa-button-secondary'), }); + return { container, selectors }; + }; - it('should render navigation buttons', () => { - const { container } = render(); - expect(container.querySelector('.usa-button-primary')).to.exist; - expect(container.querySelector('.usa-button-secondary')).to.exist; - }); + it('should render the page with content and navigation buttons', () => { + const { container, selectors } = subject(); + const { continueBtn, backBtn } = selectors(); + expect(container).to.not.be.empty; + expect(continueBtn).to.exist; + expect(backBtn).to.exist; }); }); diff --git a/src/applications/hca/tests/unit/components/FormPages/InsuranceInformation.unit.spec.js b/src/applications/hca/tests/unit/components/FormPages/InsuranceInformation.unit.spec.js new file mode 100644 index 000000000000..b95e7d2a4cc0 --- /dev/null +++ b/src/applications/hca/tests/unit/components/FormPages/InsuranceInformation.unit.spec.js @@ -0,0 +1,24 @@ +import React from 'react'; +import { render } from '@testing-library/react'; +import { expect } from 'chai'; +import InsuranceInformation from '../../../../components/FormPages/InsuranceInformation'; + +describe('hca Insurance Information page', () => { + const subject = () => { + const props = { data: {}, goBack: () => {}, goForward: () => {} }; + const { container } = render(); + const selectors = () => ({ + continueBtn: container.querySelector('.usa-button-primary'), + backBtn: container.querySelector('.usa-button-secondary'), + }); + return { container, selectors }; + }; + + it('should render the page with content and navigation buttons', () => { + const { container, selectors } = subject(); + const { continueBtn, backBtn } = selectors(); + expect(container).to.not.be.empty; + expect(continueBtn).to.exist; + expect(backBtn).to.exist; + }); +}); diff --git a/src/applications/mhv-medical-records/actions/allergies.js b/src/applications/mhv-medical-records/actions/allergies.js index bcf31347b721..b07e91020309 100644 --- a/src/applications/mhv-medical-records/actions/allergies.js +++ b/src/applications/mhv-medical-records/actions/allergies.js @@ -10,10 +10,10 @@ import { addAlert } from './alerts'; import { dispatchDetails } from '../util/helpers'; import { getListWithRetry } from './common'; -export const getAllergiesList = ({ +export const getAllergiesList = ( isCurrent = false, isAccelerating = false, -} = {}) => async dispatch => { +) => async dispatch => { dispatch({ type: Actions.Allergies.UPDATE_LIST_STATE, payload: Constants.loadStates.FETCHING, diff --git a/src/applications/mhv-medical-records/actions/vitals.js b/src/applications/mhv-medical-records/actions/vitals.js index 70fd002d8647..c4b1b990e68a 100644 --- a/src/applications/mhv-medical-records/actions/vitals.js +++ b/src/applications/mhv-medical-records/actions/vitals.js @@ -1,17 +1,26 @@ import { Actions } from '../util/actionTypes'; -import { getVitalsList } from '../api/MrApi'; +import { getVitalsList, getAcceleratedVitals } from '../api/MrApi'; import * as Constants from '../util/constants'; import { addAlert } from './alerts'; import { isArrayAndHasItems } from '../util/helpers'; import { getListWithRetry } from './common'; -export const getVitals = (isCurrent = false) => async dispatch => { +export const getVitals = ( + isCurrent = false, + isAccelerating = false, + vitalsDate = '', +) => async dispatch => { dispatch({ type: Actions.Vitals.UPDATE_LIST_STATE, payload: Constants.loadStates.FETCHING, }); try { - const response = await getListWithRetry(dispatch, getVitalsList); + let response; + if (isAccelerating) { + response = await getAcceleratedVitals(vitalsDate); + } else { + response = await getListWithRetry(dispatch, getVitalsList); + } dispatch({ type: Actions.Vitals.GET_LIST, response, diff --git a/src/applications/mhv-medical-records/api/MrApi.js b/src/applications/mhv-medical-records/api/MrApi.js index 8784d9445f89..8717a5a62b0f 100644 --- a/src/applications/mhv-medical-records/api/MrApi.js +++ b/src/applications/mhv-medical-records/api/MrApi.js @@ -97,6 +97,17 @@ export const getVitalsList = () => { }); }; +export const getAcceleratedVitals = async vitalsDate => { + const from = `&from=${vitalsDate}`; + const to = `&to=${vitalsDate}`; + return apiRequest( + `${apiBasePath}/medical_records/vitals?use_oh_data_path=1${from}${to}`, + { + headers, + }, + ); +}; + export const getConditions = async () => { return apiRequest(`${apiBasePath}/medical_records/conditions`, { headers, diff --git a/src/applications/mhv-medical-records/components/RecordList/RecordList.jsx b/src/applications/mhv-medical-records/components/RecordList/RecordList.jsx index f6df557fd53b..28a2a69bdec5 100644 --- a/src/applications/mhv-medical-records/components/RecordList/RecordList.jsx +++ b/src/applications/mhv-medical-records/components/RecordList/RecordList.jsx @@ -13,7 +13,7 @@ import { getParamValue } from '../../util/helpers'; // This value dictates how many pages are displayed in a pagination component const MAX_PAGE_LIST_LENGTH = 5; const RecordList = props => { - const { records, type, perPage = 10, hidePagination } = props; + const { records, type, perPage = 10, hidePagination, domainOptions } = props; const totalEntries = records?.length; const history = useHistory(); @@ -53,7 +53,7 @@ const RecordList = props => { setCurrentRecords(paginatedRecords.current[currentPage - 1]); } }, - [records, perPage], + [records, perPage, currentPage], ); useEffect( @@ -88,7 +88,12 @@ const RecordList = props => {
{currentRecords?.length > 0 && currentRecords.map((record, idx) => ( - + ))}
@@ -119,6 +124,7 @@ const RecordList = props => { export default RecordList; RecordList.propTypes = { + domainOptions: PropTypes.object, hidePagination: PropTypes.bool, perPage: PropTypes.number, records: PropTypes.array, diff --git a/src/applications/mhv-medical-records/components/RecordList/RecordListItem.jsx b/src/applications/mhv-medical-records/components/RecordList/RecordListItem.jsx index d351e161f0ef..96abe1a523f0 100644 --- a/src/applications/mhv-medical-records/components/RecordList/RecordListItem.jsx +++ b/src/applications/mhv-medical-records/components/RecordList/RecordListItem.jsx @@ -9,7 +9,7 @@ import { recordType } from '../../util/constants'; import AllergyListItem from './AllergyListItem'; const RecordListItem = props => { - const { record, type } = props; + const { record, type, domainOptions } = props; switch (type) { case recordType.LABS_AND_TESTS: @@ -19,7 +19,7 @@ const RecordListItem = props => { case recordType.VACCINES: return ; case recordType.VITALS: - return ; + return ; case recordType.HEALTH_CONDITIONS: return ; case recordType.ALLERGIES: @@ -32,6 +32,7 @@ const RecordListItem = props => { export default RecordListItem; RecordListItem.propTypes = { + domainOptions: PropTypes.object, record: PropTypes.object, type: PropTypes.string, }; diff --git a/src/applications/mhv-medical-records/components/RecordList/VitalListItem.jsx b/src/applications/mhv-medical-records/components/RecordList/VitalListItem.jsx index 3c57b20119d2..fe80dd9fc266 100644 --- a/src/applications/mhv-medical-records/components/RecordList/VitalListItem.jsx +++ b/src/applications/mhv-medical-records/components/RecordList/VitalListItem.jsx @@ -3,9 +3,11 @@ import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import _ from 'lodash'; import { vitalTypeDisplayNames } from '../../util/constants'; +import { dateFormatWithoutTimezone } from '../../util/helpers'; const VitalListItem = props => { - const { record } = props; + const { record, options = {} } = props; + const { isAccelerating } = options; const displayName = vitalTypeDisplayNames[record.type]; const updatedRecordType = useMemo( @@ -20,6 +22,36 @@ const VitalListItem = props => { [record.type], ); + const dataTestIds = useMemo( + () => { + if (isAccelerating) { + return { + displayName: `vital-${_.kebabCase(updatedRecordType)}-display-name`, + noRecordMessage: `vital-${_.kebabCase( + updatedRecordType, + )}-no-record-message`, + measurement: `vital-${_.kebabCase(updatedRecordType)}-measurement`, + date: `vital-${_.kebabCase(updatedRecordType)}-date`, + dateTimestamp: `vital-${_.kebabCase( + updatedRecordType, + )}-date-timestamp`, + reviewLink: `vital-${_.kebabCase( + updatedRecordType, + )}-review-over-time`, + }; + } + return { + displayName: 'vital-li-display-name', + noRecordMessage: 'vital-li-no-record-message', + measurement: 'vital-li-measurement', + date: 'vital-li-date', + dateTimestamp: 'vital-li-date-timestamp', + reviewLink: 'vital-li-review-over-time', + }; + }, + [updatedRecordType, isAccelerating], + ); + return ( { >

{displayName}

{record.noRecords && ( -

- {`There are no ${displayName.toLowerCase()} results in your VA medical records.`} +

+ {`There are no ${displayName.toLowerCase()} results ${ + isAccelerating + ? `from the current time frame.` + : 'in your VA medical records.' + }`}

)} @@ -47,7 +86,7 @@ const VitalListItem = props => { {record.measurement} @@ -55,16 +94,23 @@ const VitalListItem = props => {
Date: - {record.date} + + {isAccelerating + ? dateFormatWithoutTimezone( + record.effectiveDateTime, + 'MMMM d, yyyy', + ) + : record.date} +
Review your{' '} @@ -90,5 +136,6 @@ const VitalListItem = props => { export default VitalListItem; VitalListItem.propTypes = { + options: PropTypes.object, record: PropTypes.object, }; diff --git a/src/applications/mhv-medical-records/containers/Allergies.jsx b/src/applications/mhv-medical-records/containers/Allergies.jsx index 0344a5c870ca..d6b8f6d5fbf6 100644 --- a/src/applications/mhv-medical-records/containers/Allergies.jsx +++ b/src/applications/mhv-medical-records/containers/Allergies.jsx @@ -64,18 +64,21 @@ const Allergies = props => { ); const user = useSelector(state => state.user.profile); - const { isAccelerating } = useAcceleratedData(); + const { isAcceleratingAllergies } = useAcceleratedData(); const activeAlert = useAlerts(dispatch); const [downloadStarted, setDownloadStarted] = useState(false); + const dispatchAction = isCurrent => { + return getAllergiesList(isCurrent, isAcceleratingAllergies); + }; + useListRefresh({ listState, listCurrentAsOf: allergiesCurrentAsOf, refreshStatus: refresh.status, extractType: refreshExtractTypes.ALLERGY, - dispatchAction: isCurrent => - getAllergiesList({ isCurrent, isAccelerating }), + dispatchAction, dispatch, }); @@ -120,7 +123,7 @@ const Allergies = props => { const scaffold = generatePdfScaffold(user, title, value, subject, preface); const pdfData = { ...scaffold, - ...generateAllergiesContent(allergies, isAccelerating), + ...generateAllergiesContent(allergies, isAcceleratingAllergies), }; const pdfName = `VA-allergies-list-${getNameDateAndTime(user)}`; makePdf(pdfName, pdfData, 'Allergies', runningUnitTest); @@ -128,7 +131,7 @@ const Allergies = props => { const generateAllergyListItemTxt = item => { setDownloadStarted(true); - if (isAccelerating) { + if (isAcceleratingAllergies) { return ` ${txtLine}\n\n ${item.name}\n @@ -214,7 +217,7 @@ ${allergies.map(entry => generateAllergyListItemTxt(entry)).join('')}`; ({ ...allergy, - isOracleHealthData: isAccelerating, + isOracleHealthData: isAcceleratingAllergies, }))} type={recordType.ALLERGIES} /> diff --git a/src/applications/mhv-medical-records/containers/AllergyDetails.jsx b/src/applications/mhv-medical-records/containers/AllergyDetails.jsx index b793b8d270ca..2a0a27a9b9c4 100644 --- a/src/applications/mhv-medical-records/containers/AllergyDetails.jsx +++ b/src/applications/mhv-medical-records/containers/AllergyDetails.jsx @@ -53,7 +53,7 @@ const AllergyDetails = props => { const { vamcEhrData } = useSelector(selectDrupalStaticData); - const { isAccelerating } = useAcceleratedData(); + const { isAcceleratingAllergies } = useAcceleratedData(); const { allergyId } = useParams(); const activeAlert = useAlerts(dispatch); @@ -66,19 +66,27 @@ const AllergyDetails = props => { } return { ...allergy, - isOracleHealthData: isAccelerating, + isOracleHealthData: isAcceleratingAllergies, }; }, - [allergy, isAccelerating], + [allergy, isAcceleratingAllergies], ); useEffect( () => { if (allergyId && !vamcEhrData?.loading) { - dispatch(getAllergyDetails(allergyId, allergyList, isAccelerating)); + dispatch( + getAllergyDetails(allergyId, allergyList, isAcceleratingAllergies), + ); } }, - [allergyId, allergyList, dispatch, isAccelerating, vamcEhrData?.loading], + [ + allergyId, + allergyList, + dispatch, + isAcceleratingAllergies, + vamcEhrData?.loading, + ], ); useEffect( @@ -120,7 +128,7 @@ const AllergyDetails = props => { }; const generateAllergyTextContent = () => { - if (isAccelerating) { + if (isAcceleratingAllergies) { return ` ${crisisLineHeader}\n\n ${allergyData.name}\n diff --git a/src/applications/mhv-medical-records/containers/App.jsx b/src/applications/mhv-medical-records/containers/App.jsx index 73878af4652d..34fc573dbd97 100644 --- a/src/applications/mhv-medical-records/containers/App.jsx +++ b/src/applications/mhv-medical-records/containers/App.jsx @@ -127,11 +127,17 @@ const App = ({ children }) => { useEffect( () => { - if (!current) return; + if (!current) return () => {}; const resizeObserver = new ResizeObserver(() => { setHeight(current.offsetHeight); }); resizeObserver.observe(current); + return () => { + if (current) { + resizeObserver.unobserve(current); + } + resizeObserver.disconnect(); + }; }, [current], ); diff --git a/src/applications/mhv-medical-records/containers/LandingPage.jsx b/src/applications/mhv-medical-records/containers/LandingPage.jsx index a58eb8a80dc4..9011f002e4ba 100644 --- a/src/applications/mhv-medical-records/containers/LandingPage.jsx +++ b/src/applications/mhv-medical-records/containers/LandingPage.jsx @@ -1,4 +1,4 @@ -import React, { useEffect } from 'react'; +import React, { useEffect, useMemo } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { Link } from 'react-router-dom'; import { focusElement } from '@department-of-veterans-affairs/platform-utilities/ui'; @@ -46,7 +46,15 @@ const LandingPage = () => { const phase0p5Flag = useSelector( state => state.featureToggles.mhv_integration_medical_records_to_phase_1, ); - const { isAccelerating } = useAcceleratedData(); + const { + isAcceleratingAllergies, + isAcceleratingVitals, + } = useAcceleratedData(); + + const isAcceleratingEnabled = useMemo( + () => isAcceleratingAllergies || isAcceleratingVitals, + [isAcceleratingAllergies, isAcceleratingVitals], + ); useEffect( () => { @@ -91,7 +99,7 @@ const LandingPage = () => { Get results of your VA medical tests. This includes blood tests, X-rays, and other imaging tests.

- {isAccelerating ? ( + {isAcceleratingEnabled ? ( { This includes summaries of your stays in health facilities (called admission and discharge summaries).

- {isAccelerating ? ( + {isAcceleratingEnabled ? ( <>
{ Get a list of all vaccines (immunizations) in your VA medical records.

- {isAccelerating ? ( + {isAcceleratingEnabled ? (
{ medical records. This includes medication side effects (also called adverse drug reactions).

- - Go to your allergies and reactions - + {isAcceleratingEnabled && !isAcceleratingAllergies ? ( +
+ View your allergies on My VA Health (opens in new tab) + + ) : ( + + Go to your allergies and reactions + + )} {displayConditions && ( @@ -214,7 +237,7 @@ const LandingPage = () => { Get a list of health conditions your VA providers are helping you manage.

- {isAccelerating ? ( + {isAcceleratingEnabled ? ( {
  • Height and weight
  • Temperature
  • - {isAccelerating ? ( + {isAcceleratingEnabled && !isAcceleratingVitals ? (
    View your vitals on My VA Health (opens in new tab) diff --git a/src/applications/mhv-medical-records/containers/VitalDetails.jsx b/src/applications/mhv-medical-records/containers/VitalDetails.jsx index 69bfd0d6ac4e..bba4540a62c2 100644 --- a/src/applications/mhv-medical-records/containers/VitalDetails.jsx +++ b/src/applications/mhv-medical-records/containers/VitalDetails.jsx @@ -49,6 +49,8 @@ import DownloadSuccessAlert from '../components/shared/DownloadSuccessAlert'; import NewRecordsIndicator from '../components/shared/NewRecordsIndicator'; import useListRefresh from '../hooks/useListRefresh'; +import useAcceleratedData from '../hooks/useAcceleratedData'; + const MAX_PAGE_LIST_LENGTH = 10; const VitalDetails = props => { const { runningUnitTest } = props; @@ -65,7 +67,7 @@ const VitalDetails = props => { const dispatch = useDispatch(); const perPage = 10; - const [currentVitals, setCurrentVitals] = useState([]); + const [currentVitals, setCurrentVitals] = useState(); const [currentPage, setCurrentPage] = useState(1); const paginatedVitals = useRef([]); const activeAlert = useAlerts(dispatch); @@ -81,6 +83,12 @@ const VitalDetails = props => { state => state.mr.vitals.listCurrentAsOf, ); + const { isAcceleratingVitals } = useAcceleratedData(); + + if (records?.length === 0 && isAcceleratingVitals) { + window.location.replace('/my-health/medical-records/vitals'); + } + useListRefresh({ listState, listCurrentAsOf: vitalsCurrentAsOf, @@ -394,6 +402,7 @@ Provider notes: ${vital.notes}\n\n`, ); } + return (
    { const dispatch = useDispatch(); @@ -30,17 +36,37 @@ const Vitals = () => { const user = useSelector(state => state.user.profile); const refresh = useSelector(state => state.mr.refresh); const [cards, setCards] = useState(null); + const [acceleratedVitalsDate, setAcceleratedVitalsDate] = useState( + format(new Date(), 'yyyy-MM'), + ); + const [displayDate, setDisplayDate] = useState(acceleratedVitalsDate); const activeAlert = useAlerts(dispatch); const vitalsCurrentAsOf = useSelector( state => state.mr.vitals.listCurrentAsOf, ); + const { isAcceleratingVitals } = useAcceleratedData(); + const isLoadingAcceleratedData = + isAcceleratingVitals && listState === Constants.loadStates.FETCHING; + + const dispatchAction = useMemo( + () => { + return isCurrent => { + return getVitals( + isCurrent, + isAcceleratingVitals, + acceleratedVitalsDate, + ); + }; + }, + [acceleratedVitalsDate, isAcceleratingVitals], + ); useListRefresh({ listState, listCurrentAsOf: vitalsCurrentAsOf, refreshStatus: refresh.status, extractType: refreshExtractTypes.VPR, - dispatchAction: getVitals, + dispatchAction, dispatch, }); @@ -53,7 +79,7 @@ const Vitals = () => { dispatch(reloadRecords()); }; }, - [dispatch], + [dispatch, listState], ); useEffect( @@ -76,11 +102,11 @@ const Vitals = () => { if (vitals?.length) { // create vital type cards based on the types of records present const firstOfEach = []; - Object.keys(vitalTypes).forEach(type => { - const firstOfType = vitals.find(item => item.type === type); + for (const [key, types] of Object.entries(vitalTypes)) { + const firstOfType = vitals.find(item => types.includes(item.type)); if (firstOfType) firstOfEach.push(firstOfType); - else firstOfEach.push({ type, noRecords: true }); - }); + else firstOfEach.push({ type: key, noRecords: true }); + } setCards(firstOfEach); } }, @@ -113,6 +139,7 @@ const Vitals = () => { if (vitals?.length === 0) { return ( <> +

    Vitals include:

    • Blood pressure and blood oxygen level
    • Breathing rate and heart rate
    • @@ -126,28 +153,51 @@ const Vitals = () => { if (cards?.length) { return ( <> - { - dispatch(reloadRecords()); - }} - /> + {!isAcceleratingVitals && ( + { + dispatch(reloadRecords()); + }} + /> + )} + {isAcceleratingVitals && ( +
      +
      +

      + Showing most recent vitals from{' '} + + {getMonthFromSelectedDate({ date: displayDate })} + + . +

      +
      +
      + )} ); } + return (
      { ); }; + const updateDate = event => { + const [year, month] = event.target.value.split('-'); + // Ignore transient date changes. + if (year?.length === 4 && month?.length === 2) { + setAcceleratedVitalsDate(`${year}-${month}`); + } + }; + + const triggerApiUpdate = e => { + e.preventDefault(); + setDisplayDate(acceleratedVitalsDate); + dispatch({ + type: Actions.Vitals.UPDATE_LIST_STATE, + payload: Constants.loadStates.PRE_FETCH, + }); + }; + + const datePicker = () => { + return ( +
      +
      + +
      +
      + +
      +
      + ); + }; + return (
      @@ -167,9 +259,21 @@ const Vitals = () => {

      {`Vitals are basic health numbers your providers check at your - appointments. ${vitals?.length === 0 ? 'Vitals include:' : ''}`} + appointments.`}

      - {content()} + {isAcceleratingVitals && datePicker()} + {isLoadingAcceleratedData && ( + <> +
      + +
      + + )} + {!isLoadingAcceleratedData && content()}
      ); }; diff --git a/src/applications/mhv-medical-records/hooks/useAcceleratedData.js b/src/applications/mhv-medical-records/hooks/useAcceleratedData.js index 71dbe514bee7..f16c0c2822dc 100644 --- a/src/applications/mhv-medical-records/hooks/useAcceleratedData.js +++ b/src/applications/mhv-medical-records/hooks/useAcceleratedData.js @@ -6,12 +6,22 @@ import { useMemo, useEffect } from 'react'; const useAcceleratedData = () => { const dispatch = useDispatch(); - const useAcceleratedApi = useSelector( + const isAcceleratedDeliveryEnabled = useSelector( + state => + state.featureToggles[FEATURE_FLAG_NAMES.mhvAcceleratedDeliveryEnabled], + ); + const isAcceleratingAllergiesEnabled = useSelector( state => state.featureToggles[ FEATURE_FLAG_NAMES.mhvAcceleratedDeliveryAllergiesEnabled ], ); + const isAcceleratingVitalsEnabled = useSelector( + state => + state.featureToggles[ + FEATURE_FLAG_NAMES.mhvAcceleratedDeliveryVitalSignsEnabled + ], + ); useEffect( () => { @@ -22,14 +32,29 @@ const useAcceleratedData = () => { ); const isCerner = useSelector(selectIsCernerPatient); - const isAccelerating = useMemo( + const isAcceleratingAllergies = useMemo( () => { - return useAcceleratedApi && isCerner; + return ( + isAcceleratedDeliveryEnabled && + isAcceleratingAllergiesEnabled && + isCerner + ); }, - [useAcceleratedApi, isCerner], + [isAcceleratedDeliveryEnabled, isAcceleratingAllergiesEnabled, isCerner], ); + + const isAcceleratingVitals = useMemo( + () => { + return ( + isAcceleratedDeliveryEnabled && isAcceleratingVitalsEnabled && isCerner + ); + }, + [isAcceleratedDeliveryEnabled, isAcceleratingVitalsEnabled, isCerner], + ); + return { - isAccelerating, + isAcceleratingAllergies, + isAcceleratingVitals, }; }; diff --git a/src/applications/mhv-medical-records/reducers/vitals.js b/src/applications/mhv-medical-records/reducers/vitals.js index 9a3a3a371c12..cadee5c5374e 100644 --- a/src/applications/mhv-medical-records/reducers/vitals.js +++ b/src/applications/mhv-medical-records/reducers/vitals.js @@ -47,7 +47,7 @@ const getUnit = (type, unit) => { }; const getMeasurement = (record, type) => { - if (type === vitalTypes.BLOOD_PRESSURE) { + if (vitalTypes.BLOOD_PRESSURE.includes(type)) { const systolic = record.component.find( item => item.code.coding[0].code === loincCodes.SYSTOLIC, ); @@ -85,6 +85,7 @@ export const convertVital = record => { date: record?.effectiveDateTime ? dateFormatWithoutTimezone(record.effectiveDateTime) : EMPTY_FIELD, + effectiveDateTime: record?.effectiveDateTime, location: extractLocation(record), notes: (isArrayAndHasItems(record.note) && record.note[0].text) || EMPTY_FIELD, @@ -122,6 +123,7 @@ export const vitalReducer = (state = initialState, action) => { if ( Array.isArray(originalList) && Array.isArray(updatedList) && + // FIXME: the updated list could be the same length as the original list but have different contents. originalList.length !== updatedList.length ) { return { diff --git a/src/applications/mhv-medical-records/tests/containers/Vitals.unit.spec.jsx b/src/applications/mhv-medical-records/tests/containers/Vitals.unit.spec.jsx index 644f3d2e8e5a..76e80d6ef27e 100644 --- a/src/applications/mhv-medical-records/tests/containers/Vitals.unit.spec.jsx +++ b/src/applications/mhv-medical-records/tests/containers/Vitals.unit.spec.jsx @@ -45,8 +45,9 @@ describe('Vitals list container', () => { it('displays seven types of records', async () => { await waitFor(() => { - // count doubled due to print view - expect(screen.getAllByTestId('record-list-item').length).to.eq(14); + // count doubled due to print view (7+7) + // NOTE: added 1 for OH, need to update when OH gets the print view + expect(screen.getAllByTestId('record-list-item').length).to.eq(15); }); }); diff --git a/src/applications/mhv-medical-records/tests/e2e/accelerated/medical-records-view-all-domains-enabled.cypress.oracle-health.cypress.spec.js b/src/applications/mhv-medical-records/tests/e2e/accelerated/medical-records-view-all-domains-enabled.cypress.oracle-health.cypress.spec.js new file mode 100644 index 000000000000..52d9d078b332 --- /dev/null +++ b/src/applications/mhv-medical-records/tests/e2e/accelerated/medical-records-view-all-domains-enabled.cypress.oracle-health.cypress.spec.js @@ -0,0 +1,41 @@ +import MedicalRecordsSite from '../mr_site/MedicalRecordsSite'; +// import VitalsListPage from './pages/VitalsListPage'; +import oracleHealthUser from '../fixtures/user/oracle-health.json'; + +describe('Medical Records View Vitals', () => { + const site = new MedicalRecordsSite(); + + beforeEach(() => { + site.login(oracleHealthUser, false); + site.mockFeatureToggles({ + isAcceleratingEnabled: true, + isAcceleratingVitals: true, + isAcceleratingAllergies: true, + }); + cy.visit('my-health/medical-records'); + }); + + it('Visits View Vitals List', () => { + // check for MY Va Health links + cy.get('[data-testid="labs-and-tests-oh-landing-page-link"]').should( + 'be.visible', + ); + cy.get('[data-testid="summary-and-notes-oh-landing-page-link"]').should( + 'be.visible', + ); + cy.get('[data-testid="vaccines-oh-landing-page-link"]').should( + 'be.visible', + ); + cy.get('[data-testid="health-conditions-oh-landing-page-link"]').should( + 'be.visible', + ); + + cy.get('[data-testid="allergies-landing-page-link"]').should('be.visible'); + + cy.get('[data-testid="vitals-landing-page-link"]').should('be.visible'); + + // Axe check + cy.injectAxe(); + cy.axeCheck('main'); + }); +}); diff --git a/src/applications/mhv-medical-records/tests/e2e/medical-records-view-allergies-list.oracle-health.cypress.spec.js b/src/applications/mhv-medical-records/tests/e2e/accelerated/medical-records-view-allergies-list.oracle-health.cypress.spec.js similarity index 78% rename from src/applications/mhv-medical-records/tests/e2e/medical-records-view-allergies-list.oracle-health.cypress.spec.js rename to src/applications/mhv-medical-records/tests/e2e/accelerated/medical-records-view-allergies-list.oracle-health.cypress.spec.js index fae9da1db2f7..708256e07f22 100644 --- a/src/applications/mhv-medical-records/tests/e2e/medical-records-view-allergies-list.oracle-health.cypress.spec.js +++ b/src/applications/mhv-medical-records/tests/e2e/accelerated/medical-records-view-allergies-list.oracle-health.cypress.spec.js @@ -1,11 +1,15 @@ -import MedicalRecordsSite from './mr_site/MedicalRecordsSite'; -import allergies from './fixtures/allergies/sample-lighthouse.json'; -import oracleHealthUser from './fixtures/user/oracle-health.json'; +import MedicalRecordsSite from '../mr_site/MedicalRecordsSite'; +import allergies from '../fixtures/allergies/sample-lighthouse.json'; +import oracleHealthUser from '../fixtures/user/oracle-health.json'; describe('Medical Records View Allergies', () => { - it('Visits Medical Records View Allergies List', () => { + beforeEach(() => { const site = new MedicalRecordsSite(); - site.login(oracleHealthUser, true); + site.login(oracleHealthUser, false); + site.mockFeatureToggles({ + isAcceleratingEnabled: true, + isAcceleratingAllergies: true, + }); // set up intercepts cy.intercept('POST', '/my_health/v1/medical_records/session').as('session'); @@ -14,6 +18,9 @@ describe('Medical Records View Allergies', () => { expect(req.url).to.contain('use_oh_data_path=1'); req.reply(allergies); }).as('allergiesList'); + }); + + it('Visits Medical Records View Allergies List', () => { cy.visit('my-health/medical-records'); // check for MY Va Health links @@ -30,6 +37,8 @@ describe('Medical Records View Allergies', () => { 'be.visible', ); + cy.get('[data-testid="vitals-oh-landing-page-link"]').should('be.visible'); + cy.get('[data-testid="allergies-landing-page-link"]') .should('be.visible') .click(); diff --git a/src/applications/mhv-medical-records/tests/e2e/accelerated/medical-records-view-allergies-list.oracle-health.disabled.cypress.spec.js b/src/applications/mhv-medical-records/tests/e2e/accelerated/medical-records-view-allergies-list.oracle-health.disabled.cypress.spec.js new file mode 100644 index 000000000000..3fdd31a3760d --- /dev/null +++ b/src/applications/mhv-medical-records/tests/e2e/accelerated/medical-records-view-allergies-list.oracle-health.disabled.cypress.spec.js @@ -0,0 +1,46 @@ +import MedicalRecordsSite from '../mr_site/MedicalRecordsSite'; +// import VitalsListPage from './pages/VitalsListPage'; +import oracleHealthUser from '../fixtures/user/oracle-health.json'; +import allergies from '../fixtures/allergies/sample-lighthouse.json'; + +describe('Medical Records View Vitals', () => { + const site = new MedicalRecordsSite(); + + beforeEach(() => { + site.login(oracleHealthUser, false); + site.mockFeatureToggles({ + isAcceleratingEnabled: false, + isAcceleratingAllergies: false, + }); + + // set up intercepts + cy.intercept('POST', '/my_health/v1/medical_records/session').as('session'); + cy.intercept('GET', '/my_health/v1/medical_records/allergies*', req => { + // check the correct param was used + expect(req.url).to.contain('use_oh_data_path=1'); + req.reply(allergies); + }).as('allergiesList'); + }); + + it('Visits View Vitals List', () => { + cy.visit('my-health/medical-records'); + + // check for MY Va Health links + cy.get('[data-testid="labs-and-tests-landing-page-link"]').should( + 'be.visible', + ); + cy.get('[data-testid="notes-landing-page-link"]').should('be.visible'); + cy.get('[data-testid="vaccines-landing-page-link"]').should('be.visible'); + cy.get('[data-testid="conditions-landing-page-link"]').should('be.visible'); + + cy.get('[data-testid="allergies-landing-page-link"]').should('be.visible'); + + cy.get('[data-testid="vitals-landing-page-link"]') + .should('be.visible') + .click(); + + // Axe check + cy.injectAxe(); + cy.axeCheck('main'); + }); +}); diff --git a/src/applications/mhv-medical-records/tests/e2e/accelerated/vitals/view-vitals-list.oracle-health.cypress.spec.js b/src/applications/mhv-medical-records/tests/e2e/accelerated/vitals/view-vitals-list.oracle-health.cypress.spec.js new file mode 100644 index 000000000000..3d08a5c22b52 --- /dev/null +++ b/src/applications/mhv-medical-records/tests/e2e/accelerated/vitals/view-vitals-list.oracle-health.cypress.spec.js @@ -0,0 +1,54 @@ +import MedicalRecordsSite from '../../mr_site/MedicalRecordsSite'; +// import VitalsListPage from './pages/VitalsListPage'; +import oracleHealthUser from '../../fixtures/user/oracle-health.json'; +import vitals from '../../fixtures/vitals/sample-lighthouse.json'; + +describe('Medical Records View Vitals', () => { + const site = new MedicalRecordsSite(); + + beforeEach(() => { + site.login(oracleHealthUser, false); + site.mockFeatureToggles({ + isAcceleratingEnabled: true, + isAcceleratingVitals: true, + }); + cy.visit('my-health/medical-records'); + cy.intercept('POST', '/my_health/v1/medical_records/session').as('session'); + cy.intercept('GET', '/my_health/v1/medical_records/vitals*', req => { + // check the correct param was used + expect(req.url).to.contain('use_oh_data_path=1'); + req.reply(vitals); + }).as('vitals-list'); + }); + + it('Visits View Vitals List', () => { + // check for MY Va Health links + cy.get('[data-testid="labs-and-tests-oh-landing-page-link"]').should( + 'be.visible', + ); + cy.get('[data-testid="summary-and-notes-oh-landing-page-link"]').should( + 'be.visible', + ); + cy.get('[data-testid="vaccines-oh-landing-page-link"]').should( + 'be.visible', + ); + cy.get('[data-testid="health-conditions-oh-landing-page-link"]').should( + 'be.visible', + ); + + cy.get('[data-testid="allergies-oh-landing-page-link"]').should( + 'be.visible', + ); + + cy.get('[data-testid="vitals-landing-page-link"]') + .should('be.visible') + .click(); + + cy.get("[data-testid='current-date-display']").should('be.visible'); + cy.get("[data-testid='current-date-display']").should('not.be.empty'); + + // Axe check + cy.injectAxe(); + cy.axeCheck('main'); + }); +}); diff --git a/src/applications/mhv-medical-records/tests/e2e/accelerated/vitals/view-vitals-list.oracle-health.disabled.cypress.spec.js b/src/applications/mhv-medical-records/tests/e2e/accelerated/vitals/view-vitals-list.oracle-health.disabled.cypress.spec.js new file mode 100644 index 000000000000..29f8e20ec018 --- /dev/null +++ b/src/applications/mhv-medical-records/tests/e2e/accelerated/vitals/view-vitals-list.oracle-health.disabled.cypress.spec.js @@ -0,0 +1,42 @@ +import MedicalRecordsSite from '../../mr_site/MedicalRecordsSite'; +// import VitalsListPage from './pages/VitalsListPage'; +import oracleHealthUser from '../../fixtures/user/oracle-health.json'; +import vitals from '../../fixtures/vitals/sample-lighthouse.json'; + +describe('Medical Records View Vitals', () => { + const site = new MedicalRecordsSite(); + + beforeEach(() => { + site.login(oracleHealthUser, false); + site.mockFeatureToggles({ + isAcceleratingVitals: false, + }); + cy.visit('my-health/medical-records'); + cy.intercept('POST', '/my_health/v1/medical_records/session').as('session'); + cy.intercept('GET', '/my_health/v1/medical_records/vitals*', req => { + // check the correct param was used + expect(req.url).to.not.contain('use_oh_data_path=1'); + req.reply(vitals); + }).as('vitals-list'); + }); + + it('Visits View Vitals List', () => { + // check for MY Va Health links + cy.get('[data-testid="labs-and-tests-landing-page-link"]').should( + 'be.visible', + ); + cy.get('[data-testid="notes-landing-page-link"]').should('be.visible'); + cy.get('[data-testid="vaccines-landing-page-link"]').should('be.visible'); + cy.get('[data-testid="conditions-landing-page-link"]').should('be.visible'); + + cy.get('[data-testid="allergies-landing-page-link"]').should('be.visible'); + + cy.get('[data-testid="vitals-landing-page-link"]') + .should('be.visible') + .click(); + + // Axe check + cy.injectAxe(); + cy.axeCheck('main'); + }); +}); diff --git a/src/applications/mhv-medical-records/tests/e2e/accelerated/vitals/view-vitals-list.oracle-health.domain.blood-pressure.cypress.spec.js b/src/applications/mhv-medical-records/tests/e2e/accelerated/vitals/view-vitals-list.oracle-health.domain.blood-pressure.cypress.spec.js new file mode 100644 index 000000000000..90be56e77eff --- /dev/null +++ b/src/applications/mhv-medical-records/tests/e2e/accelerated/vitals/view-vitals-list.oracle-health.domain.blood-pressure.cypress.spec.js @@ -0,0 +1,115 @@ +import MedicalRecordsSite from '../../mr_site/MedicalRecordsSite'; +// import VitalsListPage from './pages/VitalsListPage'; +import oracleHealthUser from '../../fixtures/user/oracle-health.json'; +import vitals from '../../fixtures/vitals/blood-pressure.json'; + +describe('Medical Records View Vitals', () => { + const site = new MedicalRecordsSite(); + + beforeEach(() => { + site.login(oracleHealthUser, false); + site.mockFeatureToggles({ + isAcceleratingEnabled: true, + isAcceleratingVitals: true, + }); + cy.visit('my-health/medical-records'); + cy.intercept('POST', '/my_health/v1/medical_records/session', {}).as( + 'session', + ); + cy.intercept('GET', '/my_health/v1/medical_records/session/status', req => { + req.reply({ + retrievedDate: 1732224967218, + lastRefreshDate: null, + facilityExtractStatusList: [ + { + extract: 'Allergy', + lastRequested: 1732224367218, + lastCompleted: 1732224667218, + lastSuccessfulCompleted: 1732224667218, + }, + { + extract: 'ImagingStudy', + lastRequested: 1732224367218, + lastCompleted: 1732224667218, + lastSuccessfulCompleted: 1732224667218, + }, + { + extract: 'VPR', + lastRequested: 1732224367218, + lastCompleted: 1732224667218, + lastSuccessfulCompleted: 1732224667218, + }, + { + extract: 'ChemistryHematology', + lastRequested: 1732224367218, + lastCompleted: 1732224667218, + lastSuccessfulCompleted: 1732224667218, + }, + ], + }); + }); + cy.intercept('GET', '/my_health/v1/medical_records/vitals*', req => { + // check the correct param was used + expect(req.url).to.contain('use_oh_data_path=1'); + req.reply(vitals); + }).as('vitals-list'); + }); + + it('Visits View Vitals List', () => { + // check for MY Va Health links + cy.get('[data-testid="labs-and-tests-oh-landing-page-link"]').should( + 'be.visible', + ); + cy.get('[data-testid="summary-and-notes-oh-landing-page-link"]').should( + 'be.visible', + ); + cy.get('[data-testid="vaccines-oh-landing-page-link"]').should( + 'be.visible', + ); + cy.get('[data-testid="health-conditions-oh-landing-page-link"]').should( + 'be.visible', + ); + + cy.get('[data-testid="allergies-oh-landing-page-link"]').should( + 'be.visible', + ); + + cy.get('[data-testid="vitals-landing-page-link"]') + .should('be.visible') + .click(); + + // switch to march 2024 + cy.get('select[name="vitals-date-pickerMonth"]').select('3'); + cy.get('input[name="vitals-date-pickerYear"]').clear(); + cy.get('input[name="vitals-date-pickerYear"]').type('2024'); + cy.get('[data-testid="update-time-frame-button"]').click({ + waitForAnimations: true, + }); + + cy.get("[data-testid='current-date-display']").should('be.visible'); + cy.get("[data-testid='current-date-display']").contains('March 2024'); + + // check for latest id + cy.get('[data-testid="vital-blood-pressure-measurement"]').should( + 'be.visible', + ); + cy.get('[data-testid="vital-blood-pressure-measurement"]').contains( + '130/81', + ); + + cy.get('[data-testid="vital-blood-pressure-date-timestamp"]').should( + 'be.visible', + ); + cy.get('[data-testid="vital-blood-pressure-date-timestamp"]').contains( + 'March 26, 2024', + ); + + cy.get('[data-testid="vital-blood-pressure-review-over-time"]').should( + 'be.visible', + ); + + // Axe check + cy.injectAxe(); + cy.axeCheck('main'); + }); +}); diff --git a/src/applications/mhv-medical-records/tests/e2e/accelerated/vitals/view-vitals-list.oracle-health.domain.heart-rate.cypress.spec.js b/src/applications/mhv-medical-records/tests/e2e/accelerated/vitals/view-vitals-list.oracle-health.domain.heart-rate.cypress.spec.js new file mode 100644 index 000000000000..af4fc48b1564 --- /dev/null +++ b/src/applications/mhv-medical-records/tests/e2e/accelerated/vitals/view-vitals-list.oracle-health.domain.heart-rate.cypress.spec.js @@ -0,0 +1,110 @@ +import MedicalRecordsSite from '../../mr_site/MedicalRecordsSite'; +// import VitalsListPage from './pages/VitalsListPage'; +import oracleHealthUser from '../../fixtures/user/oracle-health.json'; +import vitals from '../../fixtures/vitals/heart-rate.json'; + +describe('Medical Records View Vitals', () => { + const site = new MedicalRecordsSite(); + + beforeEach(() => { + site.login(oracleHealthUser, false); + site.mockFeatureToggles({ + isAcceleratingEnabled: true, + isAcceleratingVitals: true, + }); + cy.visit('my-health/medical-records'); + cy.intercept('POST', '/my_health/v1/medical_records/session', {}).as( + 'session', + ); + cy.intercept('GET', '/my_health/v1/medical_records/session/status', req => { + req.reply({ + retrievedDate: 1732224967218, + lastRefreshDate: null, + facilityExtractStatusList: [ + { + extract: 'Allergy', + lastRequested: 1732224367218, + lastCompleted: 1732224667218, + lastSuccessfulCompleted: 1732224667218, + }, + { + extract: 'ImagingStudy', + lastRequested: 1732224367218, + lastCompleted: 1732224667218, + lastSuccessfulCompleted: 1732224667218, + }, + { + extract: 'VPR', + lastRequested: 1732224367218, + lastCompleted: 1732224667218, + lastSuccessfulCompleted: 1732224667218, + }, + { + extract: 'ChemistryHematology', + lastRequested: 1732224367218, + lastCompleted: 1732224667218, + lastSuccessfulCompleted: 1732224667218, + }, + ], + }); + }); + cy.intercept('GET', '/my_health/v1/medical_records/vitals*', req => { + // check the correct param was used + expect(req.url).to.contain('use_oh_data_path=1'); + req.reply(vitals); + }).as('vitals-list'); + }); + + it('Visits View Vitals List', () => { + // check for MY Va Health links + cy.get('[data-testid="labs-and-tests-oh-landing-page-link"]').should( + 'be.visible', + ); + cy.get('[data-testid="summary-and-notes-oh-landing-page-link"]').should( + 'be.visible', + ); + cy.get('[data-testid="vaccines-oh-landing-page-link"]').should( + 'be.visible', + ); + cy.get('[data-testid="health-conditions-oh-landing-page-link"]').should( + 'be.visible', + ); + + cy.get('[data-testid="allergies-oh-landing-page-link"]').should( + 'be.visible', + ); + + cy.get('[data-testid="vitals-landing-page-link"]') + .should('be.visible') + .click(); + + // switch to march 2024 + cy.get('select[name="vitals-date-pickerMonth"]').select('3'); + cy.get('input[name="vitals-date-pickerYear"]').clear(); + cy.get('input[name="vitals-date-pickerYear"]').type('2024'); + cy.get('[data-testid="update-time-frame-button"]').click({ + waitForAnimations: true, + }); + + // check for latest id + cy.get('[data-testid="vital-heart-rate-measurement"]').should('be.visible'); + cy.get('[data-testid="vital-heart-rate-measurement"]').contains( + '98 beats per minute', + ); + + cy.get('[data-testid="vital-heart-rate-date-timestamp"]').should( + 'be.visible', + ); + cy.get('[data-testid="vital-heart-rate-date-timestamp"]').contains( + 'January 1, 2014', + ); + + cy.get('[data-testid="vital-heart-rate-review-over-time"]').should( + 'be.visible', + ); + + // Axe check + cy.injectAxe(); + cy.axeCheck('main'); + }); +}); diff --git a/src/applications/mhv-medical-records/tests/e2e/fixtures/vitals/blood-pressure.json b/src/applications/mhv-medical-records/tests/e2e/fixtures/vitals/blood-pressure.json new file mode 100644 index 000000000000..7ff88011ecb9 --- /dev/null +++ b/src/applications/mhv-medical-records/tests/e2e/fixtures/vitals/blood-pressure.json @@ -0,0 +1,214 @@ +{ + "entry": [ + { + "fullUrl": "https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXYfgnN", + "resource": { + "resourceType": "Observation", + "id": "4-1bKlpYjrXYfgnN", + "meta": { + "lastUpdated": "2013-04-25T06:10:16Z" + }, + "status": "final", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "vital-signs", + "display": "Vital Signs" + } + ], + "text": "Vital Signs" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "85354-9", + "display": "Blood Pressure" + } + ], + "text": "Blood Pressure" + }, + "subject": { + "reference": "https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49", + "display": "Mrs. Therese102 Un745 Oberbrunner298" + }, + "encounter": { + "reference": "https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9W4SB" + }, + "effectiveDateTime": "2024-03-26T06:10:16Z", + "issued": "2024-03-26T06:10:16Z", + "performer": [ + { + "reference": "https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfQbW4eP", + "display": "Dr. Francis500 Ratke343" + }, + { + "reference": "https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5ABdt3x", + "display": "TEST VAMC" + } + ], + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", + "code": "A", + "display": "Abnormal" + } + ], + "text": "A" + } + ], + "component": [ + { + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "8462-4", + "display": "Diastolic Blood Pressure" + } + ], + "text": "Diastolic Blood Pressure" + }, + "valueQuantity": { + "value": 81, + "unit": "mm Hg", + "system": "http://unitsofmeasure.org", + "code": "mm[Hg]" + } + }, + { + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "8480-6", + "display": "Systolic Blood Pressure" + } + ], + "text": "Systolic Blood Pressure" + }, + "valueQuantity": { + "value": 130, + "unit": "mm Hg", + "system": "http://unitsofmeasure.org", + "code": "mm[Hg]" + } + } + ] + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXYfgnN", + "resource": { + "resourceType": "Observation", + "id": "4-1bKlpYjrXYfgnN-latest", + "meta": { + "lastUpdated": "2013-04-25T06:10:16Z" + }, + "status": "final", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "vital-signs", + "display": "Vital Signs" + } + ], + "text": "Vital Signs" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "85354-9", + "display": "Blood Pressure" + } + ], + "text": "Blood Pressure" + }, + "subject": { + "reference": "https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49", + "display": "Mrs. Therese102 Un745 Oberbrunner298" + }, + "encounter": { + "reference": "https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9W4SB" + }, + "effectiveDateTime": "2024-03-16T06:10:16Z", + "issued": "2024-03-16T06:10:16Z", + "performer": [ + { + "reference": "https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfQbW4eP", + "display": "Dr. Francis500 Ratke343" + }, + { + "reference": "https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5ABdt3x", + "display": "TEST VAMC" + } + ], + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", + "code": "A", + "display": "Abnormal" + } + ], + "text": "A" + } + ], + "component": [ + { + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "8462-4", + "display": "Diastolic Blood Pressure" + } + ], + "text": "Diastolic Blood Pressure" + }, + "valueQuantity": { + "value": 81, + "unit": "mm Hg", + "system": "http://unitsofmeasure.org", + "code": "mm[Hg]" + } + }, + { + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "8480-6", + "display": "Systolic Blood Pressure" + } + ], + "text": "Systolic Blood Pressure" + }, + "valueQuantity": { + "value": 130, + "unit": "mm Hg", + "system": "http://unitsofmeasure.org", + "code": "mm[Hg]" + } + } + ] + }, + "search": { + "mode": "match" + } + } + ] +} \ No newline at end of file diff --git a/src/applications/mhv-medical-records/tests/e2e/fixtures/vitals/heart-rate.json b/src/applications/mhv-medical-records/tests/e2e/fixtures/vitals/heart-rate.json new file mode 100644 index 000000000000..ea4b2b9755e1 --- /dev/null +++ b/src/applications/mhv-medical-records/tests/e2e/fixtures/vitals/heart-rate.json @@ -0,0 +1,75 @@ +{ + "entry":[{ + "fullUrl": "https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXavvjp", + "resource": { + "resourceType": "Observation", + "id": "4-1bKlpYjrXavvjp", + "meta": { + "lastUpdated": "2014-01-31T06:10:16Z" + }, + "status": "final", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "vital-signs", + "display": "Vital Signs" + } + ], + "text": "Vital Signs" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "8867-4", + "display": "Heart rate" + } + ], + "text": "Heart rate" + }, + "subject": { + "reference": "https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49", + "display": "Mrs. Therese102 Un745 Oberbrunner298" + }, + "encounter": { + "reference": "https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9WcYF" + }, + "effectiveDateTime": "2014-01-01T06:10:16Z", + "issued": "2014-01-01T06:10:16Z", + "performer": [ + { + "reference": "https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj", + "display": "Dr. Emilie407 Hermiston71" + }, + { + "reference": "https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb", + "display": "TEST VAMC" + } + ], + "valueQuantity": { + "value": 98, + "unit": "/min", + "system": "http://unitsofmeasure.org", + "code": "/min" + }, + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", + "code": "A", + "display": "Abnormal" + } + ], + "text": "A" + } + ] + }, + "search": { + "mode": "match" + } + }] +} \ No newline at end of file diff --git a/src/applications/mhv-medical-records/tests/e2e/fixtures/vitals/sample-lighthouse.json b/src/applications/mhv-medical-records/tests/e2e/fixtures/vitals/sample-lighthouse.json new file mode 100644 index 000000000000..c7d383a0518a --- /dev/null +++ b/src/applications/mhv-medical-records/tests/e2e/fixtures/vitals/sample-lighthouse.json @@ -0,0 +1,109 @@ +{ + "entry": [ + { + "fullUrl": "https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXYfgnN", + "resource": { + "resourceType": "Observation", + "id": "4-1bKlpYjrXYfgnN", + "meta": { + "lastUpdated": "2013-04-25T06:10:16Z" + }, + "status": "final", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "vital-signs", + "display": "Vital Signs" + } + ], + "text": "Vital Signs" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "85354-9", + "display": "Blood Pressure" + } + ], + "text": "Blood Pressure" + }, + "subject": { + "reference": "https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49", + "display": "Mrs. Therese102 Un745 Oberbrunner298" + }, + "encounter": { + "reference": "https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9W4SB" + }, + "effectiveDateTime": "2013-03-26T06:10:16Z", + "issued": "2013-03-26T06:10:16Z", + "performer": [ + { + "reference": "https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfQbW4eP", + "display": "Dr. Francis500 Ratke343" + }, + { + "reference": "https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5ABdt3x", + "display": "TEST VAMC" + } + ], + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", + "code": "A", + "display": "Abnormal" + } + ], + "text": "A" + } + ], + "component": [ + { + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "8462-4", + "display": "Diastolic Blood Pressure" + } + ], + "text": "Diastolic Blood Pressure" + }, + "valueQuantity": { + "value": 81, + "unit": "mm Hg", + "system": "http://unitsofmeasure.org", + "code": "mm[Hg]" + } + }, + { + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "8480-6", + "display": "Systolic Blood Pressure" + } + ], + "text": "Systolic Blood Pressure" + }, + "valueQuantity": { + "value": 130, + "unit": "mm Hg", + "system": "http://unitsofmeasure.org", + "code": "mm[Hg]" + } + } + ] + }, + "search": { + "mode": "match" + } + } + ] +} \ No newline at end of file diff --git a/src/applications/mhv-medical-records/tests/e2e/mr_site/MedicalRecordsSite.js b/src/applications/mhv-medical-records/tests/e2e/mr_site/MedicalRecordsSite.js index 85876eef4a6f..4c93654f7fb5 100644 --- a/src/applications/mhv-medical-records/tests/e2e/mr_site/MedicalRecordsSite.js +++ b/src/applications/mhv-medical-records/tests/e2e/mr_site/MedicalRecordsSite.js @@ -5,8 +5,10 @@ import vamc from '../fixtures/facilities/vamc-ehr.json'; // import mockNonMhvUser from '../fixtures/user-mhv-account-state-none.json'; class MedicalRecordsSite { - login = (userFixture = mockUser, isAccelerating = false) => { - this.mockFeatureToggles(isAccelerating); + login = (userFixture = mockUser, useDefaultFeatureToggles = true) => { + if (useDefaultFeatureToggles) { + this.mockFeatureToggles(); + } this.mockVamcEhr(); this.mockMaintenanceWindow(); cy.login(userFixture); @@ -15,7 +17,11 @@ class MedicalRecordsSite { // cy.intercept('GET', '/v0/user', mockUser).as('mockUser'); }; - mockFeatureToggles = (isAccelerating = false) => { + mockFeatureToggles = ({ + isAcceleratingEnabled = false, + isAcceleratingAllergies = false, + isAcceleratingVitals = false, + } = {}) => { cy.intercept('GET', '/v0/feature_toggles?*', { data: { type: 'feature_toggles', @@ -24,9 +30,17 @@ class MedicalRecordsSite { name: 'mhv_integration_medical_records_to_phase_1', value: true, }, + { + name: 'mhv_accelerated_delivery_enabled', + value: isAcceleratingEnabled, + }, { name: 'mhv_accelerated_delivery_allergies_enabled', - value: isAccelerating, + value: isAcceleratingAllergies, + }, + { + name: 'mhv_accelerated_delivery_vital_signs_enabled', + value: isAcceleratingVitals, }, { name: 'mhvMedicalRecordsPhrRefreshOnLogin', diff --git a/src/applications/mhv-medical-records/tests/util/helpers.unit.spec.js b/src/applications/mhv-medical-records/tests/util/helpers.unit.spec.js index 7d7e64a3a130..8bd87ddd83b6 100644 --- a/src/applications/mhv-medical-records/tests/util/helpers.unit.spec.js +++ b/src/applications/mhv-medical-records/tests/util/helpers.unit.spec.js @@ -17,6 +17,7 @@ import { getStatusExtractPhase, nameFormat, processList, + getMonthFromSelectedDate, } from '../../util/helpers'; import { refreshPhases } from '../../util/constants'; @@ -625,3 +626,25 @@ describe('formatNameFirstLast', () => { expect(updatedName).to.eq(firstMiddleLastSuffixName); }); }); + +describe('getMonthFromSelectedDate', () => { + it('should return the formatted date', () => { + const date = '2024-01'; + const result = getMonthFromSelectedDate({ date }); + expect(result).to.equal('January 2024'); + }); + it('should accept a mask for the date', () => { + const date = '2024-01'; + const result = getMonthFromSelectedDate({ date, mask: 'MMMM' }); + expect(result).to.equal('January'); + }); + it('should return null if the date is not provided', () => { + const result = getMonthFromSelectedDate({}); + expect(result).to.be.null; + }); + it('should return null is date string doesnt match the format', () => { + const date = '2024'; + const result = getMonthFromSelectedDate({ date }); + expect(result).to.be.null; + }); +}); diff --git a/src/applications/mhv-medical-records/util/constants.js b/src/applications/mhv-medical-records/util/constants.js index 79e446693ec3..eff78b2e696f 100644 --- a/src/applications/mhv-medical-records/util/constants.js +++ b/src/applications/mhv-medical-records/util/constants.js @@ -122,43 +122,61 @@ export const EMPTY_FIELD = 'None noted'; export const IS_TESTING = false; export const vitalTypes = { - BLOOD_PRESSURE: 'BLOOD_PRESSURE', - PULSE: 'PULSE', - RESPIRATION: 'RESPIRATION', - PULSE_OXIMETRY: 'PULSE_OXIMETRY', - TEMPERATURE: 'TEMPERATURE', - WEIGHT: 'WEIGHT', - HEIGHT: 'HEIGHT', + BLOOD_PRESSURE: ['BLOOD_PRESSURE'], + PULSE: ['PULSE', 'HEART_RATE'], + RESPIRATION: ['RESPIRATION', 'RESPIRATORY_RATE'], + PULSE_OXIMETRY: ['PULSE_OXIMETRY'], + TEMPERATURE: ['TEMPERATURE'], + WEIGHT: ['WEIGHT', 'BODY_WEIGHT'], + HEIGHT: ['HEIGHT', 'BODY_HEIGHT'], + PAIN_SEVERITY: ['PAIN_SEVERITY_0_10_VERBAL_NUMERIC_RATING_SCORE_REPORTED'], }; export const vitalTypeDisplayNames = { BLOOD_PRESSURE: 'Blood pressure', PULSE: 'Heart rate', + HEART_RATE: 'Heart rate', RESPIRATION: 'Breathing rate', + RESPIRATORY_RATE: 'Breathing rate', PULSE_OXIMETRY: 'Blood oxygen level (pulse oximetry)', TEMPERATURE: 'Temperature', + BODY_WEIGHT: 'Weight', WEIGHT: 'Weight', + BODY_HEIGHT: 'Height', HEIGHT: 'Height', + PAIN_SEVERITY_0_10_VERBAL_NUMERIC_RATING_SCORE_REPORTED: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + PAIN_SEVERITY: 'Pain severity', }; export const vitalUnitCodes = { BLOOD_PRESSURE: '', PULSE: '/min', + HEART_RATE: '/min', RESPIRATION: '/min', + RESPIRATORY_RATE: '/min', PULSE_OXIMETRY: '%', TEMPERATURE: '[degF]', WEIGHT: '[lb_av]', + BODY_WEIGHT: '[lb_av]', HEIGHT: '[in_i]', + BODY_HEIGHT: '[in_i]', + PAIN_SEVERITY: '', }; export const vitalUnitDisplayText = { BLOOD_PRESSURE: '', PULSE: ' beats per minute', + HEART_RATE: ' beats per minute', RESPIRATION: ' breaths per minute', + RESPIRATORY_RATE: ' breaths per minute', PULSE_OXIMETRY: '%', TEMPERATURE: ' °F', WEIGHT: ' pounds', + BODY_WEIGHT: ' pounds', HEIGHT: ' inches', + BODY_HEIGHT: ' inches', + PAIN_SEVERITY: '', }; export const ALERT_TYPE_ERROR = 'error'; diff --git a/src/applications/mhv-medical-records/util/helpers.js b/src/applications/mhv-medical-records/util/helpers.js index 6358674d3766..a4a32269161a 100644 --- a/src/applications/mhv-medical-records/util/helpers.js +++ b/src/applications/mhv-medical-records/util/helpers.js @@ -25,9 +25,13 @@ export const dateFormat = (timestamp, format = null) => { /** * @param {*} datetime (2017-08-02T09:50:57-04:00 or 2000-08-09) + * @param {*} format defaults to 'MMMM d, yyyy, h:mm a', momentjs formatting guide found here https://momentjs.com/docs/#/displaying/format/ * @returns {String} formatted datetime (August 2, 2017, 9:50 a.m.) */ -export const dateFormatWithoutTimezone = datetime => { +export const dateFormatWithoutTimezone = ( + datetime, + format = 'MMMM d, yyyy, h:mm a', +) => { let withoutTimezone = datetime; if (typeof datetime === 'string' && datetime.includes('-')) { // Check if datetime has a timezone and strip it off if present @@ -50,11 +54,7 @@ export const dateFormatWithoutTimezone = datetime => { const parsedDateTime = parseISO(withoutTimezone); if (isValid(parsedDateTime)) { - const formattedDate = dateFnsFormat( - parsedDateTime, - 'MMMM d, yyyy, h:mm a', - { in: 'UTC' }, - ); + const formattedDate = dateFnsFormat(parsedDateTime, format, { in: 'UTC' }); return formattedDate.replace(/AM|PM/, match => match.toLowerCase().replace('m', '.m.'), ); @@ -520,3 +520,19 @@ export const formatNameFirstToLast = name => { return null; } }; + +/** + * @param {Object} dateParams an object for the date + * @param {string} dateParams.date the date to format, in YYYY-MM format + * @param {string} dateParams.mask the format to return the date in, using date-fns masks, default is 'MMMM yyyy' + * @returns {String} formatted timestamp + */ +export const getMonthFromSelectedDate = ({ date, mask = 'MMMM yyyy' }) => { + if (!date) return null; + const format = /[0-9]{4}-[0-9]{2}/g; + if (!date.match(format)) return null; + const [year, month] = date.split('-'); + const fromDate = new Date(year, month - 1, 1); + const formatted = dateFnsFormat(fromDate, mask); + return `${formatted}`; +}; diff --git a/src/applications/mhv-medications/containers/Prescriptions.jsx b/src/applications/mhv-medications/containers/Prescriptions.jsx index 71ee9d69ffb5..1b58707a760e 100644 --- a/src/applications/mhv-medications/containers/Prescriptions.jsx +++ b/src/applications/mhv-medications/containers/Prescriptions.jsx @@ -201,11 +201,16 @@ const Prescriptions = () => { useEffect( () => { - if (!filteredList?.length) { + if ( + !isLoading && + filteredList?.length === 0 && + filterCount && + Object.values(filterCount).some(value => value !== 0) + ) { focusElement(document.getElementById('no-matches-msg')); } }, - [filteredList], + [filteredList, isLoading, filterCount], ); useEffect( @@ -733,10 +738,12 @@ const Prescriptions = () => { )} - + {(!showFilterContent || !isLoading) && ( + + )}
      {isLoading ? (
      @@ -759,24 +766,25 @@ const Prescriptions = () => { updateLoadingStatus={updateLoadingStatus} /> )} - {showFilterContent && ( - <> - - - - )} + {showFilterContent && + !isLoading && ( + <> + + + + )} ) : ( <> @@ -793,7 +801,8 @@ const Prescriptions = () => { )} {showFilterContent && ( <> - {filteredList?.length === 0 && + {!isLoading && + filteredList?.length === 0 && filterCount && Object.values(filterCount).some( value => value !== 0, diff --git a/src/applications/mhv-secure-messaging/containers/MessageReply.jsx b/src/applications/mhv-secure-messaging/containers/MessageReply.jsx index 3a53110b6a07..2ece369dfba3 100644 --- a/src/applications/mhv-secure-messaging/containers/MessageReply.jsx +++ b/src/applications/mhv-secure-messaging/containers/MessageReply.jsx @@ -74,6 +74,7 @@ const MessageReply = () => { isEditing={isEditing} setIsEditing={setIsEditing} setIsSending={setIsSending} + threadId={replyMessage.threadId} /> ); }; diff --git a/src/applications/personalization/review-information/components/WelcomeVAContactAdditionalInfo.js b/src/applications/personalization/review-information/components/WelcomeVAContactAdditionalInfo.js new file mode 100644 index 000000000000..bcd595b576de --- /dev/null +++ b/src/applications/personalization/review-information/components/WelcomeVAContactAdditionalInfo.js @@ -0,0 +1,44 @@ +import React from 'react'; + +const WelcomeVAContactAdditionalInfo = ( + <> + +
      +

      + We use this information to contact you about these VA benefits and + services: +

      +
        +
      • Disability compensation
      • +
      • Pension benefits
      • +
      • Claims and appeals
      • +
      • Veteran Readiness and Employment (VR&E)
      • +
      +

      + If you’re enrolled in VA health care, we also use this information to + send you these: +

      +
        +
      • Appointment reminders
      • +
      • Communications from your VA medical center
      • +
      • Lab and test results
      • +
      • + Prescription medicines (we send your medicines to your mailing + address) +
      • +
      +

      + + Find out how to change your contact information for other VA + benefits{' '} + +

      +
      +
      + +); + +export default WelcomeVAContactAdditionalInfo; diff --git a/src/applications/personalization/review-information/config/form.js b/src/applications/personalization/review-information/config/form.js index 8ef209687de4..8216e007d422 100644 --- a/src/applications/personalization/review-information/config/form.js +++ b/src/applications/personalization/review-information/config/form.js @@ -2,33 +2,53 @@ import footerContent from 'platform/forms/components/FormFooter'; import { VA_FORM_IDS } from 'platform/forms/constants'; import profileContactInfo from 'platform/forms-system/src/js/definitions/profileContactInfo'; import { getContent } from 'platform/forms-system/src/js/utilities/data/profile'; +import ContactInfo from 'platform/forms-system/src/js/components/ContactInfo'; import { TITLE } from '../constants'; import manifest from '../manifest.json'; import ConfirmationPage from '../containers/ConfirmationPage'; +import WelcomeVAContactAdditionalInfo from '../components/WelcomeVAContactAdditionalInfo'; const allContactInformationKeys = ['address', 'email', 'phone']; - +const confirmContactInfoKeys = { + wrapper: 'veteran', + address: 'address', + mobilePhone: 'phone', + email: 'email', +}; +const contactPath = 'contact-information'; const content = getContent('form'); -content.title = ''; -content.description = null; - const profileContactInfoPage = profileContactInfo({ - contactPath: 'contact-information', + contactPath, included: allContactInformationKeys, contactInfoRequiredKeys: allContactInformationKeys, addressKey: 'address', mobilePhoneKey: 'phone', contactInfoUiSchema: {}, - disableMockContactInfo: true, contactSectionHeadingLevel: 'h2', editContactInfoHeadingLevel: 'h2', - content, }); +content.title = ''; +content.description = null; + profileContactInfoPage.confirmContactInfo.onNavForward = ({ goPath }) => { goPath('confirmation'); }; +profileContactInfoPage.confirmContactInfo.CustomPage = props => + ContactInfo({ + ...props, + content, + contactPath, + keys: confirmContactInfoKeys, + requiredKeys: allContactInformationKeys, + contactInfoPageKey: 'confirmContactInfo', + disableMockContactInfo: true, + contactSectionHeadingLevel: 'h2', + editContactInfoHeadingLevel: 'h2', + contentBeforeButtons: WelcomeVAContactAdditionalInfo, + }); + /** @type {FormConfig} */ const formConfig = { rootUrl: manifest.rootUrl, diff --git a/src/platform/mhv/api/mocks/feature-toggles/index.js b/src/platform/mhv/api/mocks/feature-toggles/index.js index 38e01f0ac006..3dc19e92b66f 100644 --- a/src/platform/mhv/api/mocks/feature-toggles/index.js +++ b/src/platform/mhv/api/mocks/feature-toggles/index.js @@ -21,7 +21,10 @@ const generateFeatureToggles = (toggles = {}) => { mhvSecureMessagingEditContactList = true, mhvSecureMessagingTriageGroupPlainLanguage = false, mhvSecureMessagingRecipientOptGroups = true, + mhvAcceleratedDeliveryEnabled = false, mhvAcceleratedDeliveryAllergiesEnabled = false, + mhvAcceleratedDeliveryVitalSignsEnabled = false, + mhvIntegrationMedicalRecordsToPhase1 = true, } = toggles; return { @@ -32,10 +35,18 @@ const generateFeatureToggles = (toggles = {}) => { name: 'mhv-mock-session', value: true, }, + { + name: 'mhv_accelerated_delivery_enabled', + value: mhvAcceleratedDeliveryEnabled, + }, { name: 'mhv_accelerated_delivery_allergies_enabled', value: mhvAcceleratedDeliveryAllergiesEnabled, }, + { + name: 'mhv_accelerated_delivery_vital_signs_enabled', + value: mhvAcceleratedDeliveryVitalSignsEnabled, + }, { name: 'mhv_landing_page_personalization', value: mhvLandingPagePersonalization, @@ -60,7 +71,7 @@ const generateFeatureToggles = (toggles = {}) => { // medical records { name: 'mhv_integration_medical_records_to_phase_1', - value: true, + value: mhvIntegrationMedicalRecordsToPhase1, }, { name: 'mhv_medical_records_kill_external_links', diff --git a/src/platform/mhv/api/mocks/index.js b/src/platform/mhv/api/mocks/index.js index 41af14782deb..27a0c6ea1dcf 100644 --- a/src/platform/mhv/api/mocks/index.js +++ b/src/platform/mhv/api/mocks/index.js @@ -32,6 +32,7 @@ const allergies = require('./medical-records/allergies'); const acceleratedAllergies = require('./medical-records/allergies/full-example'); const vaccines = require('./medical-records/vaccines'); const vitals = require('./medical-records/vitals'); +const acceleratedVitals = require('./medical-records/vitals/accelerated'); const responses = { ...commonResponses, @@ -39,7 +40,9 @@ const responses = { 'GET /v0/feature_toggles': featureToggles.generateFeatureToggles({ mhvMedicationsToVaGovRelease: true, mhvMedicationsDisplayRefillContent: true, + mhvAcceleratedDeliveryEnabled: true, mhvAcceleratedDeliveryAllergiesEnabled: true, + mhvAcceleratedDeliveryVitalSignsEnabled: true, }), // VAMC facility data that apps query for on startup @@ -107,7 +110,9 @@ const responses = { // medical records 'GET /my_health/v1/medical_records/session/status': session.phrRefreshInProgressNoNewRecords, - 'GET /my_health/v1/medical_records/session': session.error, + 'GET /my_health/v1/medical_records/session': + session.phrRefreshInProgressNoNewRecords, + 'POST /my_health/v1/medical_records/session': {}, 'GET /my_health/v1/medical_records/status': status.error, 'GET /my_health/v1/medical_records/labs_and_tests': labsAndTests.all, 'GET /my_health/v1/medical_records/labs_and_tests/:id': labsAndTests.single, @@ -135,7 +140,14 @@ const responses = { }, 'GET /my_health/v1/medical_records/vaccines': vaccines.all, 'GET /my_health/v1/medical_records/vaccines/:id': vaccines.single, - 'GET /my_health/v1/medical_records/vitals': vitals.all, + 'GET /my_health/v1/medical_records/vitals': (req, res) => { + const { use_oh_data_path, from, to } = req.query; + if (use_oh_data_path === '1') { + const vitalsData = acceleratedVitals.all(from, to); + return res.json(vitalsData); + } + return res.json(vitals.all); + }, 'GET /v0/maintenance_windows': (_req, res) => { // three different scenarios for testing downtime banner @@ -158,4 +170,4 @@ const responses = { }, }; -module.exports = delay(responses, 1000); +module.exports = delay(responses, 750); diff --git a/src/platform/mhv/api/mocks/medical-records/vitals/accelerated.js b/src/platform/mhv/api/mocks/medical-records/vitals/accelerated.js new file mode 100644 index 000000000000..1ebf9f170887 --- /dev/null +++ b/src/platform/mhv/api/mocks/medical-records/vitals/accelerated.js @@ -0,0 +1,11063 @@ +/* eslint-disable no-unused-vars */ +const entries = [ + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXYfgnN', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrXYfgnN', + meta: { + lastUpdated: '2013-04-25T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9W4SB', + }, + effectiveDateTime: '2013-03-26T06:10:16Z', + issued: '2013-03-26T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfQbW4eP', + display: 'Dr. Francis500 Ratke343', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5ABdt3x', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 81, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 130, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXau0Ob', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrXau0Ob', + meta: { + lastUpdated: '2013-06-24T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9WLVD', + }, + effectiveDateTime: '2013-05-25T06:10:16Z', + issued: '2013-05-25T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfQbW4eP', + display: 'Dr. Francis500 Ratke343', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5ABdt3x', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 69, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 103, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXauYUf', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrXauYUf', + meta: { + lastUpdated: '2014-01-31T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9WcYF', + }, + effectiveDateTime: '2014-01-01T06:10:16Z', + issued: '2014-01-01T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXaupXh', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrXaupXh', + meta: { + lastUpdated: '2014-01-31T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9WcYF', + }, + effectiveDateTime: '2014-01-01T06:10:16Z', + issued: '2014-01-01T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 1, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXav6aj', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrXav6aj', + meta: { + lastUpdated: '2014-01-31T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9WcYF', + }, + effectiveDateTime: '2014-01-01T06:10:16Z', + issued: '2014-01-01T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 88.6, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXavegn', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrXavegn', + meta: { + lastUpdated: '2014-01-31T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9WcYF', + }, + effectiveDateTime: '2014-01-01T06:10:16Z', + issued: '2014-01-01T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 69, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 102, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXavvjp', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrXavvjp', + meta: { + lastUpdated: '2014-01-31T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9WcYF', + }, + effectiveDateTime: '2014-01-01T06:10:16Z', + issued: '2014-01-01T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 98, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXawCmr', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrXawCmr', + meta: { + lastUpdated: '2014-01-31T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9WcYF', + }, + effectiveDateTime: '2014-01-01T06:10:16Z', + issued: '2014-01-01T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 14, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXfSPcj', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrXfSPcj', + meta: { + lastUpdated: '2015-02-06T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XAeJ', + }, + effectiveDateTime: '2015-01-07T06:10:16Z', + issued: '2015-01-07T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXfSgfl', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrXfSgfl', + meta: { + lastUpdated: '2015-02-06T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XAeJ', + }, + effectiveDateTime: '2015-01-07T06:10:16Z', + issued: '2015-01-07T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 4, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXfSxin', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrXfSxin', + meta: { + lastUpdated: '2015-02-06T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XAeJ', + }, + effectiveDateTime: '2015-01-07T06:10:16Z', + issued: '2015-01-07T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 88.6, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXfTVor', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrXfTVor', + meta: { + lastUpdated: '2015-02-06T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XAeJ', + }, + effectiveDateTime: '2015-01-07T06:10:16Z', + issued: '2015-01-07T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 73, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 108, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXfTmrt', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrXfTmrt', + meta: { + lastUpdated: '2015-02-06T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XAeJ', + }, + effectiveDateTime: '2015-01-07T06:10:16Z', + issued: '2015-01-07T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 86, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXfU3uv', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrXfU3uv', + meta: { + lastUpdated: '2015-02-06T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XAeJ', + }, + effectiveDateTime: '2015-01-07T06:10:16Z', + issued: '2015-01-07T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 13, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrqAEPDR', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrqAEPDR', + meta: { + lastUpdated: '2016-02-12T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XRhL', + }, + effectiveDateTime: '2016-01-13T06:10:16Z', + issued: '2016-01-13T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrqAEgGT', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrqAEgGT', + meta: { + lastUpdated: '2016-02-12T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XRhL', + }, + effectiveDateTime: '2016-01-13T06:10:16Z', + issued: '2016-01-13T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 1, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrqAExJV', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrqAExJV', + meta: { + lastUpdated: '2016-02-12T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XRhL', + }, + effectiveDateTime: '2016-01-13T06:10:16Z', + issued: '2016-01-13T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 88.6, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrqAFVPZ', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrqAFVPZ', + meta: { + lastUpdated: '2016-02-12T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XRhL', + }, + effectiveDateTime: '2016-01-13T06:10:16Z', + issued: '2016-01-13T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 66, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 104, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrqCTp0n', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrqCTp0n', + meta: { + lastUpdated: '2016-02-12T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XRhL', + }, + effectiveDateTime: '2016-01-13T06:10:16Z', + issued: '2016-01-13T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 65, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrqCU63p', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrqCU63p', + meta: { + lastUpdated: '2016-02-12T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XRhL', + }, + effectiveDateTime: '2016-01-13T06:10:16Z', + issued: '2016-01-13T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 13, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrqLadT3', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrqLadT3', + meta: { + lastUpdated: '2017-02-17T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XikN', + }, + effectiveDateTime: '2017-01-18T06:10:16Z', + issued: '2017-01-18T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrqLauW5', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrqLauW5', + meta: { + lastUpdated: '2017-02-17T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XikN', + }, + effectiveDateTime: '2017-01-18T06:10:16Z', + issued: '2017-01-18T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 3, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrqLbBZ7', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrqLbBZ7', + meta: { + lastUpdated: '2017-02-17T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XikN', + }, + effectiveDateTime: '2017-01-18T06:10:16Z', + issued: '2017-01-18T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 88.6, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrqNpmDN', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrqNpmDN', + meta: { + lastUpdated: '2017-02-17T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XikN', + }, + effectiveDateTime: '2017-01-18T06:10:16Z', + issued: '2017-01-18T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 68, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 102, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrqNq3GP', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrqNq3GP', + meta: { + lastUpdated: '2017-02-17T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XikN', + }, + effectiveDateTime: '2017-01-18T06:10:16Z', + issued: '2017-01-18T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 76, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrqNqKJR', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrqNqKJR', + meta: { + lastUpdated: '2017-02-17T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XikN', + }, + effectiveDateTime: '2017-01-18T06:10:16Z', + issued: '2017-01-18T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 13, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjs8usYqb', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjs8usYqb', + meta: { + lastUpdated: '2017-12-15T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XznP', + }, + effectiveDateTime: '2017-11-15T06:10:16Z', + issued: '2017-11-15T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjs8usptd', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjs8usptd', + meta: { + lastUpdated: '2017-12-15T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XznP', + }, + effectiveDateTime: '2017-11-15T06:10:16Z', + issued: '2017-11-15T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 3, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjs8ut6wf', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjs8ut6wf', + meta: { + lastUpdated: '2017-12-15T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XznP', + }, + effectiveDateTime: '2017-11-15T06:10:16Z', + issued: '2017-11-15T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 88.6, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjs8utf2j', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjs8utf2j', + meta: { + lastUpdated: '2017-12-15T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XznP', + }, + effectiveDateTime: '2017-11-15T06:10:16Z', + issued: '2017-11-15T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 71, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 115, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjs8utw5l', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjs8utw5l', + meta: { + lastUpdated: '2017-12-15T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XznP', + }, + effectiveDateTime: '2017-11-15T06:10:16Z', + issued: '2017-11-15T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 72, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjs8uuD8n', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjs8uuD8n', + meta: { + lastUpdated: '2017-12-15T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9XznP', + }, + effectiveDateTime: '2017-11-15T06:10:16Z', + issued: '2017-11-15T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 13, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjs93z6Fp', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjs93z6Fp', + meta: { + lastUpdated: '2018-02-23T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9YGqR', + }, + effectiveDateTime: '2018-01-24T06:10:16Z', + issued: '2018-01-24T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjs93zNIr', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjs93zNIr', + meta: { + lastUpdated: '2018-02-23T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9YGqR', + }, + effectiveDateTime: '2018-01-24T06:10:16Z', + issued: '2018-01-24T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 4, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjs93zeLt', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjs93zeLt', + meta: { + lastUpdated: '2018-02-23T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9YGqR', + }, + effectiveDateTime: '2018-01-24T06:10:16Z', + issued: '2018-01-24T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 88.6, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjs96EF09', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjs96EF09', + meta: { + lastUpdated: '2018-02-23T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9YGqR', + }, + effectiveDateTime: '2018-01-24T06:10:16Z', + issued: '2018-01-24T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 66, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 113, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjs96EW3B', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjs96EW3B', + meta: { + lastUpdated: '2018-02-23T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9YGqR', + }, + effectiveDateTime: '2018-01-24T06:10:16Z', + issued: '2018-01-24T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 91, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjs96En6D', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjs96En6D', + meta: { + lastUpdated: '2018-02-23T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9YGqR', + }, + effectiveDateTime: '2018-01-24T06:10:16Z', + issued: '2018-01-24T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 15, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKHR4aGr', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKHR4aGr', + meta: { + lastUpdated: '2018-08-10T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9YXtT', + }, + effectiveDateTime: '2018-07-11T06:10:16Z', + issued: '2018-07-11T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKHR4rJt', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKHR4rJt', + meta: { + lastUpdated: '2018-08-10T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9YXtT', + }, + effectiveDateTime: '2018-07-11T06:10:16Z', + issued: '2018-07-11T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 1, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKHR58Mv', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKHR58Mv', + meta: { + lastUpdated: '2018-08-10T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9YXtT', + }, + effectiveDateTime: '2018-07-11T06:10:16Z', + issued: '2018-07-11T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 88.6, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKHR5gSz', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKHR5gSz', + meta: { + lastUpdated: '2018-08-10T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9YXtT', + }, + effectiveDateTime: '2018-07-11T06:10:16Z', + issued: '2018-07-11T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 68, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 109, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKHR5xW1', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKHR5xW1', + meta: { + lastUpdated: '2018-08-10T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9YXtT', + }, + effectiveDateTime: '2018-07-11T06:10:16Z', + issued: '2018-07-11T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 82, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKHR6EZ3', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKHR6EZ3', + meta: { + lastUpdated: '2018-08-10T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9YXtT', + }, + effectiveDateTime: '2018-07-11T06:10:16Z', + issued: '2018-07-11T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 14, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKHaBfm9', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKHaBfm9', + meta: { + lastUpdated: '2019-03-01T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBmrUh', + }, + effectiveDateTime: '2019-01-30T06:10:16Z', + issued: '2019-01-30T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKHaBwpB', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKHaBwpB', + meta: { + lastUpdated: '2019-03-01T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBmrUh', + }, + effectiveDateTime: '2019-01-30T06:10:16Z', + issued: '2019-01-30T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 4, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKHcQGQP', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKHcQGQP', + meta: { + lastUpdated: '2019-03-01T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBmrUh', + }, + effectiveDateTime: '2019-01-30T06:10:16Z', + issued: '2019-01-30T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 88.6, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKHcQoWT', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKHcQoWT', + meta: { + lastUpdated: '2019-03-01T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBmrUh', + }, + effectiveDateTime: '2019-01-30T06:10:16Z', + issued: '2019-01-30T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 75, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 102, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKHcR5ZV', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKHcR5ZV', + meta: { + lastUpdated: '2019-03-01T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBmrUh', + }, + effectiveDateTime: '2019-01-30T06:10:16Z', + issued: '2019-01-30T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 97, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKHcRMcX', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKHcRMcX', + meta: { + lastUpdated: '2019-03-01T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBmrUh', + }, + effectiveDateTime: '2019-01-30T06:10:16Z', + issued: '2019-01-30T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 14, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKHlXLvh', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKHlXLvh', + meta: { + lastUpdated: '2020-02-28T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBompv', + }, + effectiveDateTime: '2020-01-29T06:10:16Z', + issued: '2020-01-29T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKHlXcyj', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKHlXcyj', + meta: { + lastUpdated: '2020-02-28T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBompv', + }, + effectiveDateTime: '2020-01-29T06:10:16Z', + issued: '2020-01-29T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 1, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKHlXu1l', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKHlXu1l', + meta: { + lastUpdated: '2020-02-28T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBompv', + }, + effectiveDateTime: '2020-01-29T06:10:16Z', + issued: '2020-01-29T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 80.3, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKaBjZ37', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKaBjZ37', + meta: { + lastUpdated: '2020-02-28T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBompv', + }, + effectiveDateTime: '2020-01-29T06:10:16Z', + issued: '2020-01-29T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 71, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 108, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKaBjq69', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKaBjq69', + meta: { + lastUpdated: '2020-02-28T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBompv', + }, + effectiveDateTime: '2020-01-29T06:10:16Z', + issued: '2020-01-29T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 81, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKaBk79B', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKaBk79B', + meta: { + lastUpdated: '2020-02-28T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBompv', + }, + effectiveDateTime: '2020-01-29T06:10:16Z', + issued: '2020-01-29T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 15, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKaN6cRp', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKaN6cRp', + meta: { + lastUpdated: '2020-03-13T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBp3sx', + }, + effectiveDateTime: '2020-02-12T06:10:16Z', + issued: '2020-02-12T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKaN6tUr', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKaN6tUr', + meta: { + lastUpdated: '2020-03-13T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBp3sx', + }, + effectiveDateTime: '2020-02-12T06:10:16Z', + issued: '2020-02-12T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 2, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKaN7AXt', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKaN7AXt', + meta: { + lastUpdated: '2020-03-13T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBp3sx', + }, + effectiveDateTime: '2020-02-12T06:10:16Z', + issued: '2020-02-12T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 80.3, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKaN7idx', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKaN7idx', + meta: { + lastUpdated: '2020-03-13T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBp3sx', + }, + effectiveDateTime: '2020-02-12T06:10:16Z', + issued: '2020-02-12T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 68, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 101, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKaPM2FB', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKaPM2FB', + meta: { + lastUpdated: '2020-03-13T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBp3sx', + }, + effectiveDateTime: '2020-02-12T06:10:16Z', + issued: '2020-02-12T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 96, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKaPMJID', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKaPMJID', + meta: { + lastUpdated: '2020-03-13T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBp3sx', + }, + effectiveDateTime: '2020-02-12T06:10:16Z', + issued: '2020-02-12T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 14, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKswOXpN', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKswOXpN', + meta: { + lastUpdated: '2020-05-29T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBpKvz', + }, + effectiveDateTime: '2020-04-29T06:10:16Z', + issued: '2020-04-29T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKswOosP', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKswOosP', + meta: { + lastUpdated: '2020-05-29T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBpKvz', + }, + effectiveDateTime: '2020-04-29T06:10:16Z', + issued: '2020-04-29T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 3, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKswP5vR', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKswP5vR', + meta: { + lastUpdated: '2020-05-29T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBpKvz', + }, + effectiveDateTime: '2020-04-29T06:10:16Z', + issued: '2020-04-29T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 80.8, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKswPe1V', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKswPe1V', + meta: { + lastUpdated: '2020-05-29T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBpKvz', + }, + effectiveDateTime: '2020-04-29T06:10:16Z', + issued: '2020-04-29T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 69, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 103, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKswPv4X', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKswPv4X', + meta: { + lastUpdated: '2020-05-29T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBpKvz', + }, + effectiveDateTime: '2020-04-29T06:10:16Z', + issued: '2020-04-29T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 92, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKswQC7Z', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKswQC7Z', + meta: { + lastUpdated: '2020-05-29T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZBpKvz', + }, + effectiveDateTime: '2020-04-29T06:10:16Z', + issued: '2020-04-29T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 12, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKt5VMHd', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKt5VMHd', + meta: { + lastUpdated: '2020-07-31T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE3eXD', + }, + effectiveDateTime: '2020-07-01T06:10:16Z', + issued: '2020-07-01T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKt5VdKf', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKt5VdKf', + meta: { + lastUpdated: '2020-07-31T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE3eXD', + }, + effectiveDateTime: '2020-07-01T06:10:16Z', + issued: '2020-07-01T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 2, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKt5VuNh', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKt5VuNh', + meta: { + lastUpdated: '2020-07-31T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE3eXD', + }, + effectiveDateTime: '2020-07-01T06:10:16Z', + issued: '2020-07-01T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 81.1, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKt7kV1x', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKt7kV1x', + meta: { + lastUpdated: '2020-07-31T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE3eXD', + }, + effectiveDateTime: '2020-07-01T06:10:16Z', + issued: '2020-07-01T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 68, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 104, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKt7km4z', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKt7km4z', + meta: { + lastUpdated: '2020-07-31T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE3eXD', + }, + effectiveDateTime: '2020-07-01T06:10:16Z', + issued: '2020-07-01T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 90, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKt7l381', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKt7l381', + meta: { + lastUpdated: '2020-07-31T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE3eXD', + }, + effectiveDateTime: '2020-07-01T06:10:16Z', + issued: '2020-07-01T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 13, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKtGqDI5', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKtGqDI5', + meta: { + lastUpdated: '2020-08-28T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE3vaF', + }, + effectiveDateTime: '2020-07-29T06:10:16Z', + issued: '2020-07-29T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKtGqUL7', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKtGqUL7', + meta: { + lastUpdated: '2020-08-28T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE3vaF', + }, + effectiveDateTime: '2020-07-29T06:10:16Z', + issued: '2020-07-29T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 2, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKtGqlO9', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKtGqlO9', + meta: { + lastUpdated: '2020-08-28T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE3vaF', + }, + effectiveDateTime: '2020-07-29T06:10:16Z', + issued: '2020-07-29T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 81.3, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKtGrJUD', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKtGrJUD', + meta: { + lastUpdated: '2020-08-28T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE3vaF', + }, + effectiveDateTime: '2020-07-29T06:10:16Z', + issued: '2020-07-29T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 76, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 101, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKtGraXF', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKtGraXF', + meta: { + lastUpdated: '2020-08-28T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE3vaF', + }, + effectiveDateTime: '2020-07-29T06:10:16Z', + issued: '2020-07-29T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 86, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmKtGrraH', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmKtGrraH', + meta: { + lastUpdated: '2020-08-28T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE3vaF', + }, + effectiveDateTime: '2020-07-29T06:10:16Z', + issued: '2020-07-29T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 13, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLBnu67R', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLBnu67R', + meta: { + lastUpdated: '2020-12-25T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE4CdH', + }, + effectiveDateTime: '2020-11-25T06:10:16Z', + issued: '2020-11-25T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLBq8Pif', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLBq8Pif', + meta: { + lastUpdated: '2020-12-25T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE4CdH', + }, + effectiveDateTime: '2020-11-25T06:10:16Z', + issued: '2020-11-25T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 3, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLBq8glh', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLBq8glh', + meta: { + lastUpdated: '2020-12-25T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE4CdH', + }, + effectiveDateTime: '2020-11-25T06:10:16Z', + issued: '2020-11-25T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 82, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLBq9Erl', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLBq9Erl', + meta: { + lastUpdated: '2020-12-25T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE4CdH', + }, + effectiveDateTime: '2020-11-25T06:10:16Z', + issued: '2020-11-25T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 69, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 105, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLBq9Vun', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLBq9Vun', + meta: { + lastUpdated: '2020-12-25T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE4CdH', + }, + effectiveDateTime: '2020-11-25T06:10:16Z', + issued: '2020-11-25T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 73, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLBq9mxp', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLBq9mxp', + meta: { + lastUpdated: '2020-12-25T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE4CdH', + }, + effectiveDateTime: '2020-11-25T06:10:16Z', + issued: '2020-11-25T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 15, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLBzEx7t', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLBzEx7t', + meta: { + lastUpdated: '2021-03-19T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE4TgJ', + }, + effectiveDateTime: '2021-02-17T06:10:16Z', + issued: '2021-02-17T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLBzFEAv', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLBzFEAv', + meta: { + lastUpdated: '2021-03-19T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE4TgJ', + }, + effectiveDateTime: '2021-02-17T06:10:16Z', + issued: '2021-02-17T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 1, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLBzFVDx', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLBzFVDx', + meta: { + lastUpdated: '2021-03-19T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE4TgJ', + }, + effectiveDateTime: '2021-02-17T06:10:16Z', + issued: '2021-02-17T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 82.5, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLBzG3K1', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLBzG3K1', + meta: { + lastUpdated: '2021-03-19T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE4TgJ', + }, + effectiveDateTime: '2021-02-17T06:10:16Z', + issued: '2021-02-17T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 70, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 105, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLC1UMvF', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLC1UMvF', + meta: { + lastUpdated: '2021-03-19T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE4TgJ', + }, + effectiveDateTime: '2021-02-17T06:10:16Z', + issued: '2021-02-17T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 61, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLC1UdyH', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLC1UdyH', + meta: { + lastUpdated: '2021-03-19T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE4TgJ', + }, + effectiveDateTime: '2021-02-17T06:10:16Z', + issued: '2021-02-17T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 13, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLUYX9YT', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLUYX9YT', + meta: { + lastUpdated: '2021-07-23T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE4kjL', + }, + effectiveDateTime: '2021-06-23T06:10:16Z', + issued: '2021-06-23T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLUYXQbV', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLUYXQbV', + meta: { + lastUpdated: '2021-07-23T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE4kjL', + }, + effectiveDateTime: '2021-06-23T06:10:16Z', + issued: '2021-06-23T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 3, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLUYXheX', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLUYXheX', + meta: { + lastUpdated: '2021-07-23T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE4kjL', + }, + effectiveDateTime: '2021-06-23T06:10:16Z', + issued: '2021-06-23T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 83.2, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLUYYFkb', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLUYYFkb', + meta: { + lastUpdated: '2021-07-23T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE4kjL', + }, + effectiveDateTime: '2021-06-23T06:10:16Z', + issued: '2021-06-23T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 69, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 100, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLUYYWnd', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLUYYWnd', + meta: { + lastUpdated: '2021-07-23T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE4kjL', + }, + effectiveDateTime: '2021-06-23T06:10:16Z', + issued: '2021-06-23T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 84, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLUYYnqf', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLUYYnqf', + meta: { + lastUpdated: '2021-07-23T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE4kjL', + }, + effectiveDateTime: '2021-06-23T06:10:16Z', + issued: '2021-06-23T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 14, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLUhdy0j', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLUhdy0j', + meta: { + lastUpdated: '2022-03-25T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE51mN', + }, + effectiveDateTime: '2022-02-23T06:10:16Z', + issued: '2022-02-23T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLUheF3l', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLUheF3l', + meta: { + lastUpdated: '2022-03-25T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE51mN', + }, + effectiveDateTime: '2022-02-23T06:10:16Z', + issued: '2022-02-23T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 3, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLUjsYez', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLUjsYez', + meta: { + lastUpdated: '2022-03-25T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE51mN', + }, + effectiveDateTime: '2022-02-23T06:10:16Z', + issued: '2022-02-23T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 84.6, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLUjt6l3', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLUjt6l3', + meta: { + lastUpdated: '2022-03-25T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE51mN', + }, + effectiveDateTime: '2022-02-23T06:10:16Z', + issued: '2022-02-23T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 66, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 106, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLUjtNo5', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLUjtNo5', + meta: { + lastUpdated: '2022-03-25T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE51mN', + }, + effectiveDateTime: '2022-02-23T06:10:16Z', + issued: '2022-02-23T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 99, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLUjter7', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLUjter7', + meta: { + lastUpdated: '2022-03-25T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE51mN', + }, + effectiveDateTime: '2022-02-23T06:10:16Z', + issued: '2022-02-23T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfRBrHOj', + display: 'Dr. Emilie407 Hermiston71', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5BMKIYb', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 15, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLnGxGdR', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLnGxGdR', + meta: { + lastUpdated: '2022-09-16T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE5IpP', + }, + effectiveDateTime: '2022-08-17T06:10:16Z', + issued: '2022-08-17T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLnJBaEf', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLnJBaEf', + meta: { + lastUpdated: '2022-09-16T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE5IpP', + }, + effectiveDateTime: '2022-08-17T06:10:16Z', + issued: '2022-08-17T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 3, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLnJBrHh', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLnJBrHh', + meta: { + lastUpdated: '2022-09-16T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE5IpP', + }, + effectiveDateTime: '2022-08-17T06:10:16Z', + issued: '2022-08-17T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 85.6, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLnJCPNl', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLnJCPNl', + meta: { + lastUpdated: '2022-09-16T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE5IpP', + }, + effectiveDateTime: '2022-08-17T06:10:16Z', + issued: '2022-08-17T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 73, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 104, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLnJCgQn', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLnJCgQn', + meta: { + lastUpdated: '2022-09-16T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE5IpP', + }, + effectiveDateTime: '2022-08-17T06:10:16Z', + issued: '2022-08-17T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 66, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLnJCxTp', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLnJCxTp', + meta: { + lastUpdated: '2022-09-16T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE5IpP', + }, + effectiveDateTime: '2022-08-17T06:10:16Z', + issued: '2022-08-17T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 15, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLnSHqar', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLnSHqar', + meta: { + lastUpdated: '2022-12-16T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE5ZsR', + }, + effectiveDateTime: '2022-11-16T06:10:16Z', + issued: '2022-11-16T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLnSI7dt', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLnSI7dt', + meta: { + lastUpdated: '2022-12-16T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE5ZsR', + }, + effectiveDateTime: '2022-11-16T06:10:16Z', + issued: '2022-11-16T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 1, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLnSIOgv', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLnSIOgv', + meta: { + lastUpdated: '2022-12-16T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE5ZsR', + }, + effectiveDateTime: '2022-11-16T06:10:16Z', + issued: '2022-11-16T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 86.1, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLnSIwmz', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLnSIwmz', + meta: { + lastUpdated: '2022-12-16T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE5ZsR', + }, + effectiveDateTime: '2022-11-16T06:10:16Z', + issued: '2022-11-16T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 67, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 103, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLnSJDq1', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLnSJDq1', + meta: { + lastUpdated: '2022-12-16T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE5ZsR', + }, + effectiveDateTime: '2022-11-16T06:10:16Z', + issued: '2022-11-16T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 61, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmLnUXXRF', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmLnUXXRF', + meta: { + lastUpdated: '2022-12-16T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE5ZsR', + }, + effectiveDateTime: '2022-11-16T06:10:16Z', + issued: '2022-11-16T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 12, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmM61ZlyP', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmM61ZlyP', + meta: { + lastUpdated: '2023-02-17T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8302-2', + display: 'Body Height', + }, + ], + text: 'Body Height', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE5qvT', + }, + effectiveDateTime: '2023-01-18T06:10:16Z', + issued: '2023-01-18T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 171.3, + unit: 'cm', + system: 'http://unitsofmeasure.org', + code: 'cm', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmM61a31R', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmM61a31R', + meta: { + lastUpdated: '2023-02-17T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '72514-3', + display: + 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + ], + text: 'Pain severity - 0-10 verbal numeric rating [Score] - Reported', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE5qvT', + }, + effectiveDateTime: '2023-01-18T06:10:16Z', + issued: '2023-01-18T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 3, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + referenceRange: [ + { + low: { + value: 20, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + high: { + value: 182, + unit: 'Score', + system: 'http://unitsofmeasure.org', + code: '{score}', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmM61aK4T', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmM61aK4T', + meta: { + lastUpdated: '2023-02-17T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '29463-7', + display: 'Body Weight', + }, + ], + text: 'Body Weight', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE5qvT', + }, + effectiveDateTime: '2023-01-18T06:10:16Z', + issued: '2023-01-18T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 86.5, + unit: 'kg', + system: 'http://unitsofmeasure.org', + code: 'kg', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmM61asAX', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmM61asAX', + meta: { + lastUpdated: '2023-02-17T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE5qvT', + }, + effectiveDateTime: '2023-01-18T06:10:16Z', + issued: '2023-01-18T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 71, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 104, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmM61b9DZ', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmM61b9DZ', + meta: { + lastUpdated: '2023-02-17T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8867-4', + display: 'Heart rate', + }, + ], + text: 'Heart rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE5qvT', + }, + effectiveDateTime: '2023-01-18T06:10:16Z', + issued: '2023-01-18T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 91, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYmM61bQGb', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYmM61bQGb', + meta: { + lastUpdated: '2023-02-17T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '9279-1', + display: 'Respiratory rate', + }, + ], + text: 'Respiratory rate', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZE5qvT', + }, + effectiveDateTime: '2023-01-18T06:10:16Z', + issued: '2023-01-18T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MgeCVCVl', + display: 'Dr. Veronika907 Rogahn59', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-O3d8XKfncXMC', + display: 'TEST VAMC', + }, + ], + valueQuantity: { + value: 13, + unit: '/min', + system: 'http://unitsofmeasure.org', + code: '/min', + }, + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + }, + search: { + mode: 'match', + }, + }, +]; + +const oneInEveryMonth = [ + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXYfgnN', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrXYfgnN', + meta: { + lastUpdated: '2013-04-25T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure - Januar', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9W4SB', + }, + effectiveDateTime: '2024-01-26T06:10:16Z', + issued: '2013-01-26T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfQbW4eP', + display: 'Dr. Francis500 Ratke343', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5ABdt3x', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 81, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 202401, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXYfgnN', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrXYfgnN', + meta: { + lastUpdated: '2013-04-25T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure - Januar', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9W4SB', + }, + effectiveDateTime: '2024-01-06T06:10:16Z', + issued: '2013-01-06T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfQbW4eP', + display: 'Dr. Francis500 Ratke343', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5ABdt3x', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 81, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 202402, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, + { + fullUrl: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Observation/4-1bKlpYjrXYfgnN', + resource: { + resourceType: 'Observation', + id: '4-1bKlpYjrXYfgnN', + meta: { + lastUpdated: '2013-04-25T06:10:16Z', + }, + status: 'final', + category: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/observation-category', + code: 'vital-signs', + display: 'Vital Signs', + }, + ], + text: 'Vital Signs', + }, + ], + code: { + coding: [ + { + system: 'http://loinc.org', + code: '85354-9', + display: 'Blood Pressure - Januar', + }, + ], + text: 'Blood Pressure', + }, + subject: { + reference: 'https://sandbox-api.va.gov/services/fhir/v0/r4/Patient/49', + display: 'Mrs. Therese102 Un745 Oberbrunner298', + }, + encounter: { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Encounter/4-1abONcOSZ9W4SB', + }, + effectiveDateTime: '2024-02-26T06:10:16Z', + issued: '2013-02-26T06:10:16Z', + performer: [ + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Practitioner/4-Nn79MfQbW4eP', + display: 'Dr. Francis500 Ratke343', + }, + { + reference: + 'https://sandbox-api.va.gov/services/fhir/v0/r4/Organization/4-5pFm5ABdt3x', + display: 'TEST VAMC', + }, + ], + interpretation: [ + { + coding: [ + { + system: + 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation', + code: 'A', + display: 'Abnormal', + }, + ], + text: 'A', + }, + ], + component: [ + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8462-4', + display: 'Diastolic Blood Pressure', + }, + ], + text: 'Diastolic Blood Pressure', + }, + valueQuantity: { + value: 81, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + { + code: { + coding: [ + { + system: 'http://loinc.org', + code: '8480-6', + display: 'Systolic Blood Pressure', + }, + ], + text: 'Systolic Blood Pressure', + }, + valueQuantity: { + value: 2024023, + unit: 'mm Hg', + system: 'http://unitsofmeasure.org', + code: 'mm[Hg]', + }, + }, + ], + }, + search: { + mode: 'match', + }, + }, +]; + +const all = (from, _to) => { + const bucket = oneInEveryMonth; + + const matches = []; + const [year, month] = from.split('-'); + const fromDate = new Date(year, month - 1, 1); + const toDate = new Date( + fromDate.getFullYear(), + fromDate.getMonth() + 1, + 0, + 23, + 59, + 59, + 999, + ); + + for (const entry of bucket) { + // include entry if effectiveDateTime is between from and to + const entryDate = new Date(entry.resource.effectiveDateTime); + // console.log({ + // fromDate:fromDate.getTime(), + // entryDate:entryDate.getTime(), + // toDate:toDate.getTime(), + // afterFrom:entryDate.getTime() >= fromDate.getTime(), + // beforeTo:entryDate.getTime() <= toDate.getTime() + // }) + if ( + entryDate.getTime() >= fromDate.getTime() && + entryDate.getTime() <= toDate.getTime() + ) { + // console.log('got match'); + matches.push(entry); + } + } + + return { entry: matches }; +}; + +module.exports = { + all, +}; diff --git a/src/platform/mhv/api/mocks/medical-records/vitals/index.js b/src/platform/mhv/api/mocks/medical-records/vitals/index.js index 163ae8b1294f..0515d483c484 100644 --- a/src/platform/mhv/api/mocks/medical-records/vitals/index.js +++ b/src/platform/mhv/api/mocks/medical-records/vitals/index.js @@ -1,658 +1,5 @@ const all = { entry: [ - { - // ##################################################################################### - // ##################################################################################### Blood pressure - // ##################################################################################### - resource: { - code: { - coding: [ - { - code: '85354-9', - display: 'Blood pressure panel with all children optional', - }, - ], - text: 'BLOOD PRESSURE', - }, - component: [ - { - code: { - coding: [ - { - code: '8480-6', - display: 'Systolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 124, - }, - }, - { - code: { - coding: [ - { - code: '8462-4', - display: 'Diastolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 84, - }, - }, - ], - contained: [ - { - id: 'Location-0', - name: 'Washington DC VAMC', - resourceType: 'Location', - }, - ], - effectiveDateTime: '2024-03-12T13:27:00-05:00', - id: '1001', - performer: [ - { - extension: [ - { - valueReference: { - reference: '#Location-0', - }, - }, - ], - }, - ], - }, - }, - { - resource: { - code: { - coding: [ - { - code: '85354-9', - display: 'Blood pressure panel with all children optional', - }, - ], - text: 'BLOOD PRESSURE', - }, - component: [ - { - code: { - coding: [ - { - code: '8480-6', - display: 'Systolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 118, - }, - }, - { - code: { - coding: [ - { - code: '8462-4', - display: 'Diastolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 75, - }, - }, - ], - contained: [ - { - id: 'Location-0', - name: 'Washington DC VAMC', - resourceType: 'Location', - }, - ], - effectiveDateTime: '2021-04-04T08:27:00-05:00', - id: '1002', - performer: [ - { - extension: [ - { - valueReference: { - reference: '#Location-0', - }, - }, - ], - }, - ], - }, - }, - { - resource: { - code: { - coding: [ - { - code: '85354-9', - display: 'Blood pressure panel with all children optional', - }, - ], - text: 'BLOOD PRESSURE', - }, - component: [ - { - code: { - coding: [ - { - code: '8480-6', - display: 'Systolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 121, - }, - }, - { - code: { - coding: [ - { - code: '8462-4', - display: 'Diastolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 82, - }, - }, - ], - contained: [ - { - id: 'Location-0', - name: 'Washington DC VAMC', - resourceType: 'Location', - }, - ], - effectiveDateTime: '2021-01-15T09:00:00-05:00', - id: '1003', - performer: [ - { - extension: [ - { - valueReference: { - reference: '#Location-0', - }, - }, - ], - }, - ], - }, - }, - { - resource: { - code: { - coding: [ - { - code: '85354-9', - display: 'Blood pressure panel with all children optional', - }, - ], - text: 'BLOOD PRESSURE', - }, - component: [ - { - code: { - coding: [ - { - code: '8480-6', - display: 'Systolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 120, - }, - }, - { - code: { - coding: [ - { - code: '8462-4', - display: 'Diastolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 80, - }, - }, - ], - contained: [ - { - id: 'Location-0', - name: 'Washington DC VAMC', - resourceType: 'Location', - }, - ], - effectiveDateTime: '2020-12-17T11:48:00-05:00', - id: '1004', - performer: [ - { - extension: [ - { - valueReference: { - reference: '#Location-0', - }, - }, - ], - }, - ], - }, - }, - { - resource: { - code: { - coding: [ - { - code: '85354-9', - display: 'Blood pressure panel with all children optional', - }, - ], - text: 'BLOOD PRESSURE', - }, - component: [ - { - code: { - coding: [ - { - code: '8480-6', - display: 'Systolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 107, - }, - }, - { - code: { - coding: [ - { - code: '8462-4', - display: 'Diastolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 70, - }, - }, - ], - contained: [ - { - id: 'Location-0', - name: 'Washington DC VAMC', - resourceType: 'Location', - }, - ], - effectiveDateTime: '2020-06-10T10:36:00-05:00', - id: '1005', - performer: [ - { - extension: [ - { - valueReference: { - reference: '#Location-0', - }, - }, - ], - }, - ], - }, - }, - { - resource: { - code: { - coding: [ - { - code: '85354-9', - display: 'Blood pressure panel with all children optional', - }, - ], - text: 'BLOOD PRESSURE', - }, - component: [ - { - code: { - coding: [ - { - code: '8480-6', - display: 'Systolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 116, - }, - }, - { - code: { - coding: [ - { - code: '8462-4', - display: 'Diastolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 73, - }, - }, - ], - contained: [ - { - id: 'Location-0', - name: 'Washington DC VAMC', - resourceType: 'Location', - }, - ], - effectiveDateTime: '2020-05-10T08:20:00-05:00', - id: '1006', - performer: [ - { - extension: [ - { - valueReference: { - reference: '#Location-0', - }, - }, - ], - }, - ], - }, - }, - { - resource: { - code: { - coding: [ - { - code: '85354-9', - display: 'Blood pressure panel with all children optional', - }, - ], - text: 'BLOOD PRESSURE', - }, - component: [ - { - code: { - coding: [ - { - code: '8480-6', - display: 'Systolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 119, - }, - }, - { - code: { - coding: [ - { - code: '8462-4', - display: 'Diastolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 74, - }, - }, - ], - contained: [ - { - id: 'Location-0', - name: 'Washington DC VAMC', - resourceType: 'Location', - }, - ], - effectiveDateTime: '2020-03-03T09:05:00-05:00', - id: '1007', - performer: [ - { - extension: [ - { - valueReference: { - reference: '#Location-0', - }, - }, - ], - }, - ], - }, - }, - { - resource: { - code: { - coding: [ - { - code: '85354-9', - display: 'Blood pressure panel with all children optional', - }, - ], - text: 'BLOOD PRESSURE', - }, - component: [ - { - code: { - coding: [ - { - code: '8480-6', - display: 'Systolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 108, - }, - }, - { - code: { - coding: [ - { - code: '8462-4', - display: 'Diastolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 68, - }, - }, - ], - contained: [ - { - id: 'Location-0', - name: 'Washington DC VAMC', - resourceType: 'Location', - }, - ], - effectiveDateTime: '2020-02-09T14:15:00-05:00', - id: '1008', - performer: [ - { - extension: [ - { - valueReference: { - reference: '#Location-0', - }, - }, - ], - }, - ], - }, - }, - { - resource: { - code: { - coding: [ - { - code: '85354-9', - display: 'Blood pressure panel with all children optional', - }, - ], - text: 'BLOOD PRESSURE', - }, - component: [ - { - code: { - coding: [ - { - code: '8480-6', - display: 'Systolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 102, - }, - }, - { - code: { - coding: [ - { - code: '8462-4', - display: 'Diastolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 70, - }, - }, - ], - contained: [ - { - id: 'Location-0', - name: 'Washington DC VAMC', - resourceType: 'Location', - }, - ], - effectiveDateTime: '2020-02-05T16:39:00-05:00', - id: '1009', - performer: [ - { - extension: [ - { - valueReference: { - reference: '#Location-0', - }, - }, - ], - }, - ], - }, - }, - { - resource: { - code: { - coding: [ - { - code: '85354-9', - display: 'Blood pressure panel with all children optional', - }, - ], - text: 'BLOOD PRESSURE', - }, - component: [ - { - code: { - coding: [ - { - code: '8480-6', - display: 'Systolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 120, - }, - }, - { - code: { - coding: [ - { - code: '8462-4', - display: 'Diastolic blood pressure', - }, - ], - }, - valueQuantity: { - code: 'mm[Hg]', - unit: 'mm[Hg]', - value: 80, - }, - }, - ], - contained: [ - { - id: 'Location-0', - name: 'Washington DC VAMC', - resourceType: 'Location', - }, - ], - effectiveDateTime: '2019-01-23T09:00:00-05:00', - id: '10010', - performer: [ - { - extension: [ - { - valueReference: { - reference: '#Location-0', - }, - }, - ], - }, - ], - }, - }, // ##################################################################################### // ##################################################################################### Heart Rate // ##################################################################################### diff --git a/src/platform/mhv/api/mocks/user/index.js b/src/platform/mhv/api/mocks/user/index.js index 0ff0086e8e2f..dfcb6bb7f05d 100644 --- a/src/platform/mhv/api/mocks/user/index.js +++ b/src/platform/mhv/api/mocks/user/index.js @@ -1,68 +1,170 @@ const defaultUser = { data: { + id: '', + type: 'user', attributes: { - profile: { - signIn: { - serviceName: 'idme', - authBroker: 'iam', - ssoe: true, - }, - email: 'fake@fake.com', - loa: { current: 3 }, - firstName: 'Pat', - middleName: '', - lastName: 'Doe', - gender: 'F', - birthDate: '1985-01-01', - verified: true, - }, - session: { - authBroker: 'iam', - ssoe: true, - transactionid: 'sf8mUOpuAoxkx8uWxI6yrBAS/t0yrsjDKqktFz255P0=', - }, - veteranStatus: { - status: 'OK', - isVeteran: true, - servedInMilitary: true, - }, - inProgressForms: [], - prefillsAvailable: ['21-526EZ'], services: [ 'facilities', 'hca', 'edu-benefits', - 'evss-claims', - 'form526', - 'user-profile', - 'health-records', + 'form-save-in-progress', + 'form-prefill', 'rx', 'messaging', 'medical-records', + 'health-records', + 'user-profile', + 'appeals-status', + 'identity-proofed', + 'vet360', ], + account: { + accountUuid: 'dcfcbb38-4879-4406-bfaf-2d86a62d9117', + }, + profile: { + email: 'marufsystb2allergy@id.me', + firstName: 'Veteran', + middleName: null, + lastName: 'Maveteran', + birthDate: '1974-04-06', + gender: 'M', + zip: null, + lastSignedIn: '2024-10-29T14:13:12.505Z', + loa: { + current: 3, + highest: 3, + }, + multifactor: true, + verified: true, + signIn: { + serviceName: 'idme', + clientId: 'vaweb', + authBroker: 'sis', + }, + authnContext: 'http://idmanagement.gov/ns/assurance/loa/3', + claims: { + appeals: true, + coe: false, + communicationPreferences: true, + connectedApps: true, + medicalCopays: false, + militaryHistory: false, + paymentHistory: false, + personalInformation: true, + ratingInfo: false, + form526RequiredIdentifierPresence: { + participantId: false, + birlsId: false, + ssn: true, + birthDate: true, + edipi: false, + }, + }, + icn: '1013884191V012082', + birlsId: null, + edipi: null, + secId: '1013884191', + logingovUuid: null, + idmeUuid: 'fd8efa99032b46b98beabac7b831f012', + idTheftFlag: false, + initialSignIn: '2023-09-13T18:49:23.788Z', + }, vaProfile: { status: 'OK', - birthDate: '19511118', - familyName: 'Hunter', + birthDate: '19740406', + familyName: 'Maveteran', gender: 'M', - givenNames: ['Julio', 'E'], - activeStatus: 'active', + givenNames: ['Veteran'], + isCernerPatient: false, + cernerId: null, + cernerFacilityIds: [], facilities: [ { - facilityId: '983', - isCerner: false, - }, - { - facilityId: '984', + facilityId: '979', isCerner: false, }, ], - mhvAccountState: 'OK', vaPatient: true, + mhvAccountState: 'MULTIPLE', + activeMHVIds: ['22461761', '22461761'], + }, + veteranStatus: null, + inProgressForms: [], + prefillsAvailable: [ + '21-686C', + '40-10007', + '0873', + '22-1990', + '22-1990N', + '22-1990E', + '22-1990EMEB', + '22-1995', + '22-5490', + '22-5490E', + '22-5495', + '22-0993', + '22-0994', + 'FEEDBACK-TOOL', + '22-10203', + '22-1990S', + '22-1990EZ', + '21-526EZ', + '1010ez', + '10-10EZR', + '21P-530', + '21P-527EZ', + '21P-530V2', + '686C-674', + '20-0995', + '20-0996', + '10182', + 'MDOT', + '5655', + '28-8832', + '28-1900', + '26-1880', + '26-4555', + '21-0966', + '10-7959C', + 'FORM-UPLOAD-FLOW', + '21-22', + '21-22A', + 'FORM-MOCK-AE-DESIGN-PATTERNS', + ], + vet360ContactInformation: { + vet360Id: '1513621', + email: null, + residentialAddress: null, + mailingAddress: null, + mobilePhone: null, + homePhone: null, + workPhone: null, + temporaryPhone: null, + faxNumber: null, + textPermission: null, + }, + session: { + authBroker: 'sis', + ssoe: false, + transactionid: null, + }, + onboarding: { + show: null, }, }, }, - meta: { errors: null }, + meta: { + errors: [ + { + externalService: 'VAProfile', + startTime: '2024-10-29T14:14:14Z', + endTime: null, + description: + 'RuntimeError, User does not have a valid edipi, User does not have a valid edipi', + status: 503, + }, + ], + }, }; const cernerUser = { diff --git a/src/platform/utilities/feature-toggles/featureFlagNames.json b/src/platform/utilities/feature-toggles/featureFlagNames.json index 2599a906133c..4bbedc6b4dc4 100644 --- a/src/platform/utilities/feature-toggles/featureFlagNames.json +++ b/src/platform/utilities/feature-toggles/featureFlagNames.json @@ -1,6 +1,7 @@ { "accreditedRepresentativePortalFrontend": "accredited_representative_portal_frontend", "accreditedRepresentativePortalPilot": "accredited_representative_portal_pilot", + "aedpVADX": "aedp_vadx", "allClaimsAddDisabilitiesEnhancement": "all_claims_add_disabilities_enhancement", "askVaDashboardFeature": "ask_va_dashboard_feature", "askVaFormFeature": "ask_va_form_feature", @@ -121,7 +122,9 @@ "mebExclusionPeriodEnabled": "meb_exclusion_period_enabled", "merge1995And5490": "merge_1995_and_5490", "mgibVerificationsMaintenance": "mgib_verifications_maintenance", + "mhvAcceleratedDeliveryEnabled": "mhv_accelerated_delivery_enabled", "mhvAcceleratedDeliveryAllergiesEnabled": "mhv_accelerated_delivery_allergies_enabled", + "mhvAcceleratedDeliveryVitalSignsEnabled": "mhv_accelerated_delivery_vital_signs_enabled", "mhvIntegrationMedicalRecordsToPhase1": "mhv_integration_medical_records_to_phase_1", "mhvInterstitialEnabled": "mhv_interstitial_enabled", "mhvLandingPagePersonalization": "mhv_landing_page_personalization",