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

Develop PHDC address builder #1052

Closed
m-goggins opened this issue Jan 10, 2024 · 0 comments · Fixed by #1070
Closed

Develop PHDC address builder #1052

m-goggins opened this issue Jan 10, 2024 · 0 comments · Fixed by #1070
Assignees
Labels

Comments

@m-goggins
Copy link
Collaborator

m-goggins commented Jan 10, 2024

The addr section is not required for building the patientRole section within the recordTarget of a PHDC case report, but it is information we are likely to have and want included. We are also likely to encounter and need to populate other addresses, e.g., hospital address. This generic addr helper function should be able to populate with data from the message parser.

Acceptance Criteria:
A helper method called _build_addr is added to the PHDCBuilder class. The method uses lxml to build out the following elements:

			<addr use="">
				<streetAddressLine>14 WILLOW GLEN Apt. 2</streetAddressLine>
				<city>SANDY SPRINGS</city>
				<state>13</state>
				<postalCode>30029</postalCode>
				<county>Fulton</county>
				<country>840</country>
			</addr>
			

For context, address will nest in patientRole like so:

<recordTarget>
		<patientRole>
			<id extension="" root="" assigningAuthorityName=""/>
			<addr use="">
				<streetAddressLine>14 WILLOW GLEN Apt. 2</streetAddressLine>
				<city>SANDY SPRINGS</city>
				<state>13</state>
				<postalCode>30029</postalCode>
				<county>Fulton</county>
				<country>840</country>
			</addr>
			<telecom use="" value=""/>
			<patient>
				<name use="">
					<prefix>Mr.</prefix>
					<given>Surma</given>
					<given>J</given>
					<family>Singh</family>
				</name>
				<administrativeGenderCode code="M" displayName="Male" codeSystem="2.16.840.1.113883.12.1" codeSystemName="Administrative sex (HL7)"/>
				<birthTime value="19900101"/>
				<sdtc:raceCode code="2106-3" displayName="White" codeSystem="2.16.840.1.113883.6.238" codeSystemName="Race &amp; Ethnicity"/>
				<ethnicGroupCode code="2186-5" displayName="Not Hispanic or Latino" codeSystem="2.16.840.1.113883.12.1" codeSystemName="Administrative sex (HL7)"/>
			</patient>
		</patientRole>
	</recordTarget>
@m-goggins m-goggins self-assigned this Jan 11, 2024
@m-goggins m-goggins linked a pull request Jan 12, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant