Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bulk submit endpoint references #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ npm run dev -- -p 8081

## Running Demos

After starting up Bulk Submit Demo and DEQM Test Server, the Measure ID drop down will be populated with the resource IDs of the measures populated on the test server. Selecting a measure will trigger a `$data-requirements` request to the test server for that measure, the results of which can be viewed in the "Data Requirements" panel. The results of the `$data-requirements` request are parsed into `_type` and `_typeFilter` headers in the "Filters" panel. When sending a bulk submit-data request, these filters are passed in with the request as query parameters.
After starting up Bulk Submit Demo and DEQM Test Server, the Measure ID drop down will be populated with the resource IDs of the measures populated on the test server. Selecting a measure will trigger a `$data-requirements` request to the test server for that measure, the results of which can be viewed in the "Data Requirements" panel. The results of the `$data-requirements` request are parsed into `_type` and `_typeFilter` headers in the "Filters" panel. When sending a bulk-submit-data request, these filters are passed in with the request as query parameters.

Fill in the "Export URL (Data Source)" field with the url to a FHIR server with bulk submit-data capability (You can use DEQM Test Server for this as well). Populating this field with a valid URL will generate a request preview with the URL, JSON body, and headers required for sending a bulk submit-data request.
Fill in the "Export URL (Data Source)" field with the url to a FHIR server with bulk-submit-data capability (You can use DEQM Test Server for this as well). Populating this field with a valid URL will generate a request preview with the URL, JSON body, and headers required for sending a bulk-submit-data request.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ describe('KickoffPostUrl', () => {
const urlInput = screen.getByRole('textbox') as HTMLInputElement;
expect(urlInput).toBeInTheDocument();
expect(urlInput).toHaveAttribute('readOnly');
expect(urlInput).toHaveValue('http://example.com/fhir-base-url/Measure/$submit-data');
expect(urlInput).toHaveValue('http://example.com/fhir-base-url/Measure/$bulk-submit-data');
});
});
2 changes: 1 addition & 1 deletion components/KickoffRequestView/KickoffPostUrl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function KickoffPostUrl() {
<Button fullWidth>POST</Button>
</Grid.Col>
<Grid.Col span={10}>
<TextInput readOnly value={`${process.env.NEXT_PUBLIC_DEQM_SERVER}/Measure/$submit-data`}></TextInput>
<TextInput readOnly value={`${process.env.NEXT_PUBLIC_DEQM_SERVER}/Measure/$bulk-submit-data`}></TextInput>
</Grid.Col>
</Grid>
);
Expand Down