PREFIX fhir: PREFIX fhirvs: PREFIX xsd: BASE start=@ AND {fhir:nodeRole [fhir:treeRoot]} # Definition of an operation or a named query CLOSED { a [fhir:OperationDefinition]; fhir:nodeRole [fhir:treeRoot]?; fhir:Resource.id id?; # Logical id of this artifact fhir:Resource.meta @?; # Metadata about the resource fhir:Resource.implicitRules @?; # A set of rules under which this # content was created fhir:Resource.language @?; # Language of the resource content fhir:DomainResource.text @?; # Text summary of the resource, for # human interpretation fhir:DomainResource.contained @*; # Contained, inline Resources fhir:DomainResource.extension @*; # Additional content defined by # implementations fhir:DomainResource.modifierExtension @*; # Extensions that cannot be ignored fhir:OperationDefinition.url @?; # Canonical identifier for this # operation definition, represented # as a URI (globally unique) fhir:OperationDefinition.version @?; # Business version of the operation # definition fhir:OperationDefinition.name @; # Name for this operation definition # (computer friendly) fhir:OperationDefinition.title @?; # Name for this operation definition # (human friendly) fhir:OperationDefinition.status @ AND {fhir:value @fhirvs:publication-status}; # draft | active | retired | unknown fhir:OperationDefinition.kind @ AND {fhir:value @fhirvs:operation-kind}; # operation | query fhir:OperationDefinition.experimental @?; # For testing purposes, not real # usage fhir:OperationDefinition.date @?; # Date last changed fhir:OperationDefinition.publisher @?; # Name of the publisher # (organization or individual) fhir:OperationDefinition.contact @*; # Contact details for the publisher fhir:OperationDefinition.description @?; # Natural language description of # the operation definition fhir:OperationDefinition.useContext @*; # The context that the content is # intended to support fhir:OperationDefinition.jurisdiction @*; # Intended jurisdiction for # operation definition (if # applicable) fhir:OperationDefinition.purpose @?; # Why this operation definition is # defined fhir:OperationDefinition.affectsState @?; # Whether content is changed by the # operation fhir:OperationDefinition.code @; # Name used to invoke the operation fhir:OperationDefinition.comment @?; # Additional information about use fhir:OperationDefinition.base @?; # Marks this as a profile of the base fhir:OperationDefinition.resource @ AND {fhir:value @fhirvs:resource-types}*; # Types this operation applies to fhir:OperationDefinition.system @; # Invoke at the system level? fhir:OperationDefinition.type @; # Invoke at the type level? fhir:OperationDefinition.instance @; # Invoke on an instance? fhir:OperationDefinition.inputProfile @?; # Validation information for in # parameters fhir:OperationDefinition.outputProfile @?; # Validation information for out # parameters fhir:OperationDefinition.parameter @*; # Parameters for the operation/query fhir:OperationDefinition.overload @*; # Define overloaded variants for # when generating code fhir:index xsd:integer? # Relative position in a list } # Parameters for the operation/query CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized fhir:OperationDefinition.parameter.name @; # Name in Parameters.parameter.name # or in URL fhir:OperationDefinition.parameter.use @ AND {fhir:value @fhirvs:operation-parameter-use}; # in | out fhir:OperationDefinition.parameter.min @; # Minimum Cardinality fhir:OperationDefinition.parameter.max @; # Maximum Cardinality (a number or *) fhir:OperationDefinition.parameter.documentation @?; # Description of meaning/use fhir:OperationDefinition.parameter.type @ AND {fhir:value @fhirvs:all-types}?; # What type this parameter has fhir:OperationDefinition.parameter.targetProfile @*; # If type is Reference | canonical, # allowed targets fhir:OperationDefinition.parameter.searchType @ AND {fhir:value @fhirvs:search-param-type}?; # number | date | string | token | # reference | composite | quantity | # uri | special fhir:OperationDefinition.parameter.binding @?; # ValueSet details if this is coded fhir:OperationDefinition.parameter.referencedFrom @*; # References to this parameter fhir:OperationDefinition.parameter.part @*; # Parts of a nested Parameter fhir:index xsd:integer? # Relative position in a list } # Define overloaded variants for when generating code CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized fhir:OperationDefinition.overload.parameterName @*; # Name of parameter to include in # overload fhir:OperationDefinition.overload.comment @?; # Comments to go on overload fhir:index xsd:integer? # Relative position in a list } # References to this parameter CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized fhir:OperationDefinition.parameter.referencedFrom.source @; # Referencing parameter fhir:OperationDefinition.parameter.referencedFrom.sourceId @?; # Element id of reference fhir:index xsd:integer? # Relative position in a list } # ValueSet details if this is coded CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized fhir:OperationDefinition.parameter.binding.strength @ AND {fhir:value @fhirvs:binding-strength}; # required | extensible | preferred # | example fhir:OperationDefinition.parameter.binding.valueSet @; # Source of value set fhir:index xsd:integer? # Relative position in a list } # Parts of a nested Parameter CLOSED { fhir:index xsd:integer? # Relative position in a list } #---------------------- Data Types ------------------- # Primitive Type dateTime CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value dateTime?; # Primitive value for dateTime fhir:index xsd:integer? # Relative position in a list } # Metadata about a resource CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Meta.versionId @?; # Version specific identifier fhir:Meta.lastUpdated @?; # When the resource version last # changed fhir:Meta.source @?; # Identifies where the resource # comes from fhir:Meta.profile @*; # Profiles this resource claims to # conform to fhir:Meta.security @*; # Security Labels applied to this # resource fhir:Meta.tag @*; # Tags applied to this resource fhir:index xsd:integer? # Relative position in a list } # Primitive Type code CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value code?; # Primitive value for code fhir:index xsd:integer? # Relative position in a list } # Primitive Type string CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value string MAXLENGTH 1048576?; # Primitive value for string fhir:index xsd:integer? # Relative position in a list } # Base Resource {a .+; fhir:Resource.id id?; # Logical id of this artifact fhir:Resource.meta @?; # Metadata about the resource fhir:Resource.implicitRules @?; # A set of rules under which this # content was created fhir:Resource.language @?; # Language of the resource content fhir:index xsd:integer? } # Primitive Type canonical CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value canonical?; # Primitive value for canonical fhir:index xsd:integer? # Relative position in a list } # Primitive Type integer CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value integer MININCLUSIVE -2147483648 MAXINCLUSIVE 2147483647?; # Primitive value for integer fhir:index xsd:integer? # Relative position in a list } # Primitive Type uri CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value uri?; # Primitive value for uri fhir:index xsd:integer? # Relative position in a list } # Optional Extensions Element CLOSED { fhir:Element.id id?; fhir:Element.extension @*; fhir:Extension.url uri; ( fhir:Extension.valueBase64Binary @ | fhir:Extension.valueBoolean @ | fhir:Extension.valueCanonical @ | fhir:Extension.valueCode @ | fhir:Extension.valueDate @ | fhir:Extension.valueDateTime @ | fhir:Extension.valueDecimal @ | fhir:Extension.valueId @ | fhir:Extension.valueInstant @ | fhir:Extension.valueInteger @ | fhir:Extension.valueMarkdown @ | fhir:Extension.valueOid @ | fhir:Extension.valuePositiveInt @ | fhir:Extension.valueString @ | fhir:Extension.valueTime @