Second Opinion

Rofim enables complete interoperability of the second opinion request lifecycle with the HIS (Hospital Information System). With a second opinion request, the patient submits a request directly on the Rofim platform, addressed to a second physician of the facility.

Before being made available to the facility, the request must be validated by a user of the facility (typically a medical secretary), who checks both the documents provided by the patient and the second opinion request itself.

The logic is very similar to the one described for Incoming TE/Referrals, except that there is no billing flow. Three interoperability flows must be implemented:

  1. Retrieving second opinion requests (SIU S12)
  2. Updating the patient identity and IPP (SIU S14)
  3. Retrieving the patient's documents (MDM or ORU)

The logic is as follows:

  1. The patient submits a second opinion request on the Rofim platform.
  2. A user of the facility (medical secretary) validates the documents provided by the patient as well as the second opinion request.
  3. Once validated, the request is made available as an SIU S12 message, which can be retrieved by the facility.
  4. The facility matches the patient with a patient known to the hospital, or creates a new patient.
  5. The facility sends back an appointment update message (SIU S14) to update the patient identity in Rofim and convey the patient's IPP.
  6. The patient's documents are transmitted through an HL7 MDM or ORU message, as a base64-encoded attachment.

Retrieving Second Opinion Requests

This flow allows retrieving validated second opinion requests via an SIU S12 message.

DataValue
Supported formatHL7 2.5
Supported messages (outgoing)SIU 12
Message typeGET
API linkbase_url/dsa/siu

Important Data

DataFieldFormatRequiredComment
Unique identifier of the second opinion request (placer)SCH.1.1StringYesUnique ID of the second opinion request in Rofim
Unique identifier of the second opinion request (filler)SCH.2.1StringYesSame value as SCH.1.1. To be used in subsequent S14 messages
Facility request identifierSCH.7.2StringYesIdentifier of the second opinion request on the facility side
Validation date/timeSCH.11.4DTM (YYYYMMDDHHMMSS)YesDate and time the request was validated by the facility user
Request statusSCH.25.1StringYesStatus of the second opinion request in Rofim
Start date/timeAIS.4.1DTM (YYYYMMDDHHMMSS)YesSame value as SCH.11.4 (validation date/time)
Birth name (legal name)PID.5.1.1StringYesPatient last name. First repetition, with PID.5.7 set to L
Given namePID.5.2StringYesPatient first name (first and second repetitions)
|-- Name type codePID.5.7StringYesL (legal name) in the first repetition, D (usual name) in the second
Usual namePID.5.1.1StringNoSecond repetition, with PID.5.7 set to D. If no usual name is provided, the birth name is used
Date of birthPID.7.1DT (YYYYMMDD)Yes
Administrative sexPID.8StringYesM or F
Street addressPID.11.1.1StringNo
CityPID.11.3StringNo
Zip codePID.11.5StringNo
CountryPID.11.6StringNo
Phone numberPID.13.1StringNoRepetition with PID.13.2 set to PRN and PID.13.3 set to PH
Email addressPID.13.4StringNoSeparate repetition, with PID.13.2 set to NET and PID.13.3 set to Internet
Social security numberPID.19StringNoPatient NIR
Birth placePID.23StringNoCity of birth
Stay identifierPV1.19.1StringNoIEP or stay identifier
|-- Assigning authority (OID)PV1.19.4.2StringNoOID of the authority that assigned the stay identifier

Message Examples

<?xml version="1.0" encoding="UTF-8"?>
<message>
    <content>TVNIfF5+XCZ8Uk9GSU18Uk9GSU18fF4zMTA3ODMwNDh8MjAyNjEwMDkxMjQzMzN8fFNJVV5TMTJe
U0lVX1MxMnwxNzM3Nzc0fFB8Mi41fHx8fHxGUkF8VVRGLTh8RlJBDVNDSHw2YWI1MGM1MjA4M2Fj
N2ZhZDViOGI5OTF8NmFiNTBjNTIwODNhYzdmYWQ1YjhiOTkxfHx8fHxeMjYtMDAwMnx8fHxeXl4y
MDI2MDkyNDExNDQ0N3x8fHx8fHx8fHx8fHx8dmFsaWRhdGVkDVBJRHx8fHx8REVaT1JET15NYXJj
Xl5eXl5MfkRFWk9SRE9eTWFyY15eXl5eRHx8MTk4OTEyMTB8TXx8fF5eTWFyc2VpbGxlXl4xMzAw
Nl5GUnx8Xl5eZXJ3YW4rY3VyaWVwcC5tYXJjQHJvZmltLmRvY3Rvcnx8fHx8fE5DDUFJU3x8fHwy
MDI2MDkyNDExNDQ0Nw==</content>
    <content>TVNIfF5+XCZ8Uk9GSU18Uk9GSU18fF4zMTA3ODMwNDh8MjAyNjEwMDkxMjQzMzN8fFNJVV5TMTJe
U0lVX1MxMnwxNzM3Nzc1fFB8Mi41fHx8fHxGUkF8VVRGLTh8RlJBDVNDSHw2YWI1MTc2YTdjOTY1
MDVhZjYwN2FmZGF8N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NTE1MDM1OXx8fHx8fHx8fHx8fHx8dmFsaWRhdGVkDVBJRHx8fHx8TUFDSElOXnRydWNe
Xl5eXkx+TUFDSElORV50cnVjXl5eXl5EfHwxOTk5MDkwOXxGfHx8Xl50Xl50XkZSfHxeXl5tYWNo
aW50cnVjQHlvcG1haWwuY29tfHx8fHx8TkMNQUlTfHx8fDIwMjYwOTI1MTUwMzU5</content>
</message>
MSH|^~\&|ROFIM|ROFIM||^310783048|20261009124333||SIU^S12^SIU_S12|1737777|P|2.5|||||FRA|UTF-8|FRA
SCH|6ab548c93e6eba83589e96d9|6ab548c93e6eba83589e96d9|||||^26-0006||||^^^20260925150359||||||||||||||validated
PID|||||MACHIN^truc^^^^^L~MACHINE^truc^^^^^D||19990909|F|||^^t^^t^FR||^^^[email protected]||||||NC
AIS||||20260925150359

Updating Patient Identity and IPP

Once the facility has matched or created the patient, it must send an SIU S14 message to update the patient identity in Rofim and convey the patient's IPP.

DataValue
Supported formatHL7 2.5
Supported messages (incoming)SIU 14
Message typePOST
API linkbase_url/dsa/siu14

Important Data

DataFieldFormatRequiredComment
Unique identifier of the second opinion requestSCH.1.1 / SCH.2.1StringYesUnique Rofim ID of the second opinion request, as sent by Rofim in the same fields of the S12 message
Patient identifier (IPP)PID.3.1StringYesPatient IPP generated by the facility
|-- Assigning AuthorityPID.3.4StringRecommendedAssigning authority of the IPP
|-- ID TypePID.3.5StringRecommendedSet to PI
Stay identifier (IEP)PV1.19.1StringNoIEP or stay identifier generated by the facility
|-- Assigning AuthorityPV1.19.4StringRecommendedAssigning authority of the IEP
|-- ID TypePV1.19.5StringRecommendedSet to VN

Message Examples

MSH|^~\&|ROFIM|ROFIM||^310783048|20261009124333||SIU^S14^SIU_S14|1737777|P|2.5|||||FRA|UTF-8|FRA
SCH|6ab548c93e6eba83589e96d9|6ab548c93e6eba83589e96d9|||||^26-0006||||^^^20260925150359||||||||||||||validated
PID|||1234567^^^CURIE^PI||MACHIN^truc^^^^^L~MACHINE^truc^^^^^D||19990909|F|||^^t^^t^FR||^^^[email protected]||||||NC
PV1|||||||||||||||||||343434^^^CURIE^VN
AIS||||20260925150359

Retrieving Patient Documents

This flow allows retrieving the documents provided by the patient with the second opinion request. Each document is transmitted as a base64-encoded attachment in an HL7 MDM or ORU message.

DataValue
Supported formatHL7 2.5
Supported messages (outgoing)MDM or ORU
Message typeGET
API linkbase_url/dsa/cr

Important Data

DataFieldFormatRequiredComment
TODOTODOTODOTODOTODO

Message Examples

TODO
TODO

Did this page help you?