Data type RP in FHIR

How the components of data type RP (Reference Pointer) become FHIR R4 elements, from the HL7 Version 2 to FHIR guide.

HL7 v2 definition
Definition of RP in HL7 v2 2.8
Maps
AttachmentDocumentReference

To Attachment2 rows

HL7 v2 sourcev2 typeFHIR elementFHIR typeConditions and notes
RP.1Pointer
STurlurl
RP.3Type Of Data
IDcontentTypecode
Value RP.3"/"RP.4

To DocumentReference2 rows

HL7 v2 sourcev2 typeFHIR elementFHIR typeConditions and notes
RP.1Pointer
STcontent.attachment.urlurl
RP.3Type Of Data
IDcontent.attachment.contentTypecode
Value RP.3"/"RP.4