Re: Retrieving healthcare facility ID details using aql

2019-05-17 Thread Dileep V S
Thanks Ian,

I could get the path from RAW json
(c/context/health_care_facility/external_ref/id/value as orgId). This works
for composer but not for health_care_facility and give error in Ethercis.
Looks like and Ethercis bug. So I will raise a ticket there.

regards
Dileep V S
*Founder*
HealtheLife Ventures LLP
m: +91 9632888113
a: 106, Innovation Centre, IIIT, Electronics City, Bangalore 560100
w: ehr.network, ayushehr.com
 e: dil...@healthelife.in


On Fri, May 17, 2019 at 12:48 PM Ian McNicoll  wrote:

> Hi Dileep
>
> GERT /composition format=RAW
>
> 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 Fri, 17 May 2019 at 06:06, Dileep V S  wrote:
>
>> 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: ehr.network, ayushehr.com
>>  e: dil...@healthelife.in
>>
>>
>> On Thu, May 16, 2019 at 8:14 PM Ian McNicoll  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 
>>> wrote:
>>>
 Hi Dileep,

 Here the UML site is your friend. This is the part of the model
 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
 
 .

 - 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: ehr.network, 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 
 Consultant, ABD Project, Intermountain Healthcare
 

Re: Retrieving healthcare facility ID details using aql

2019-05-17 Thread Ian McNicoll
Hi Dileep

GERT /composition format=RAW

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 Fri, 17 May 2019 at 06:06, Dileep V S  wrote:

> 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: ehr.network, ayushehr.com
>  e: dil...@healthelife.in
>
>
> On Thu, May 16, 2019 at 8:14 PM Ian McNicoll  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 
>> wrote:
>>
>>> Hi Dileep,
>>>
>>> Here the UML site is your friend. This is the part of the model
>>> 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
>>> 
>>> .
>>>
>>> - 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: ehr.network, 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 
>>> Consultant, ABD Project, Intermountain Healthcare
>>> 
>>> Management Board, Specifications Program Lead, openEHR Foundation
>>> 
>>> Health IT blog  | Culture blog
>>>  | The Objective Stance
>>> 
>>> ___
>>> 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
>>
>