FHIR Chat · Modifier Extensions · implementers

Stream: implementers

Topic: Modifier Extensions


view this post on Zulip Patricia Alves (Apr 29 2016 at 09:40):

Hi, is it possible to add a modifier extension to a "date" element? Thank you

view this post on Zulip Grahame Grieve (Apr 29 2016 at 09:41):

no. it's not possible. What's your use case?

view this post on Zulip Patricia Alves (Apr 29 2016 at 09:53):

In the case of Immunization.wasNotGiven = true, in the Immunization.date I set the date when the non-immunization was registered, but I also need to set a period (with begin and if aplicable, end) for the non-immunization event, since the non-immunization has a start and may have an end

view this post on Zulip Grahame Grieve (Apr 29 2016 at 09:55):

it doesn't sound like a modifier to me. if you didn't understand the extension, it wouldn't change the fact that the immunization record is an assertion of was-not-given made on a given date

view this post on Zulip Grahame Grieve (Apr 29 2016 at 09:55):

further, it's an extension on the statement, not on the date of the statement

view this post on Zulip Grahame Grieve (Apr 29 2016 at 09:55):

that's what I think anyway

view this post on Zulip Patricia Alves (Apr 29 2016 at 09:55):

So, I created a modifierExtension for that, and I thought it could be inserted in the date element. Here is the extension:
"modifierExtension" : [
{
"url" : "Vacinas/NoVaccinationBeginDate",
"valueDate" : "2016-02-19"
},
{
"url" : "Vacinas/NoVaccinationEndDate",
"valueDate" : "2016-03-20"
}
],

view this post on Zulip Patricia Alves (Apr 29 2016 at 09:57):

So you are saying it should be an Extension instead of a modifier? and that I should place it at the base of the Immunization resource?

view this post on Zulip Grahame Grieve (Apr 29 2016 at 09:57):

yes to both.

view this post on Zulip Patricia Alves (Apr 29 2016 at 09:57):

thanks a lot :)

view this post on Zulip Grahame Grieve (Apr 29 2016 at 09:58):

no problems. btw, the extension URLs both need to be absolute URLs that point to the extension definitions.

view this post on Zulip Grahame Grieve (Apr 29 2016 at 09:58):

and you could also use a period:

view this post on Zulip Patricia Alves (Apr 29 2016 at 10:00):

ah ok, the specification says the url is of type uri, so I thought this "Vacinas/NoVaccinationBeginDate" would be valid

view this post on Zulip Grahame Grieve (Apr 29 2016 at 10:00):

"extension" : [  {
  "url" : "http://patricias.server/extensions/NoVaccination",  
  "valuePeriod" :  { 
    "begin " :  "2016-02-19",
   "end" : "2016-03-20"
  }
}],

view this post on Zulip Patricia Alves (Apr 29 2016 at 10:01):

yeah that's better, i'll use the period :) thx

view this post on Zulip Grahame Grieve (Apr 29 2016 at 10:01):

yes, but it also says: The url is a mandatory attribute / property and identifies a retrievable extension definition that defines the content and meaning of the extension

view this post on Zulip Grahame Grieve (Apr 29 2016 at 10:02):

we could probably be clearer there - it needs to be retrievable, so that a system can fetch the definition of the extension, and use the data (e.g. know how to present it to a user)

view this post on Zulip Patricia Alves (Apr 29 2016 at 10:03):

yes, maybe it should be clearer, but ill follow your recommendation, thank you

view this post on Zulip Grahame Grieve (Apr 29 2016 at 10:03):

no problems

view this post on Zulip Lloyd McKenzie (Apr 30 2016 at 01:02):

Grahame - are you going to raise a change proposal for this or shall I? (clarifying that full URL resolvable to StructureDefinition is expected)

view this post on Zulip Grahame Grieve (Apr 30 2016 at 01:11):

you can !

view this post on Zulip Lloyd McKenzie (Apr 30 2016 at 01:20):

I sort of expected that . . . :)

view this post on Zulip Grahame Grieve (Apr 30 2016 at 01:20):

you still asked though. awesome!

view this post on Zulip David Hay (May 01 2016 at 01:38):

comment deleted...


Last updated: Apr 12 2022 at 19:14 UTC