Create the Header Node of the XML document using the provided submission metadata and tailor the XML format to match the supplied content group identifier.
Usage
make_header_node(
mcn,
jurisdiction_code,
content_group_id,
submitter_email,
submitter_name,
submitter_title,
state_fips_code
)
Arguments
- mcn
Metadata Control Number provided by EPHT.
- jurisdiction_code
Two-letter state abbreviation for the submitter state.
- content_group_id
Code that identifies the content found in EPHT documentation.
- submitter_email
Email of person submitting data to EPHT.
- submitter_name
First and last name of person submitting data to EPHT.
- submitter_title
Title of person submitting data to EPHT.
- state_fips_code
FIPS code of the submitter state.
See also
Other xml:
make_dataset_node()
,
make_root_element()
,
make_xml_document()
Examples
make_header_node(
mcn = "12345678-1234-1234-1234-123456789012",
jurisdiction_code = "CA",
content_group_id = "XX-HOSP",
submitter_email = "myname@email.com",
submitter_name = "First Last",
submitter_title = "Data Analyst",
state_fips_code = "06"
)
#> {xml_document}
#> <Header>
#> [1] <MCN>12345678-1234-1234-1234-123456789012</MCN>
#> [2] <JurisdictionCode>CA</JurisdictionCode>
#> [3] <ContentGroupIdentifier>XX-HOSP</ContentGroupIdentifier>
#> [4] <SubmitterInformation>\n <SubmitterEmailAddress>myname@email.com</Submit ...
#> [5] <StateFIPSCode>06</StateFIPSCode>