Problem rendering/using ISM from Hungary
We are using the eHealth OpenNCP Portal (Mock) parallel to our national solution to do first tests with other countries.
When using the ISM from Hungary, the OpenNCP Portal does not display the ISM, just a blank form without fields and an inactive "Submit" button.
The developer tools of Firefox (122.0) show:
TypeError: this.pattern is undefined
regexp VueJS
run https://ncp1.ehealth.gv.at/ehealth-portal/_snowpack/pkg/common/runtime-core.esm-bundler-d897167a.js:222
get value https://ncp1.ehealth.gv.at/ehealth-portal/_snowpack/pkg/common/runtime-core.esm-bundler-d897167a.js:1128
get https://ncp1.ehealth.gv.at/ehealth-portal/_snowpack/pkg/common/runtime-core.esm-bundler-d897167a.js:4017
get https://ncp1.ehealth.gv.at/ehealth-portal/_snowpack/pkg/common/runtime-core.esm-bundler-d897167a.js:3852
render VueJS
renderComponentRoot https://ncp1.ehealth.gv.at/ehealth-portal/_snowpack/pkg/common/runtime-core.esm-bundler-d897167a.js:1858
componentUpdateFn ``https://ncp1.ehealth.gv.at/ehealth-portal/_snowpack/pkg/common/runtime-core.esm-bundler-d897167a.js:5709
etc.
Developer tools of Chrome (121.0.6167.161) similar:
TypeError: Cannot read properties of undefined (reading 'match') at Proxy.regexp (Input.vue.js:62:35) at ReactiveEffect.run (runtime-core.esm-bundler-d897167a.js:222:25) at get value (runtime-core.esm-bundler-d897167a.js:1128:39) at Object.get [as regexp] (runtime-core.esm-bundler-d897167a.js:4017:30) at Object.get (runtime-core.esm-bundler-d897167a.js:3852:27) at Proxy.render (Input.vue.js:108:21) at renderComponentRoot (runtime-core.esm-bundler-d897167a.js:1858:44) at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler-d897167a.js:5709:57)
It looks like line 62 of Input.vue.js is the problem (this.pattern is undefined)
let regParts = this.pattern.match(/^/(.
_?)/([gim]
_)$/);
The ISM is from the acceptance system, url: https://smp-test.publisher.ehealth.testa.eu/domain1/smp-1/ehealth-participantid-qns%3A%3Aurn%3Aehealth%3Ahu%3Ancp-idp/services/ehealth-resid-qns%3A%3Aurn%3Aehealth%3Aism%3A%3Ainternationalsearchmask%23%23ehealth-107
The XML is valid according to ehdsi-ism-2020.xsd
Other tested ISMs (SE, IE, CZ, HR, AT) work as expected. But they have only one id, HU has two ids:
<ism:identifier type="NORMAL"> <
ism:id
contextualDescription="nationalSocialSecurityNumber" domain="0.2.216.1.200.2100.10.2.1.1.1" format="\d{9}" label="label.ism.nationalSocialSecurityNumber" mandatory="true" originalContextualDescription="TAJ kártya szám"/>
<
ism:id
contextualDescription="nationalIdentityCardNumber" domain="0.2.216.1.200.2100.10.2.1.1.2" format="\d{6}[A-Z]{2}" label="label.ism.nationalIdentityCardNumber" mandatory="true" originalContextualDescription="Személyi igazolvány szám"/> </ism:identifier>
Thanks for any idea how to solve this, Chris