FHIR Chat · Operation Parameters - References as Identifiers · implementers

Stream: implementers

Topic: Operation Parameters - References as Identifiers


view this post on Zulip Silvia Lillie (Jul 19 2019 at 13:57):

I have an operation with a parameter defined as of type "Reference":

<parameter>
      <name value="restrictedService"/>
      <use value="in"/>
      <min value="0"/>
      <max value="1"/>
      <documentation value="[...]."/>
      <type value="Reference"/>

We need to implement the Reference using the Identifier option, but we are not sure what the implementation should look like. Is the following OK (although this does not mention "reference" at all and looks like it's been profiled as an Identifier),

    {
      "name": "restrictedService",
      "valueIdentifier": {
        "system": "http://fhir.nhs.net/Id/ers-service",
        "value": "70002"
      }
    }

or should it be something like this...

    {
      "name": "restrictedService",
      "valueReference": {
        "system": "http://fhir.nhs.net/Id/ers-service",
        "value": "70002"
      }
    }

or something else completely?

Thank you

view this post on Zulip Lloyd McKenzie (Jul 19 2019 at 14:12):

{
  "name": "restrictedService",
  "valueReference": {
    "identifier": {
      "system": "http://fhir.nhs.net/Id/ers-service",
      "value": "70002"
    }
  }
}

view this post on Zulip Silvia Lillie (Aug 16 2019 at 07:07):

Thank you - would the same structure also be needed in the following two cases?

Case 1
I have a List, where the Item contains a Reference to a resource, and this reference is expressed using an identifier, should it be

      "item": {
        "identifier": {
          "system": "http://fhir.nhs.net/Id/ers-service",
          "value": "70103"
        }
      }

or ...?

      "item": {
        "reference": {
          "identifier": {
            "system": "http://fhir.nhs.net/Id/ers-service",
            "value": "70103"
          }
        }
      }

Case 2
And similarly, if we have an Appointment resource with an actor which is a Reference to a Practitioner, and if I want to express this via an identifier, should I use

"actor": {
              "identifier":
              {
                "system": "http://fhir.nhs.net/Id/sds-user-id",
                "value": "021600556514"
              }
          }

or...?

 "actor": {
            "reference":
              {
                "identifier":
                {
                  "system": "http://fhir.nhs.net/Id/sds-user-id",
                  "value": "021600556514"
                }
              }
          }

or yet something different?

Sorry if these questions are so basic, and thank you again for your help.

view this post on Zulip Michele Mottini (Aug 16 2019 at 17:38):

In both cases the first


Last updated: Apr 12 2022 at 19:14 UTC