Skip to content

Commit 908d24e

Browse files
authored
Implement updates to the API Programmer's Guide online content + PDF (#16450)
* Implement updates to the API Programmer's Guide online content + PDF Fixes #16289
1 parent 769b68d commit 908d24e

File tree

21 files changed

+61
-52
lines changed

21 files changed

+61
-52
lines changed

frontend-react/e2e/helpers/internal-links.ts

-4
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,4 @@ export const developerResourcesApiSideNav = [
7474
name: "Responses from ReportStream",
7575
path: "/developer-resources/api/documentation/responses-from-reportstream",
7676
},
77-
{
78-
name: "Sample payloads and output",
79-
path: "/developer-resources/api/documentation/sample-payloads-and-output",
80-
},
8177
];

frontend-react/e2e/spec/all/public/developer-resources/api/documentation/sample-payloads-and-output.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ const test = baseTest.extend<SecurityPageFixtures>({
3535
},
3636
});
3737

38-
test.describe(
38+
// Page currently archived
39+
test.describe.skip(
3940
"Developer Resources / API / Documentation / Sample payloads and output page",
4041
{
4142
tag: "@smoke",

frontend-react/public/sitemap.xml

-3
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@
6363
<url>
6464
<loc>https://reportstream.cdc.gov/developer-resources/api/documentation/responses-from-reportstream</loc>
6565
</url>
66-
<url>
67-
<loc>https://reportstream.cdc.gov/developer-resources/api/documentation/sample-payloads-and-output</loc>
68-
</url>
6966
<url>
7067
<loc>https://reportstream.cdc.gov/support</loc>
7168
</url>

frontend-react/src/AppRouter.tsx

+6-4
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ const ManagingYourConnectionIndex = lazy(
4545
lazyRouteMarkdown(() => import("./content/managing-your-connection/index.mdx")),
4646
);
4747
const SupportIndex = lazy(lazyRouteMarkdown(() => import("./content/support/index.mdx")));
48-
const ReportStreamApiDocumentationPayloads = lazy(
48+
// Page currently archived
49+
/*const ReportStreamApiDocumentationPayloads = lazy(
4950
lazyRouteMarkdown(
5051
() => import("./content/developer-resources/reportstream-api/documentation/SamplePayloadsAndOutput.mdx"),
5152
),
52-
);
53+
);*/
5354

5455
/* Public Pages */
5556
const TermsOfService = lazy(() => import("./pages/TermsOfService"));
@@ -269,13 +270,14 @@ export const appRoutes: RouteObject[] = [
269270
isContentPage: true,
270271
},
271272
},
272-
{
273+
// Page currently archived
274+
/*{
273275
path: "sample-payloads-and-output",
274276
element: <ReportStreamApiDocumentationPayloads />,
275277
handle: {
276278
isContentPage: true,
277279
},
278-
},
280+
},*/
279281
],
280282
},
281283
],

frontend-react/src/config/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { WidgetOptions } from "@okta/okta-signin-widget";
44
import type { Feature } from "@okta/okta-signin-widget";
55
import type { IIdleTimerProps } from "react-idle-timer";
66

7+
import site from "../content/site.json";
78
import type { ConsoleLevel } from "../utils/rsConsole/rsConsole";
89

910
const envVars = {
@@ -118,7 +119,7 @@ const config = {
118119
} satisfies Partial<Record<Feature, boolean>>,
119120
useClassicEngine: false,
120121
helpLinks: {
121-
help: "https://app.smartsheetgov.com/b/form/95d2f16b772c42d8aaa0ef5db28a6838",
122+
help: site.forms.contactUs.url,
122123
},
123124
i18n: {
124125
// Overriding English properties

frontend-react/src/content/about/index.mdx

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ meta:
99
src: /assets/img/opengraph/reportstream-tagline.png
1010
altText: "ReportStream. CDC's free, single connection to streamline your data transfer and improve public health. The words are surrounded by illustration of lines and boxes connected by colorful dots."
1111
---
12+
13+
import site from "../site.json";
14+
1215
<HeroWrapper>
1316
<div className="grid-container">
1417
<div className="grid-row grid-gap margin-y-3">
@@ -126,7 +129,7 @@ meta:
126129
<CardGroup>
127130
<Card gridLayout={{col: "fill"}}>
128131
<CardHeader typeof="div">
129-
### <A href="/assets/pdf/ReportStream_Onepager_20240605.pdf" target="_blank">ReportStream overview PDF <Icon name='FileDownload'/></A>
132+
### <A href={site.assets.onePager.path} target="_blank">ReportStream overview PDF <Icon name='FileDownload'/></A>
130133
</CardHeader>
131134
<CardBody>
132135
Download a quick summary of ReportStream that you can print and share.

frontend-react/src/content/about/news.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ While the pilot focused on flu data, the goal was to create solutions that laid
4141

4242
As we celebrate the success of the flu pilot, we'll be conducting further tests on other conditions with multiple partners. We are excited for the future of scaling these results so ReportStream can send a broad range of reportable public health data.
4343

44-
If you are interested in sending or receiving flu data, <A href="https://app.smartsheetgov.com/b/form/48f580abb9b440549b1a9cf996ba6957">connect with us</A> and we’ll discuss when and how your organization can start.
44+
If you are interested in sending or receiving flu data, <A href={site.forms.connectWithRS.url}>connect with us</A> and we’ll discuss when and how your organization can start.

frontend-react/src/content/about/our-network.mdx

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ backToTop: true
1212
---
1313
import Sidenav from "./sidenav.mdx"
1414
import usamapsvg from "../usa_w_territories.svg"; // in /content dir to get unique filename per build
15+
import site from "../site.json"
1516

1617
<LayoutSidenav>
1718
<Sidenav />
@@ -22,7 +23,7 @@ import usamapsvg from "../usa_w_territories.svg"; // in /content dir to get uniq
2223

2324
State, local, and territorial agencies across the United States rely on ReportStream to make accurate, timely public health responses.
2425

25-
Don't see your state or territory? [Connect with us](https://app.smartsheetgov.com/b/form/48f580abb9b440549b1a9cf996ba6957).
26+
Don't see your state or territory? <A href={site.forms.connectWithRS.url}>Connect with us</A>.
2627

2728
<figure>
2829
<img src={usamapsvg} alt="Map of states using ReportStream" />

frontend-react/src/content/about/release-notes.mdx

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ meta:
1111
backToTop: true
1212
---
1313
import Sidenav from "./sidenav.mdx"
14+
import site from "../site.json"
1415

1516
<LayoutSidenav>
1617
<Sidenav/>
@@ -508,9 +509,9 @@ You may also be interested in:
508509
pandemics and gives us more flexibility for future
509510
data types in public health. If your jurisdiction is
510511
interested in REST/HTTP transport,{" "}
511-
<a href="https://app.smartsheetgov.com/b/form/48f580abb9b440549b1a9cf996ba6957">
512+
<A href={site.forms.connectWithRS.url}>
512513
connect with our team
513-
</a>
514+
</A>
514515
.
515516
</p>
516517
),

frontend-react/src/content/about/security.mdx

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ meta:
1010
altText: "An abstract illustration of screens and a document."
1111
---
1212
import Sidenav from "./sidenav.mdx"
13+
import site from "../site.json"
1314

1415
<LayoutSidenav>
1516
<Sidenav/>
@@ -103,7 +104,7 @@ ReportStream is committed to handling data securely and reliably. From federal r
103104
headingLevel:"h3",
104105
title: "How does ReportStream send data?",
105106
content: (<p>
106-
ReportStream transports data through Secure File Transfer Protocol (SFTP) or a REST API. Public health entities can request data be sent in real time or batched according to their needs. ReportStream transports data through Secure File Transfer Protocol (SFTP) or a REST API. Public health entities can request data be sent in real time or batched according to their needs. If you are a public health entity interested in another transport method, <A href="https://app.smartsheetgov.com/b/form/48f580abb9b440549b1a9cf996ba6957">contact our team</A> to explore your options.
107+
ReportStream transports data through Secure File Transfer Protocol (SFTP) or a REST API. Public health entities can request data be sent in real time or batched according to their needs. ReportStream transports data through Secure File Transfer Protocol (SFTP) or a REST API. Public health entities can request data be sent in real time or batched according to their needs. If you are a public health entity interested in another transport method, <A href={site.forms.connectWithRS.url}>contact our team</A> to explore your options.
107108
</p>)
108109
},
109110
{

frontend-react/src/content/developer-resources/reportstream-api/ReportStreamApi.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import site from "../../site.json";
2727
</Card>
2828
<Card gridLayout={{col: "fill"}}>
2929
<CardHeader><span className="font-sans-lg">[Documentation](documentation)</span></CardHeader>
30-
<CardBody>Details on our data model and sample responses, inputs and outputs to assist you in our set up and use of the ReportStream API.</CardBody>
30+
<CardBody>Details on our sample responses to assist you in our set up and use of the ReportStream API.</CardBody>
3131
</Card>
3232
</CardGroup>
3333

frontend-react/src/content/developer-resources/reportstream-api/Sidenav.mdx

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
<USNavLink href="/developer-resources/api/documentation/responses-from-reportstream#response-messages">Response messages</USNavLink>,
77
<USNavLink href="/developer-resources/api/documentation/responses-from-reportstream#json-error-responses">JSON error responses</USNavLink>,
88
]}>Responses from ReportStream</SideNavItem>,
9-
<SideNavItem href="/developer-resources/api/documentation/sample-payloads-and-output" items={[
10-
<USNavLink href="/developer-resources/api/documentation/sample-payloads-and-output#sample-hl7-251-payload-and-output">Sample HL7 v2.5.1 payload and output</USNavLink>,
11-
]}>Sample payloads and output</SideNavItem>,
129
]}>Documentation</SideNavItem>,
1310
]}>
1411
</SideNav>

frontend-react/src/content/developer-resources/reportstream-api/documentation/Documentation.mdx

+1-13
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
meta:
33
title: ReportStream API documentation
4-
description: Details on our data model and sample responses, inputs and outputs to assist you in your set up and use of the ReportStream API.
4+
description: Details on our sample responses to assist you in your set up and use of the ReportStream API.
55
openGraph:
66
image:
77
src: /assets/img/opengraph/reportstream-tagline.png
@@ -28,21 +28,9 @@ import Sidenav from "../Sidenav.mdx";
2828
ReportStream responds to each API call with a response (JSON formatted) about the disposition of your data.
2929

3030
**On this page:**
31-
* [Errors and warnings](responses-from-reportstream#errors-and-warnings)
3231
* [Response messages](responses-from-reportstream#response-messages)
3332
* [JSON error responses](responses-from-reportstream#json-error-responses)
3433
</CardBody>
3534
</Card>
36-
<Card className="width-full">
37-
<CardHeader typeof="div">
38-
## [Sample payloads and outputs](sample-payloads-and-output)
39-
</CardHeader>
40-
<CardBody>
41-
Samples are provided for HL7 inputs and responses.
42-
43-
**On this page:**
44-
* [Sample HL7 2.5.1 payload and output](sample-payloads-and-output#sample-hl7-251-payload-and-output)
45-
</CardBody>
46-
</Card>
4735
</CardGroup>
4836
</LayoutMain>

frontend-react/src/content/developer-resources/reportstream-api/documentation/SamplePayloadsAndOutput.mdx

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
# Page currently archived
23
meta:
34
title: ReportStream API sample payloads and output
45
description: Sample payloads and output for HL7 and CSV submissions to ReportStram's API

frontend-react/src/content/developer-resources/reportstream-api/getting-started/GettingStarted.mdx

+9-6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import Step2 from "./Step2.mdx";
1313
import Step3 from "./Step3.mdx";
1414
import Step4 from "./Step4.mdx";
1515
import Sidenav from "../Sidenav.mdx";
16+
import site from "../../../site.json";
1617

1718
<LayoutSidenav><Sidenav /></LayoutSidenav>
1819

@@ -24,24 +25,26 @@ import Sidenav from "../Sidenav.mdx";
2425
Examples in this guide use curl commands for simplicity with the assumption you’ll be coding these calls into your sending system.
2526
You can also use a program like Postman to test submissions.
2627

27-
<p className="text-base">**Last updated:** 9/9/24</p>
28+
<p className="text-base">**Last updated:** 11/4/24</p>
2829

2930
***
3031

3132
<h2 className="rs-numbered">Format and validate a fake data file</h2>
3233

3334
To prepare your file for testing, set up a sample file with fake data (artificially created, non-PII data).
3435

35-
Currently, ReportStream can accept either HL7 or FHIR data.
36-
We can send you a file with fake data to review that will always successfully validate against the NIST HL7v2 validator.
37-
Note that because the data in those files are computer-generated, it may not feel realistic in some places.
36+
Currently, ReportStream can accept either HL7 or FHIR data. We can provide a sample HL7 file with fake data
37+
to review <A href={site.forms.contactUs.url}>upon request</A>.
3838

3939
<Alert type="tip">For this step, you can refer to formatting requirements for
4040
[HL7v2.5.1 ORU-R01](https://www.hl7.org/implement/standards/product_brief.cfm?product_id=185) or
4141
[RADxMARS](https://www.nibib.nih.gov/covid-19/radx-tech-program/mars/hl7v2-getting-started) for OTC (over the counter) test data.</Alert>
4242

43-
When you’ve formatted your fake (non-PII) data file, test your data model using using the
44-
[NIST General Validation Tool](https://hl7v2-gvt.nist.gov/gvt/#/home), and correct any errors you receive.
43+
When you’ve formatted your fake (non-PII) data file, test your data model using the
44+
<A href={site.external.nistValidationSuite.url}>NIST Electronic Lab Reporting (ELR) Validation Suite</A>.
45+
(Note: If you’re testing OTC data, use the <A href={site.external.nistGeneralValidationTool.url}>NIST HL7 General Validation Tool</A> and
46+
select “RADx MARS HL7v2” from the tool scope dropdown. Navigate to the “Context-free” tab and select the “Onboarding” profile group).
47+
Correct any errors you receive.
4548

4649
<h2 className="rs-numbered">Set up authentication and test your API connection</h2>
4750

frontend-react/src/content/getting-started/receiving-data.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ backToTop: true
1212
---
1313

1414
import Sidenav from "./sidenav.mdx"
15-
import site from "../../content/site.json";
15+
import site from "../site.json";
1616

1717
<LayoutSidenav>
1818
<Sidenav/>
@@ -86,7 +86,7 @@ Connecting to ReportStream is similar to setting up an Electronic Lab Reporting
8686

8787
<h2 id="anchor-what-you-need">What you need</h2>
8888

89-
In addition to gathering your team and setting aside time for the weekly calls, you’ll need to provide us with more information about your requirements and preferences. Our [onboarding form](https://app.smartsheetgov.com/b/form/b0935d5d1e924c57b2d293b4ed0f2cd5) collects the specific details about your needs.
89+
In addition to gathering your team and setting aside time for the weekly calls, you’ll need to provide us with more information about your requirements and preferences. Our <A href={site.forms.intakeElr.url}>onboarding form</A> collects the specific details about your needs.
9090

9191
Review what you need to gather to start onboarding.
9292

@@ -209,7 +209,7 @@ Once you have all the information you need, submit the onboarding form. We'll ge
209209
<CardGroup>
210210
<Card gridLayout={{ tablet: { col: 4 } }}>
211211
<CardHeader>
212-
### <A href="/assets/pdf/ReportStream_Onepager_20240605.pdf" target="_blank">ReportStream overview PDF <Icon name='FileDownload'/></A>
212+
### <A href={site.assets.onePager.path} target="_blank">ReportStream overview PDF <Icon name='FileDownload'/></A>
213213
</CardHeader>
214214
<CardBody>
215215
Download a quick summary of ReportStream that you can print and share.

frontend-react/src/content/getting-started/sending-data.mdx

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ meta:
1111
backToTop: true
1212
---
1313
import Sidenav from "./sidenav.mdx"
14+
import site from "../site.json";
1415

1516
<LayoutSidenav>
1617
<Sidenav/>
@@ -35,7 +36,7 @@ From the start, we work with your unique requirements and preferences to create
3536
headingLevel:"h3",
3637
title: "2. Complete interest form",
3738
content: (<>
38-
<p>Let us know you want to get started by filling out and submitting the <A href="https://app.smartsheetgov.com/b/form/8c71931f25e64e42bf1fef32900bdecd" target="_blank">interest form</A>. You’ll answer a few questions about your needs, like how many messages you might be sending and data format.</p>
39+
<p>Let us know you want to get started by filling out and submitting the <A href={site.forms.healthcareOrganizationInterest.url} target="_blank">interest form</A>. You’ll answer a few questions about your needs, like how many messages you might be sending and data format.</p>
3940
<p>Our terms of service is also available to review in the interest form. You’ll need to agree to our <A href="/terms-of-service">terms of service</A> before you begin sending data. You can sign this at any point during your onboarding or when you fill out the form.</p>
4041
<p>Our team will be in touch within 48 hours of receiving your form to schedule a kickoff call.</p>
4142
</>),
@@ -67,7 +68,7 @@ From the start, we work with your unique requirements and preferences to create
6768
]} />
6869
If you're not connected with a ReportStream team member yet, get started by letting us know more about your needs.
6970

70-
<A className="usa-button" href="https://app.smartsheetgov.com/b/form/48f580abb9b440549b1a9cf996ba6957" target="_blank">Get started</A>
71+
<A className="usa-button" href={site.forms.connectWithRS.url} target="_blank">Get started</A>
7172

7273
{
7374
/* pending approval
@@ -109,7 +110,7 @@ Multiple jurisdictions, multiple formats and requirements. Just one connection f
109110
<Card gridLayout={{tablet: {col: 4}}}>
110111

111112
<CardHeader>
112-
### <A href="/assets/pdf/ReportStream_Onepager_20230621.pdf" target="_blank">ReportStream overview PDF <Icon name='FileDownload'/></A>
113+
### <A href={site.assets.onePager.path} target="_blank">ReportStream overview PDF <Icon name='FileDownload'/></A>
113114
</CardHeader>
114115
<CardBody>
115116
Download a quick summary of ReportStream that you can print and share.

frontend-react/src/content/managing-your-connection/refer-healthcare-organizations.mdx

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ meta:
1111
backToTop: true
1212
---
1313
import Sidenav from "./sidenav.mdx";
14+
import site from "../site.json";
1415

1516
<LayoutSidenav>
1617
<Sidenav/>
@@ -68,7 +69,7 @@ You don’t have to track the varying needs of different jurisdictions.
6869

6970
**Choose your platform and get started:**
7071

71-
- To send ELR data through HL7 or FHIR: [Contact ReportStream](https://app.smartsheetgov.com/b/form/48f580abb9b440549b1a9cf996ba6957) and learn more at [reportstream.cdc.gov](https://reportstream.cdc.gov).
72+
- To send ELR data through HL7 or FHIR: <A href={site.forms.connectWithRS.url}>Contact ReportStream</A> and learn more at [reportstream.cdc.gov](https://reportstream.cdc.gov).
7273
- To report through single entry or CSV upload: [Sign up for SimpleReport](https://www.simplereport.gov/getting-started/organizations-and-testing-facilities/onboard-your-organization/) and learn more at [simplereport.gov](https://simplereport.gov).
7374

7475
We’ve been encouraged by our work with ReportStream and SimpleReport and how they are helping other organizations. We hope it will simplify your data transfer as well.
@@ -95,4 +96,4 @@ And you can easily report to other jurisdictions through the same, single connec
9596
If you’re interested, go to [reportstream.cdc.gov](https://reportstream.cdc.gov) to learn more, or email the team at [[email protected]](mailto:[email protected]).
9697
</SummaryBox>
9798

98-
[Let us know](https://app.smartsheetgov.com/b/form/48f580abb9b440549b1a9cf996ba6957) if we can provide any additional content, such as a logo or more copy.
99+
<A href={site.forms.connectWithRS.url}>Let us know</A> if we can provide any additional content, such as a logo or more copy.

frontend-react/src/content/site.json

+16-1
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,32 @@
4141
"contactUs": {
4242
"name": "Contact us",
4343
"url": "https://app.smartsheetgov.com/b/form/95d2f16b772c42d8aaa0ef5db28a6838"
44+
},
45+
"healthcareOrganizationInterest": {
46+
"name": "Healthcare Organization Interest Form",
47+
"url": "https://app.smartsheetgov.com/b/form/8c71931f25e64e42bf1fef32900bdecd"
4448
}
4549
},
4650
"assets": {
4751
"standardCsv": {
4852
"path": "/assets/csv/ReportStream-StandardCSV-ExampleData-20220509.csv"
4953
},
5054
"programmersGuidePdf": {
51-
"path": "/assets/pdf/ReportStream-Programmers-Guide-v4.6.pdf"
55+
"path": "/assets/pdf/ReportStream-Programmers-Guide-v4.7.pdf"
5256
},
5357
"exampleHl7": {
5458
"path": "/assets/hl7/Example-hl7-file.hl7"
59+
},
60+
"onePager": {
61+
"path": "/assets/pdf/ReportStream_Onepager_20240605.pdf"
62+
}
63+
},
64+
"external": {
65+
"nistValidationSuite": {
66+
"url": "https://hl7v2-elr-testing.nist.gov/mu-elr/"
67+
},
68+
"nistGeneralValidationTool": {
69+
"url": "https://hl7v2-gvt.nist.gov/gvt/#/home"
5570
}
5671
}
5772
}

0 commit comments

Comments
 (0)