In order to implement the national connector to connect the country local infrastructure with OpenNCP you have to follow the stps below:
Add the steps involved:
In this class you have access to the list of patient identifiers passed by epsos-client-connector to epsos-ws-server
You have to firstly get the patient data from your internal system and then just populate the PatientDemographics object e.g.
// Setting up the demographic data, you have to replace the new String with the data come from your system PatientDemographics demographics = new PatientDemographics(); demographics.setIdList(Arrays.asList(idList.get(0))); demographics.setFamilyName(new String()); demographics.setGivenName(new String()); demographics.setEmail(new String()); demographics.setStreetAddress(new String()); demographics.setPostalCode(new String()); demographics.setTelephone(new String()); demographics.setCity(new String()); demographics.setCountry(new String()); // Adding data into demographics list patientDemographicslist.add(demographics); |
In this class you have access to the patient id string which is like this: 1167^^^&1.12.15.18.9.4.1.895&ISO. The XCPD response contains this unique identifier for the patient with which you can proceed to the next queries (XCA List and XCA Retrieve). The flow here is the following:
In this class you handle all the submissions made by the others country NCP-B. You have access the EPSOSDocument object from which you can extract the appropriate data and proceed with the local business logic
Integration of Protocol Terminators with National Connector
|