type: fhir-fhirpath-functionsource: source/fhirpath.html
FHIR FHIRPath Function: %factory.Extension
This page is part of FHIR FHIRPath (FHIR-specific extensions). Base spec lives at FHIRPath.
%factory.Extension(url, value) : Extension
Creates an extension with the given url and value: %factory.extension('http://hl7.org/fhir/StructureDefinition/artifact-copyrightLabel', 'CC0-1.0').
Parameters:
- url: a string value that identifies the extension
- value: the value of the extension (any valid type for extension.value[x]
Return Value: An extension with the specified properties.