{"action":"closed","issue":{"url":"https://api.github.com/repos/hl7-fhir/fhir-svn/issues/4","labels_url":"https://api.github.com/repos/hl7-fhir/fhir-svn/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/hl7-fhir/fhir-svn/issues/4/comments","events_url":"https://api.github.com/repos/hl7-fhir/fhir-svn/issues/4/events","html_url":"https://github.com/hl7-fhir/fhir-svn/issues/4","id":58336829,"number":4,"title":"Issue with serializing date","user":{"login":"mkdskd","id":5915340,"avatar_url":"https://avatars.githubusercontent.com/u/5915340?v=3","gravatar_id":"","url":"https://api.github.com/users/mkdskd","html_url":"https://github.com/mkdskd","followers_url":"https://api.github.com/users/mkdskd/followers","following_url":"https://api.github.com/users/mkdskd/following{/other_user}","gists_url":"https://api.github.com/users/mkdskd/gists{/gist_id}","starred_url":"https://api.github.com/users/mkdskd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkdskd/subscriptions","organizations_url":"https://api.github.com/users/mkdskd/orgs","repos_url":"https://api.github.com/users/mkdskd/repos","events_url":"https://api.github.com/users/mkdskd/events{/privacy}","received_events_url":"https://api.github.com/users/mkdskd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-20T10:59:27Z","updated_at":"2015-02-20T17:40:54Z","closed_at":"2015-02-20T17:40:54Z","body":"In DSTU2 while serialising **condition** resource it's giving value of **dateAsserted** having time component in it. Which is not supported by library anymore.\r\n\r\nWe try to set *dateAsserted* for *condition* using following method defined in **Condition.java**.\r\n\r\n![set_condition](https://cloud.githubusercontent.com/assets/5915340/6284810/a900a178-b91a-11e4-8f23-cb373f0bb25a.png)\r\n\r\n\r\nIt's creating a *new DateType()* which internally does this\r\n\r\n![basic_date_time_type](https://cloud.githubusercontent.com/assets/5915340/6284856/13e9085e-b91b-11e4-82f4-7d43b9e13f8b.png)\r\n\r\nIf we see in Line number 91\r\n\r\n    private TemporalPrecisionEnum myPrecision = TemporalPrecisionEnum.SECOND;\r\n\r\nthe **precision** is being set to *SECOND*, which is causing the **date** value having time component.\r\n\r\n###### The Precision must be *DAY*. \r\n\r\n\r\n"}}