Stream: implementers
Topic: Extension
vivek nayak (Mar 07 2022 at 12:13):
I want to create a custom extension for the ChargeItem resource
vivek nayak (Mar 07 2022 at 12:14):
{
"resourceType": "StructureDefinition",
"id": "performing-location-extension",
"url": "http://ism.custom/fhir/StructureDefinition/performing-location-extension",
"version": "0.0.1",
"name": "PerformingLocation",
"title": "Performing Location",
"status": "draft",
"date": "2020-12-08T09:29:23+11:00",
"publisher": "ISM",
"fhirVersion": "4.0.1",
"kind": "complex-type",
"abstract": false,
"context": [
{
"type": "element",
"expression": "ChargeItem"
}
],
"type": "Extension",
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
"derivation": "constraint",
"snapshot": {
"element": [
{
"id": "Extension",
"path": "Extension",
"short": "Performing Location",
"definition": "Performing Location",
"min": 0,
"max": "1",
"base": {
"path": "Extension",
"min": 0,
"max": "*"
},
"isModifier": false
},
{
"id": "Extension.id",
"path": "Extension.id",
"representation": [
"xmlAttr"
],
"short": "Unique id for inter-element referencing",
"definition": "Unique id for the element within a resource.",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"isModifier": false,
"isSummary": false
},
{
"id": "Extension.extension",
"path": "Extension.extension",
"slicing": {
"discriminator": [
{
"type": "type",
"path": "url"
}
],
"description": "Extensions are always sliced by (at least) url",
"rules": "open"
},
"short": "Extension",
"definition": "An Extension",
"min": 0,
"max": "0",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"isModifier": false,
"isSummary": false
},
{
"id": "Extension.url",
"path": "Extension.url",
"representation": [
"xmlAttr"
],
"short": "identifies the meaning of the extension",
"definition": "Source of the definition for the extension code - a logical name or a URL.",
"min": 1,
"max": "1",
"base": {
"path": "Extension.url",
"min": 1,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "uri"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"fixedUri": "http://ism.custom/fhir/StructureDefinition/performing-location-extension",
"isModifier": false,
"isSummary": false
},
{
"id": "Extension.value[x]",
"path": "Extension.value[x]",
"short": "Value of extension",
"definition": "Value of extension.",
"min": 1,
"max": "1",
"base": {
"path": "Extension.value[x]",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Reference",
"targetProfile":["http://hl7.org/fhir/StructureDefinition/Location"]
}
],
"isModifier": false,
"isSummary": false
}
]
},
"differential": {
"element": [
{
"id": "Extension",
"path": "Extension",
"short": "Performing Location",
"definition": "Performing Location",
"min": 0,
"max": "1"
},
{
"id": "Extension.extension",
"path": "Extension.extension",
"max": "0"
},
{
"id": "Extension.url",
"path": "Extension.url",
"fixedUri": "http://ism.custom/fhir/StructureDefinition/performing-location-extension"
},
{
"id": "Extension.value[x]",
"path": "Extension.value[x]",
"min": 1,
"type": [
{
"code": "Reference",
"targetProfile":["http://hl7.org/fhir/StructureDefinition/Location"]
}
]
}
]
}
}
vivek nayak (Mar 07 2022 at 12:15):
{
"resourceType": "SearchParameter",
"id": "PerformingLocation",
"url": "http://ism.custom/fhir/SearchParameter/PerformingLocation",
"version": "0.0.1",
"name": "PerformingLocation",
"status": "active",
"date": "2020-12-18T05:21:55+00:00",
"publisher": "ISM",
"description": "Searches on the Performing Location-extention field of ChargeItem.",
"code": "PerformingLocation",
"base": [
"ChargeItem"
],
"type": "reference",
"expression": "ChargeItem.extension.where(url='http://ism.custom/fhir/StructureDefinition/performing-location-extension').valueReference",
"xpath": "f:ChargeItem/f:extension[@url='http://ism.custom/fhir/StructureDefinition/performing-location-extension']/f:valueReference/f:reference/@value",
"xpathUsage": "normal",
"comparator": [
"eq"
],
"target" : ["Location"]
}
vivek nayak (Mar 07 2022 at 12:15):
not able to serach using PerformingLocation search paramater
Lloyd McKenzie (Mar 07 2022 at 19:45):
Does the server you're using allow using custom search parameters? Did you follow the process for configuring the new search parameter?
Jayant Singh (Mar 14 2022 at 11:51):
Hello all
Anyone have any idea about how to access AWS HealthLake DB via APIs?
Richard Townley-O'Neill (Mar 15 2022 at 01:35):
Hi @Jayant Singh
This thread (Extension) is not a useful place for this question. Try posting to https://chat.fhir.org/#narrow/stream/179166-implementers/topic/AWS.20FHIR.20Works
Jayant Singh (Mar 15 2022 at 04:32):
(deleted)
Last updated: Apr 12 2022 at 19:14 UTC