--- type: "fhir-fhirpath-function" title: "FHIR FHIRPath Function: %factory.Extension" source: "source/fhirpath.html" --- # FHIR FHIRPath Function: %factory.Extension This page is part of **FHIR FHIRPath** (FHIR-specific extensions). Base spec lives at [FHIRPath](/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](datatypes#open) for [extension.value\[x\]](extensibility) **Return Value:** An extension with the specified properties. * * * [Back to FHIR FHIRPath](/fhir-fhirpath)