Iam testing with Ethercis Thomas's pointers were very useful. However I tried all the following options and still getting error
c/context/health_care_facility/identifiers/id/value as orgID c/context/health_care_facility/identifiers/id as orgID c/context/health_care_facility/identifiers/value as orgID I will try Ian's suggestion of getting the RAW JSON of the composition to try and figure out, but am not sure how to get the JSON file. Is there an API for this in Ethercis? regards Dileep V S *Founder* HealtheLife Ventures LLP m: +91 9632888113 a: 106, Innovation Centre, IIIT, Electronics City, Bangalore 560100 w: <http://ayushehr.com>ehr.network, <http://ehr.network>ayushehr.com <http://ayushehr.com> e: dil...@healthelife.in On Thu, May 16, 2019 at 8:14 PM Ian McNicoll <i...@freshehr.com> wrote: > I was about to say the same thing. The other helpful approach is just to > return the whole composition as a RAW JSON or XML file and see how the > paths work out - they will normally be very close tothintended AQL. > > Thomas's suggestion may be correct for Ethercis but I think that Think!Ehr > actually maps that FLAT JSON construct to the external_ref in > PARRTY_IDENTIFED rather then the identifiers attribute that is a PARTY_REF > class which has an id attribute which has a value attribute which is a > String > > > c/context/health_care_facility/external_ref/id/value as facilityId should > work on ThinkEhr > > Ian > > Dr Ian McNicoll > mobile +44 (0)775 209 7859 > office +44 (0)1536 414994 > skype: ianmcnicoll > email: i...@freshehr.com > twitter: @ianmcnicoll > > > Co-Chair, openEHR Foundation ian.mcnic...@openehr.org > Director, freshEHR Clinical Informatics Ltd. > Director, HANDIHealth CIC > Hon. Senior Research Associate, CHIME, UCL > > > On Thu, 16 May 2019 at 13:07, Thomas Beale <thomas.be...@openehr.org> > wrote: > >> Hi Dileep, >> >> Here the UML site is your friend. This is the part of the model >> <https://specifications.openehr.org/releases/UML/latest/#Diagrams___18_1_83e026d_1433773264253_175551_6601>you >> are referring to. >> >> Click through PARTY_IDENTIFIED and you will see that the relevant >> property is 'identifiers', not 'identifier'. >> >> Alternatively, see here in the RM Common IM spec >> <https://specifications.openehr.org/releases/RM/latest/common.html#_party_identified_class> >> . >> >> - thomas >> On 16/05/2019 13:00, Dileep V S wrote: >> >> Hi, >> I am committing the heatcare facility id context details n my >> compositions as below >> >> "clinical_notes/context/health_care_facility|id": "123456-123", >> >> "clinical_notes/context/health_care_facility|id_scheme": "UUID", >> >> "clinical_notes/context/health_care_facility|id_namespace": "EHR.NETWORK >> ", >> >> "clinical_notes/context/health_care_facility|name": "HealtheLife", >> >> Trying to retrieve this in aql using >> >> c/context/health_care_facility/id/value as orgID >> andc/context/health_care_facility/identifier/value as orgID >> >> both returns error "Could not interpret >> field:context/health_care_facility/identifier/value" >> >> What is the aql syntax to retrieve healthcare facility ID >> >> regards >> >> Dileep V S >> *Founder* >> HealtheLife Ventures LLP >> m: +91 9632888113 >> a: 106, Innovation Centre, IIIT, Electronics City, Bangalore 560100 >> w: <http://ayushehr.com>ehr.network, <http://ehr.network>ayushehr.com >> <http://ayushehr.com> e: dil...@healthelife.in >> >> _______________________________________________ >> openEHR-technical mailing >> listopenEHR-technical@lists.openehr.orghttp://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org >> >> -- >> Thomas Beale >> Principal, Ars Semantica <http://www.arssemantica.com> >> Consultant, ABD Project, Intermountain Healthcare >> <https://intermountainhealthcare.org/> >> Management Board, Specifications Program Lead, openEHR Foundation >> <http://www.openehr.org> >> Health IT blog <http://wolandscat.net/> | Culture blog >> <http://wolandsothercat.net/> | The Objective Stance >> <https://theobjectivestance.net/> >> _______________________________________________ >> openEHR-technical mailing list >> openEHR-technical@lists.openehr.org >> >> http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org >> > _______________________________________________ > openEHR-technical mailing list > openEHR-technical@lists.openehr.org > > http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org >
_______________________________________________ openEHR-technical mailing list openEHR-technical@lists.openehr.org http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org