i4mi / MobileAccessGateway

IPF HAPI-FHIR IHE ITI springboot example
Apache License 2.0
13 stars 9 forks source link

PDQm result does not contain identifiers specified in otherID's #49

Closed oliveregger closed 3 years ago

oliveregger commented 3 years ago

The PDQ V3 query returns three identifiers, however two (the ones in otherID) are not returned in the quey.

/run.sh /Users/oliveregger/Documents/github/k8s-fhir.ch/configurations/mag-pmp

the PDQm query

GET {{host}}/fhir/Patient?family=OVIE&given=Bergan HTTP/1.1 Accept: application/fhir+json

returns then entry

{
        "resourceType": "Patient",
        "id": "2.16.756.5.30.1.191.1.0.12.3.101-080607d8-c68b-4c74-812f-5159c38a1af2",
        "identifier": [
          {
            "system": "urn:oid:2.16.756.5.30.1.191.1.0.12.3.101",
            "value": "080607d8-c68b-4c74-812f-5159c38a1af2"
          }
        ],
        "active": true,
        "name": [
          {
            "family": "Ovie",
            "given": [
              "Bergan"
            ]
          }
        ],
        "telecom": [
          {
            "value": "OE_01@cara.ch",
            "use": "home"
          }
        ],
        "gender": "male",
        "birthDate": "1975-10-09"
      }

but the two otherID's are not added to the identifier list of the patient (2.16.756.5.30.1.191.1.0.2.1, 2.16.756.5.30.1.127.3.10.3)

            <ns1:subject typeCode="SUBJ" contextConductionInd="false">
                    <ns1:registrationEvent classCode="REG" moodCode="EVN">
                        <ns1:id xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:II" nullFlavor="NA"/>
                        <ns1:statusCode code="active"/>
                        <ns1:subject1 typeCode="SBJ">
                            <ns1:patient classCode="PAT">
                                <ns1:id xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:II" root="2.16.756.5.30.1.191.1.0.12.3.101" extension="080607d8-c68b-4c74-812f-5159c38a1af2"/>
                                <ns1:statusCode code="active"/>
                                <ns1:patientPerson classCode="PSN" determinerCode="INSTANCE">
                                    <ns1:name xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:PN">
                                        <ns1:given>Bergan</ns1:given>
                                        <ns1:family>Ovie</ns1:family>
                                    </ns1:name>
                                    <ns1:telecom xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:TEL" value="OE_01@cara.ch" use="HP"/>
                                    <ns1:administrativeGenderCode code="M"/>
                                    <ns1:birthTime xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:TS" value="19751009"/>
                                    <ns1:asCitizen classCode="CIT">
                                        <ns1:politicalNation classCode="NAT" determinerCode="INSTANCE">
                                            <ns1:code code="CH"/>
                                        </ns1:politicalNation>
                                    </ns1:asCitizen>
                                    <ns1:asOtherIDs classCode="PAT">
                                        <ns1:id xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:II" root="2.16.756.5.30.1.127.3.10.3" extension="761337610435209810" assigningAuthorityName="SPID"/>
                                        <ns1:statusCode code="active"/>
                                        <ns1:scopingOrganization classCode="ORG" determinerCode="INSTANCE">
                                            <ns1:id xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:II" root="2.16.756.5.30.1.127.3.10.3"/>
                                        </ns1:scopingOrganization>
                                    </ns1:asOtherIDs>
                                    <ns1:asOtherIDs classCode="PAT">
                                        <ns1:id xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:II" root="2.16.756.5.30.1.191.1.0.2.1" extension="713d79be-058e-4f55-82a8-e1f81f5e0047" assigningAuthorityName="XDS Affinity Domain"/>
                                        <ns1:statusCode code="active"/>
                                        <ns1:scopingOrganization classCode="ORG" determinerCode="INSTANCE">
                                            <ns1:id xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:II" root="2.16.756.5.30.1.191.1.0.2.1"/>
                                        </ns1:scopingOrganization>
                                    </ns1:asOtherIDs>
                                    <ns1:birthPlace>
                                        <ns1:addr xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:AD">
                                            <ns1:country>Suisse</ns1:country>
                                            <ns1:city>Luzern</ns1:city>
                                        </ns1:addr>
                                    </ns1:birthPlace>
                                </ns1:patientPerson>
                                <ns1:providerOrganization classCode="ORG" determinerCode="INSTANCE">
                                    <ns1:id xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:II" root="1.3.6.1.4.1.21367.13.20.2000"/>
                                    <ns1:contactParty classCode="CON"/>
                                </ns1:providerOrganization>
                                <ns1:subjectOf1>
                                    <ns1:queryMatchObservation classCode="COND" moodCode="EVN">
                                        <ns1:code xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:CD" code="IHE_PDQ"/>
                                        <ns1:value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:INT" value="100"/>
                                    </ns1:queryMatchObservation>
                                </ns1:subjectOf1>
                            </ns1:patient>
oliveregger commented 3 years ago

fixed with https://github.com/i4mi/MobileAccessGateway/commit/0abef0bca5112f3e4e3608517dc74ac1eda5abaa