web api for Tracker Web API error.

Hi,all,

I have done a test on Tracker Web API. as documents:

body:

{

  "trackedEntity": "nEenWmSyUEp",
"orgUnit": "DiszpKrYNg8",
"attributes": [
{
"attribute": "w75KJ2mc4zz",
"value": "Joe"
},
{
"attribute": "zDhUuAYrxNC",
"value": "Smith"
}
]
}

url: https://play.dhis2.org/dev/api/29/trackedEntityInstances.json?ou=DiszpKrYNg8

method : post

got:

{

“httpStatus” : “Internal Server Error”,

“httpStatusCode” : 500,

“status” : “ERROR”,

“message” : “Unrecognized field "trackedEntity" (class org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance), not marked as ignorable (14 known properties: "trackedEntityInstance", "lastUpdatedAtClient", "lastUpdated", "createdAtClient", "trackedEntityType", "orgUnit", "inactive", "enrollments", "featureType", "attributes", "deleted", "relationships", "created", "coordinates"])\n at [Source: (String)"{\n "trackedEntity": "nEenWmSyUEp",\n "orgUnit": "DiszpKrYNg8",\n "attributes": [\n {\n "attribute": "w75KJ2mc4zz",\n "value": "Joe"\n },\n {\n "attribute": "zDhUuAYrxNC",\n "value": "Smith"\n }\n ]\n}"; line: 2, column: 21] (through reference chain: org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance["trackedEntity"])”

}{

“httpStatus” : “Internal Server Error”,

“httpStatusCode” : 500,

“status” : “ERROR”,

“message” : “Unrecognized field "trackedEntity" (class org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance), not marked as ignorable (14 known properties: "trackedEntityInstance", "lastUpdatedAtClient", "lastUpdated", "createdAtClient", "trackedEntityType", "orgUnit", "inactive", "enrollments", "featureType", "attributes", "deleted", "relationships", "created", "coordinates"])\n at [Source: (String)"{\n "trackedEntity": "nEenWmSyUEp",\n "orgUnit": "DiszpKrYNg8",\n "attributes": [\n {\n "attribute": "w75KJ2mc4zz",\n "value": "Joe"\n },\n {\n "attribute": "zDhUuAYrxNC",\n "value": "Smith"\n }\n ]\n}"; line: 2, column: 21] (through reference chain: org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance["trackedEntity"])”

}

what’s wrong with this?

Thanks.

···


此致

林晓东

莫愁前路无知己,天下谁人不识君。

In 2.29 , The “Tracked entity” object is renamed to “Tracked Entity Type” in the web API.
So, try using “trackedEntityType”

···

On Fri, May 25, 2018 at 2:13 PM, 林晓东 lin_xd@126.com wrote:

Hi,all,

I have done a test on Tracker Web API. as documents:

body:

{

  "trackedEntity": "nEenWmSyUEp", "orgUnit": "DiszpKrYNg8", "attributes": [ { "attribute": "w75KJ2mc4zz", "value": "Joe" }, { "attribute": "zDhUuAYrxNC", "value": "Smith" } ] }

url: https://play.dhis2.org/dev/api/29/trackedEntityInstances.json?ou=DiszpKrYNg8

method : post

got:

{

“httpStatus” : “Internal Server Error”,

“httpStatusCode” : 500,

“status” : “ERROR”,

“message” : “Unrecognized field "trackedEntity" (class org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance), not marked as ignorable (14 known properties: "trackedEntityInstance", "lastUpdatedAtClient", "lastUpdated", "createdAtClient", "trackedEntityType", "orgUnit", "inactive", "enrollments", "featureType", "attributes", "deleted", "relationships", "created", "coordinates"])\n at [Source: (String)"{\n "trackedEntity": "nEenWmSyUEp",\n "orgUnit": "DiszpKrYNg8",\n "attributes": [\n {\n "attribute": "w75KJ2mc4zz",\n "value": "Joe"\n },\n {\n "attribute": "zDhUuAYrxNC",\n "value": "Smith"\n }\n ]\n}"; line: 2, column: 21] (through reference chain: org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance["trackedEntity"])”

}{

“httpStatus” : “Internal Server Error”,

“httpStatusCode” : 500,

“status” : “ERROR”,

“message” : “Unrecognized field "trackedEntity" (class org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance), not marked as ignorable (14 known properties: "trackedEntityInstance", "lastUpdatedAtClient", "lastUpdated", "createdAtClient", "trackedEntityType", "orgUnit", "inactive", "enrollments", "featureType", "attributes", "deleted", "relationships", "created", "coordinates"])\n at [Source: (String)"{\n "trackedEntity": "nEenWmSyUEp",\n "orgUnit": "DiszpKrYNg8",\n "attributes": [\n {\n "attribute": "w75KJ2mc4zz",\n "value": "Joe"\n },\n {\n "attribute": "zDhUuAYrxNC",\n "value": "Smith"\n }\n ]\n}"; line: 2, column: 21] (through reference chain: org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance["trackedEntity"])”

}

what’s wrong with this?

Thanks.


此致

林晓东

莫愁前路无知己,天下谁人不识君。


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Kumar Gaurav Nath Shahdeo
Developer
Email
gauravns@thoughtworks.com
Telephone
+91 9160688935
ThoughtWorks

hi,all

I encounter a problem like this:

collecting info of a doctor, with one or more times of training experience, how to design this case?

Thanks.

···

On Fri, May 25, 2018 at 2:13 PM, 林晓东 lin_xd@126.com wrote:

Hi,all,

I have done a test on Tracker Web API. as documents:

body:

{

  "trackedEntity": "nEenWmSyUEp",
"orgUnit": "DiszpKrYNg8",
"attributes": [
{
"attribute": "w75KJ2mc4zz",
"value": "Joe"
},
{
"attribute": "zDhUuAYrxNC",
"value": "Smith"
}
]
}

url: https://play.dhis2.org/dev/api/29/trackedEntityInstances.json?ou=DiszpKrYNg8

method : post

got:

{

“httpStatus” : “Internal Server Error”,

“httpStatusCode” : 500,

“status” : “ERROR”,

“message” : “Unrecognized field "trackedEntity" (class org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance), not marked as ignorable (14 known properties: "trackedEntityInstance", "lastUpdatedAtClient", "lastUpdated", "createdAtClient", "trackedEntityType", "orgUnit", "inactive", "enrollments", "featureType", "attributes", "deleted", "relationships", "created", "coordinates"])\n at [Source: (String)"{\n "trackedEntity": "nEenWmSyUEp",\n "orgUnit": "DiszpKrYNg8",\n "attributes": [\n {\n "attribute": "w75KJ2mc4zz",\n "value": "Joe"\n },\n {\n "attribute": "zDhUuAYrxNC",\n "value": "Smith"\n }\n ]\n}"; line: 2, column: 21] (through reference chain: org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance["trackedEntity"])”

}{

“httpStatus” : “Internal Server Error”,

“httpStatusCode” : 500,

“status” : “ERROR”,

“message” : “Unrecognized field "trackedEntity" (class org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance), not marked as ignorable (14 known properties: "trackedEntityInstance", "lastUpdatedAtClient", "lastUpdated", "createdAtClient", "trackedEntityType", "orgUnit", "inactive", "enrollments", "featureType", "attributes", "deleted", "relationships", "created", "coordinates"])\n at [Source: (String)"{\n "trackedEntity": "nEenWmSyUEp",\n "orgUnit": "DiszpKrYNg8",\n "attributes": [\n {\n "attribute": "w75KJ2mc4zz",\n "value": "Joe"\n },\n {\n "attribute": "zDhUuAYrxNC",\n "value": "Smith"\n }\n ]\n}"; line: 2, column: 21] (through reference chain: org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance["trackedEntity"])”

}

what’s wrong with this?

Thanks.


此致

林晓东

莫愁前路无知己,天下谁人不识君。


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Kumar Gaurav Nath Shahdeo
Developer
Email
gauravns@thoughtworks.com
Telephone
+91 9160688935
ThoughtWorks

Hi 晓东,

I think you would have to model it is a number of events, either “naked events” or as a repeatable stage. But interested in hearing if people on the list can share good approaches to this common need (very typical in transactional systems).

Knut

···

On Fri, May 25, 2018 at 2:13 PM, 林晓东 lin_xd@126.com wrote:

Hi,all,

I have done a test on Tracker Web API. as documents:

body:

{

  "trackedEntity": "nEenWmSyUEp", "orgUnit": "DiszpKrYNg8", "attributes": [ { "attribute": "w75KJ2mc4zz", "value": "Joe" }, { "attribute": "zDhUuAYrxNC", "value": "Smith" } ] }

url: https://play.dhis2.org/dev/api/29/trackedEntityInstances.json?ou=DiszpKrYNg8

method : post

got:

{

“httpStatus” : “Internal Server Error”,

“httpStatusCode” : 500,

“status” : “ERROR”,

“message” : “Unrecognized field "trackedEntity" (class org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance), not marked as ignorable (14 known properties: "trackedEntityInstance", "lastUpdatedAtClient", "lastUpdated", "createdAtClient", "trackedEntityType", "orgUnit", "inactive", "enrollments", "featureType", "attributes", "deleted", "relationships", "created", "coordinates"])\n at [Source: (String)"{\n "trackedEntity": "nEenWmSyUEp",\n "orgUnit": "DiszpKrYNg8",\n "attributes": [\n {\n "attribute": "w75KJ2mc4zz",\n "value": "Joe"\n },\n {\n "attribute": "zDhUuAYrxNC",\n "value": "Smith"\n }\n ]\n}"; line: 2, column: 21] (through reference chain: org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance["trackedEntity"])”

}{

“httpStatus” : “Internal Server Error”,

“httpStatusCode” : 500,

“status” : “ERROR”,

“message” : “Unrecognized field "trackedEntity" (class org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance), not marked as ignorable (14 known properties: "trackedEntityInstance", "lastUpdatedAtClient", "lastUpdated", "createdAtClient", "trackedEntityType", "orgUnit", "inactive", "enrollments", "featureType", "attributes", "deleted", "relationships", "created", "coordinates"])\n at [Source: (String)"{\n "trackedEntity": "nEenWmSyUEp",\n "orgUnit": "DiszpKrYNg8",\n "attributes": [\n {\n "attribute": "w75KJ2mc4zz",\n "value": "Joe"\n },\n {\n "attribute": "zDhUuAYrxNC",\n "value": "Smith"\n }\n ]\n}"; line: 2, column: 21] (through reference chain: org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance["trackedEntity"])”

}

what’s wrong with this?

Thanks.


此致

林晓东

莫愁前路无知己,天下谁人不识君。


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Kumar Gaurav Nath Shahdeo
Developer
Email
gauravns@thoughtworks.com
Telephone
+91 9160688935
ThoughtWorks

Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar

Thanks a lot. naked event is not the exact match one. with dataelement like:

name,age,address,
experences:
(1)1996-01-01, apple Corp. engineerr.
(2)2000-01-01, ibm research lab. cto




林晓东

邮箱:lin_xd@126.com

签名由 网易邮箱大师 定制

···

On Fri, May 25, 2018 at 2:13 PM, 林晓东 lin_xd@126.com wrote:

Hi,all,

I have done a test on Tracker Web API. as documents:

body:

{

  "trackedEntity": "nEenWmSyUEp",
"orgUnit": "DiszpKrYNg8",
"attributes": [
{
"attribute": "w75KJ2mc4zz",
"value": "Joe"
},
{
"attribute": "zDhUuAYrxNC",
"value": "Smith"
}
]
}

url: https://play.dhis2.org/dev/api/29/trackedEntityInstances.json?ou=DiszpKrYNg8

method : post

got:

{

“httpStatus” : “Internal Server Error”,

“httpStatusCode” : 500,

“status” : “ERROR”,

“message” : “Unrecognized field "trackedEntity" (class org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance), not marked as ignorable (14 known properties: "trackedEntityInstance", "lastUpdatedAtClient", "lastUpdated", "createdAtClient", "trackedEntityType", "orgUnit", "inactive", "enrollments", "featureType", "attributes", "deleted", "relationships", "created", "coordinates"])\n at [Source: (String)"{\n "trackedEntity": "nEenWmSyUEp",\n "orgUnit": "DiszpKrYNg8",\n "attributes": [\n {\n "attribute": "w75KJ2mc4zz",\n "value": "Joe"\n },\n {\n "attribute": "zDhUuAYrxNC",\n "value": "Smith"\n }\n ]\n}"; line: 2, column: 21] (through reference chain: org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance["trackedEntity"])”

}{

“httpStatus” : “Internal Server Error”,

“httpStatusCode” : 500,

“status” : “ERROR”,

“message” : “Unrecognized field "trackedEntity" (class org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance), not marked as ignorable (14 known properties: "trackedEntityInstance", "lastUpdatedAtClient", "lastUpdated", "createdAtClient", "trackedEntityType", "orgUnit", "inactive", "enrollments", "featureType", "attributes", "deleted", "relationships", "created", "coordinates"])\n at [Source: (String)"{\n "trackedEntity": "nEenWmSyUEp",\n "orgUnit": "DiszpKrYNg8",\n "attributes": [\n {\n "attribute": "w75KJ2mc4zz",\n "value": "Joe"\n },\n {\n "attribute": "zDhUuAYrxNC",\n "value": "Smith"\n }\n ]\n}"; line: 2, column: 21] (through reference chain: org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance["trackedEntity"])”

}

what’s wrong with this?

Thanks.


此致

林晓东

莫愁前路无知己,天下谁人不识君。


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Kumar Gaurav Nath Shahdeo
Developer
Email
gauravns@thoughtworks.com
Telephone
+91 9160688935
ThoughtWorks

Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar

Hi Easy,

I think you need to use a repeatable stage in Tracker for this.

Regards,

Jason

···

On Thu, Jun 7, 2018 at 2:22 PM, 林晓东 lin_xd@126.com wrote:

Thanks a lot. naked event is not the exact match one. with dataelement like:

name,age,address,
experences:
(1)1996-01-01, apple Corp. engineerr.
(2)2000-01-01, ibm research lab. cto




林晓东

邮箱:lin_xd@126.com

签名由 网易邮箱大师 定制

On 06/05/2018 19:31, Knut Staring wrote:

Hi 晓东,

I think you would have to model it is a number of events, either “naked events” or as a repeatable stage. But interested in hearing if people on the list can share good approaches to this common need (very typical in transactional systems).

Knut

On Mon, Jun 4, 2018 at 4:01 PM 林晓东 lin_xd@126.com wrote:

hi,all

I encounter a problem like this:

collecting info of a doctor, with one or more times of training experience, how to design this case?

Thanks.


此致

林晓东

莫愁前路无知己,天下谁人不识君。

在 2018-05-25 16:58:07,“Kumar Shahdeo” gauravns@thoughtworks.com 写道:

In 2.29 , The “Tracked entity” object is renamed to “Tracked Entity Type” in the web API.
So, try using “trackedEntityType”


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

On Fri, May 25, 2018 at 2:13 PM, 林晓东 lin_xd@126.com wrote:

Hi,all,

I have done a test on Tracker Web API. as documents:

body:

{

  "trackedEntity": "nEenWmSyUEp", "orgUnit": "DiszpKrYNg8", "attributes": [ { "attribute": "w75KJ2mc4zz", "value": "Joe" }, { "attribute": "zDhUuAYrxNC", "value": "Smith" } ] }

url: https://play.dhis2.org/dev/api/29/trackedEntityInstances.json?ou=DiszpKrYNg8

method : post

got:

{

“httpStatus” : “Internal Server Error”,

“httpStatusCode” : 500,

“status” : “ERROR”,

“message” : “Unrecognized field "trackedEntity" (class org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance), not marked as ignorable (14 known properties: "trackedEntityInstance", "lastUpdatedAtClient", "lastUpdated", "createdAtClient", "trackedEntityType", "orgUnit", "inactive", "enrollments", "featureType", "attributes", "deleted", "relationships", "created", "coordinates"])\n at [Source: (String)"{\n "trackedEntity": "nEenWmSyUEp",\n "orgUnit": "DiszpKrYNg8",\n "attributes": [\n {\n "attribute": "w75KJ2mc4zz",\n "value": "Joe"\n },\n {\n "attribute": "zDhUuAYrxNC",\n "value": "Smith"\n }\n ]\n}"; line: 2, column: 21] (through reference chain: org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance["trackedEntity"])”

}{

“httpStatus” : “Internal Server Error”,

“httpStatusCode” : 500,

“status” : “ERROR”,

“message” : “Unrecognized field "trackedEntity" (class org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance), not marked as ignorable (14 known properties: "trackedEntityInstance", "lastUpdatedAtClient", "lastUpdated", "createdAtClient", "trackedEntityType", "orgUnit", "inactive", "enrollments", "featureType", "attributes", "deleted", "relationships", "created", "coordinates"])\n at [Source: (String)"{\n "trackedEntity": "nEenWmSyUEp",\n "orgUnit": "DiszpKrYNg8",\n "attributes": [\n {\n "attribute": "w75KJ2mc4zz",\n "value": "Joe"\n },\n {\n "attribute": "zDhUuAYrxNC",\n "value": "Smith"\n }\n ]\n}"; line: 2, column: 21] (through reference chain: org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance["trackedEntity"])”

}

what’s wrong with this?

Thanks.


此致

林晓东

莫愁前路无知己,天下谁人不识君。


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Kumar Gaurav Nath Shahdeo
Developer
Email
gauravns@thoughtworks.com
Telephone
+91 9160688935
ThoughtWorks

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

Hello,

It looks like you are trying to setup something like a Training database where you store both personal details of staff and their educational/work experience.

Just as Knut suggested, you’ll need to setup a Repeatable Tracker.

In your scenario, the Name, Age and Address will be the TEI Attributes.

You’ll create a Repeatable stage with the following elements:

(1) Year

(2) Organisation

NB: Make sure you define the Elements as tracker elements.

Regards

···

On Thu, Jun 7, 2018 at 1:22 PM, 林晓东 lin_xd@126.com wrote:

Thanks a lot. naked event is not the exact match one. with dataelement like:

name,age,address,
experences:
(1)1996-01-01, apple Corp. engineerr.
(2)2000-01-01, ibm research lab. cto




林晓东

邮箱:lin_xd@126.com

签名由 网易邮箱大师 定制

On 06/05/2018 19:31, Knut Staring wrote:

Hi 晓东,

I think you would have to model it is a number of events, either “naked events” or as a repeatable stage. But interested in hearing if people on the list can share good approaches to this common need (very typical in transactional systems).

Knut

On Mon, Jun 4, 2018 at 4:01 PM 林晓东 lin_xd@126.com wrote:

hi,all

I encounter a problem like this:

collecting info of a doctor, with one or more times of training experience, how to design this case?

Thanks.


此致

林晓东

莫愁前路无知己,天下谁人不识君。

在 2018-05-25 16:58:07,“Kumar Shahdeo” gauravns@thoughtworks.com 写道:

In 2.29 , The “Tracked entity” object is renamed to “Tracked Entity Type” in the web API.
So, try using “trackedEntityType”


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

On Fri, May 25, 2018 at 2:13 PM, 林晓东 lin_xd@126.com wrote:

Hi,all,

I have done a test on Tracker Web API. as documents:

body:

{

  "trackedEntity": "nEenWmSyUEp", "orgUnit": "DiszpKrYNg8", "attributes": [ { "attribute": "w75KJ2mc4zz", "value": "Joe" }, { "attribute": "zDhUuAYrxNC", "value": "Smith" } ] }

url: https://play.dhis2.org/dev/api/29/trackedEntityInstances.json?ou=DiszpKrYNg8

method : post

got:

{

“httpStatus” : “Internal Server Error”,

“httpStatusCode” : 500,

“status” : “ERROR”,

“message” : “Unrecognized field "trackedEntity" (class org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance), not marked as ignorable (14 known properties: "trackedEntityInstance", "lastUpdatedAtClient", "lastUpdated", "createdAtClient", "trackedEntityType", "orgUnit", "inactive", "enrollments", "featureType", "attributes", "deleted", "relationships", "created", "coordinates"])\n at [Source: (String)"{\n "trackedEntity": "nEenWmSyUEp",\n "orgUnit": "DiszpKrYNg8",\n "attributes": [\n {\n "attribute": "w75KJ2mc4zz",\n "value": "Joe"\n },\n {\n "attribute": "zDhUuAYrxNC",\n "value": "Smith"\n }\n ]\n}"; line: 2, column: 21] (through reference chain: org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance["trackedEntity"])”

}{

“httpStatus” : “Internal Server Error”,

“httpStatusCode” : 500,

“status” : “ERROR”,

“message” : “Unrecognized field "trackedEntity" (class org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance), not marked as ignorable (14 known properties: "trackedEntityInstance", "lastUpdatedAtClient", "lastUpdated", "createdAtClient", "trackedEntityType", "orgUnit", "inactive", "enrollments", "featureType", "attributes", "deleted", "relationships", "created", "coordinates"])\n at [Source: (String)"{\n "trackedEntity": "nEenWmSyUEp",\n "orgUnit": "DiszpKrYNg8",\n "attributes": [\n {\n "attribute": "w75KJ2mc4zz",\n "value": "Joe"\n },\n {\n "attribute": "zDhUuAYrxNC",\n "value": "Smith"\n }\n ]\n}"; line: 2, column: 21] (through reference chain: org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance["trackedEntity"])”

}

what’s wrong with this?

Thanks.


此致

林晓东

莫愁前路无知己,天下谁人不识君。


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Kumar Gaurav Nath Shahdeo
Developer
Email
gauravns@thoughtworks.com
Telephone
+91 9160688935
ThoughtWorks

Barnabas AKUMBA

Mobile: +2348036195778

Skype: barnabas.akumba

I got from event capture:

Not able to fetch sharing settings for category options

what’s mean? make all options to public edit/view, reconstruct the resource table… still popup .

Thanks.

···

On Thu, Jun 7, 2018 at 1:22 PM, 林晓东 lin_xd@126.com wrote:

Thanks a lot. naked event is not the exact match one. with dataelement like:

name,age,address,
experences:
(1)1996-01-01, apple Corp. engineerr.
(2)2000-01-01, ibm research lab. cto




林晓东

邮箱:lin_xd@126.com

签名由 网易邮箱大师 定制

On 06/05/2018 19:31, Knut Staring wrote:

Hi 晓东,

I think you would have to model it is a number of events, either “naked events” or as a repeatable stage. But interested in hearing if people on the list can share good approaches to this common need (very typical in transactional systems).

Knut

On Mon, Jun 4, 2018 at 4:01 PM 林晓东 lin_xd@126.com wrote:

hi,all

I encounter a problem like this:

collecting info of a doctor, with one or more times of training experience, how to design this case?

Thanks.


此致

林晓东

莫愁前路无知己,天下谁人不识君。

在 2018-05-25 16:58:07,“Kumar Shahdeo” gauravns@thoughtworks.com 写道:

In 2.29 , The “Tracked entity” object is renamed to “Tracked Entity Type” in the web API.
So, try using “trackedEntityType”


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

On Fri, May 25, 2018 at 2:13 PM, 林晓东 lin_xd@126.com wrote:

Hi,all,

I have done a test on Tracker Web API. as documents:

body:

{

  "trackedEntity": "nEenWmSyUEp",
"orgUnit": "DiszpKrYNg8",
"attributes": [
{
"attribute": "w75KJ2mc4zz",
"value": "Joe"
},
{
"attribute": "zDhUuAYrxNC",
"value": "Smith"
}
]
}

url: https://play.dhis2.org/dev/api/29/trackedEntityInstances.json?ou=DiszpKrYNg8

method : post

got:

{

“httpStatus” : “Internal Server Error”,

“httpStatusCode” : 500,

“status” : “ERROR”,

“message” : “Unrecognized field "trackedEntity" (class org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance), not marked as ignorable (14 known properties: "trackedEntityInstance", "lastUpdatedAtClient", "lastUpdated", "createdAtClient", "trackedEntityType", "orgUnit", "inactive", "enrollments", "featureType", "attributes", "deleted", "relationships", "created", "coordinates"])\n at [Source: (String)"{\n "trackedEntity": "nEenWmSyUEp",\n "orgUnit": "DiszpKrYNg8",\n "attributes": [\n {\n "attribute": "w75KJ2mc4zz",\n "value": "Joe"\n },\n {\n "attribute": "zDhUuAYrxNC",\n "value": "Smith"\n }\n ]\n}"; line: 2, column: 21] (through reference chain: org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance["trackedEntity"])”

}{

“httpStatus” : “Internal Server Error”,

“httpStatusCode” : 500,

“status” : “ERROR”,

“message” : “Unrecognized field "trackedEntity" (class org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance), not marked as ignorable (14 known properties: "trackedEntityInstance", "lastUpdatedAtClient", "lastUpdated", "createdAtClient", "trackedEntityType", "orgUnit", "inactive", "enrollments", "featureType", "attributes", "deleted", "relationships", "created", "coordinates"])\n at [Source: (String)"{\n "trackedEntity": "nEenWmSyUEp",\n "orgUnit": "DiszpKrYNg8",\n "attributes": [\n {\n "attribute": "w75KJ2mc4zz",\n "value": "Joe"\n },\n {\n "attribute": "zDhUuAYrxNC",\n "value": "Smith"\n }\n ]\n}"; line: 2, column: 21] (through reference chain: org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance["trackedEntity"])”

}

what’s wrong with this?

Thanks.


此致

林晓东

莫愁前路无知己,天下谁人不识君。


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Kumar Gaurav Nath Shahdeo
Developer
Email
gauravns@thoughtworks.com
Telephone
+91 9160688935
ThoughtWorks

Barnabas AKUMBA

Mobile: +2348036195778

Skype: barnabas.akumba