We've connected ODK-Voice to OpenMRS where once a phone encounter is
finished the xform is passed into OpenMRS. However, in the last few weeks
I've begun getting an error when ODK-Voice tries to pass the xForm in. The
error is
ERROR - XformsQueueProcessor.processXForm(210) |2011-04-28 15:11:13,123|
Invalid dateTime value. Too short ValidationException: Invalid dateTime
value. Too short
When I look at the xform being pushed, I see that the encounter_datetime
only has a date and no time
<encounter.encounter_datetime openmrs_table="encounter"
openmrs_attribute="encounter_datetime">2011-04-26</encounter.encounter_datetime>
and I've modified the xforms module in OpenMRS to receive date and time, not
just date. So I think that's the cause. I've tried using both now() and
current-dateTime in the XForm being used in ODK-Voice in this format
<encounter.encounter_datetime openmrs_table="encounter"
openmrs_attribute="encounter_datetime">'current-dateTime()'</encounter.encounter_datetime>
but I always get just a date back. The XForms module from what I can tell
needs an input of yyyy-MM-dd'T'HH:mm:ssZ
Thanks,
Joaquin
···
--
___________________________________________________________________
Gerente de Desarrollo, eHealth Systems
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org
joaquín,
not sure if this will help, but in your bind for the
encounter_datetime, try using "dateTime" instead of "date".
yaw
···
On Thu, Apr 28, 2011 at 12:22, Joaquín Blaya wrote:
> We've connected ODK-Voice to OpenMRS where once a phone encounter is
> finished the xform is passed into OpenMRS. However, in the last few weeks
> I've begun getting an error when ODK-Voice tries to pass the xForm in. The
> error is
> ERROR - XformsQueueProcessor.processXForm(210) |2011-04-28 15:11:13,123|
> Invalid dateTime value. Too short ValidationException: Invalid dateTime
> value. Too short
> When I look at the xform being pushed, I see that the encounter_datetime
> only has a date and no time
> openmrs_attribute="encounter_datetime">2011-04-26
> and I've modified the xforms module in OpenMRS to receive date and time, not
> just date. So I think that's the cause. I've tried using both now() and
> current-dateTime in the XForm being used in ODK-Voice in this format
> openmrs_attribute="encounter_datetime">'current-dateTime()'
> but I always get just a date back. The XForms module from what I can tell
> needs an input of yyyy-MM-dd'T'HH:mm:ssZ
> Thanks,
> Joaquin
> --
> ___________________________________________________________________
> Gerente de Desarrollo, eHealth Systems
> Research Fellow, Escuela de Medicina de Harvard
> Moderador, GHDOnline.org
>
> --
> Post: opendatakit@googlegroups.com
> Unsubscribe: opendatakit+unsubscribe@googlegroups.com
> Options: http://groups.google.com/group/opendatakit?hl=en
>
Thanks Yaw, unfortunately that didn't change anything, it still only outputs
a date without time. I also tried changing the code on the servlet that
we're using to send the data in order for it to write a date and time, but
ODK-Voice overwrites it. I'm going to email Adam now, but I'd appreaciate
any other suggestions.
Joaquin
···
On Fri, Apr 29, 2011 at 11:44 AM, Yaw Anokwa wrote:
joaquín,
not sure if this will help, but in your bind for the
encounter_datetime, try using "dateTime" instead of "date".
yaw
On Thu, Apr 28, 2011 at 12:22, Joaquín Blaya jblaya@ehealthsystems.cl wrote:
We've connected ODK-Voice to OpenMRS where once a phone encounter is
finished the xform is passed into OpenMRS. However, in the last few
weeks
I've begun getting an error when ODK-Voice tries to pass the xForm in.
The
error is
ERROR - XformsQueueProcessor.processXForm(210) |2011-04-28 15:11:13,123|
Invalid dateTime value. Too short ValidationException: Invalid dateTime
value. Too short
When I look at the xform being pushed, I see that the encounter_datetime
only has a date and no time
<encounter.encounter_datetime openmrs_table="encounter"
openmrs_attribute="encounter_datetime">2011-04-26</encounter.encounter_datetime>
and I've modified the xforms module in OpenMRS to receive date and time,
not
just date. So I think that's the cause. I've tried using both now() and
current-dateTime in the XForm being used in ODK-Voice in this format
<encounter.encounter_datetime openmrs_table="encounter"
openmrs_attribute="encounter_datetime">'current-dateTime()'</encounter.encounter_datetime>
but I always get just a date back. The XForms module from what I can tell
needs an input of yyyy-MM-dd'T'HH:mm:ssZ
Thanks,
Joaquin
Gerente de Desarrollo, eHealth Systems
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org
--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en
--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en
--
Gerente de Desarrollo, eHealth Systems
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org