PREFIX fhir: PREFIX fhirvs: PREFIX xsd: BASE start=@ AND {fhir:nodeRole [fhir:treeRoot]} # A set of rules about how FHIR is used CLOSED { a [fhir:ImplementationGuide]; 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:ImplementationGuide.url @; # Canonical identifier for this # implementation guide, represented # as a URI (globally unique) fhir:ImplementationGuide.version @?; # Business version of the # implementation guide fhir:ImplementationGuide.name @; # Name for this implementation guide # (computer friendly) fhir:ImplementationGuide.title @?; # Name for this implementation guide # (human friendly) fhir:ImplementationGuide.status @ AND {fhir:value @fhirvs:publication-status}; # draft | active | retired | unknown fhir:ImplementationGuide.experimental @?; # For testing purposes, not real # usage fhir:ImplementationGuide.date @?; # Date last changed fhir:ImplementationGuide.publisher @?; # Name of the publisher # (organization or individual) fhir:ImplementationGuide.contact @*; # Contact details for the publisher fhir:ImplementationGuide.description @?; # Natural language description of # the implementation guide fhir:ImplementationGuide.useContext @*; # The context that the content is # intended to support fhir:ImplementationGuide.jurisdiction @*; # Intended jurisdiction for # implementation guide (if # applicable) fhir:ImplementationGuide.copyright @?; # Use and/or publishing restrictions fhir:ImplementationGuide.packageId @; # NPM Package name for IG fhir:ImplementationGuide.license @ AND {fhir:value @fhirvs:spdx-license}?; # SPDX license code for this IG (or # not-open-source) fhir:ImplementationGuide.fhirVersion @ AND {fhir:value @fhirvs:FHIR-version}+; # FHIR Version(s) this # Implementation Guide targets fhir:ImplementationGuide.dependsOn @*; # Another Implementation guide this # depends on fhir:ImplementationGuide.global @*; # Profiles that apply globally fhir:ImplementationGuide.definition @?; # Information needed to build the IG fhir:ImplementationGuide.manifest @?; # Information about an assembled IG fhir:index xsd:integer? # Relative position in a list } # Information about an assembled IG 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:ImplementationGuide.manifest.rendering @?; # Location of rendered # implementation guide fhir:ImplementationGuide.manifest.resource @+; # Resource in the implementation # guide fhir:ImplementationGuide.manifest.page @*; # HTML page within the parent IG fhir:ImplementationGuide.manifest.image @*; # Image within the IG fhir:ImplementationGuide.manifest.other @*; # Additional linkable file in IG fhir:index xsd:integer? # Relative position in a list } # Another Implementation guide this depends on 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:ImplementationGuide.dependsOn.uri @; # Identity of the IG that this # depends on fhir:ImplementationGuide.dependsOn.packageId @?; # NPM Package name for IG this # depends on fhir:ImplementationGuide.dependsOn.version @?; # Version of the IG fhir:index xsd:integer? # Relative position in a list } # Information needed to build the IG 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:ImplementationGuide.definition.grouping @*; # Grouping used to present related # resources in the IG fhir:ImplementationGuide.definition.resource @+; # Resource in the implementation # guide fhir:ImplementationGuide.definition.page @?; # Page/Section in the Guide fhir:ImplementationGuide.definition.parameter @*; # Defines how IG is built by tools fhir:ImplementationGuide.definition.template @*; # A template for building resources fhir:index xsd:integer? # Relative position in a list } # Profiles that apply globally 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:ImplementationGuide.global.type @ AND {fhir:value @fhirvs:resource-types}; # Type this profile applies to fhir:ImplementationGuide.global.profile @; # Profile that all resources must # conform to fhir:index xsd:integer? # Relative position in a list } # A template for building resources 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:ImplementationGuide.definition.template.code @; # Type of template specified fhir:ImplementationGuide.definition.template.source @; # The source location for the # template fhir:ImplementationGuide.definition.template.scope @?; # The scope in which the template # applies fhir:index xsd:integer? # Relative position in a list } # Resource in the implementation guide 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:ImplementationGuide.definition.resource.reference @; # Location of the resource fhir:ImplementationGuide.definition.resource.fhirVersion @ AND {fhir:value @fhirvs:FHIR-version}*; # Versions this applies to (if # different to IG) fhir:ImplementationGuide.definition.resource.name @?; # Human Name for the resource fhir:ImplementationGuide.definition.resource.description @?; # Reason why included in guide ( # Is an example/What is this an # example of? fhir:ImplementationGuide.definition.resource.exampleBoolean @ | fhir:ImplementationGuide.definition.resource.exampleCanonical @ )?; fhir:ImplementationGuide.definition.resource.groupingId @?; # Grouping this is part of fhir:index xsd:integer? # Relative position in a list } # Defines how IG is built by tools 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:ImplementationGuide.definition.parameter.code @ AND {fhir:value @fhirvs:guide-parameter-code}; # apply | path-resource | path-pages # | path-tx-cache | # expansion-parameter | # rule-broken-links | generate-xml | # generate-json | generate-turtle | # html-template fhir:ImplementationGuide.definition.parameter.value @; # Value for named type fhir:index xsd:integer? # Relative position in a list } # HTML page within the parent IG 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:ImplementationGuide.manifest.page.name @; # HTML page name fhir:ImplementationGuide.manifest.page.title @?; # Title of the page, for references fhir:ImplementationGuide.manifest.page.anchor @*; # Anchor available on the page fhir:index xsd:integer? # Relative position in a list } # Resource in the implementation guide 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:ImplementationGuide.manifest.resource.reference @; # Location of the resource ( # Is an example/What is this an # example of? fhir:ImplementationGuide.manifest.resource.exampleBoolean @ | fhir:ImplementationGuide.manifest.resource.exampleCanonical @ )?; fhir:ImplementationGuide.manifest.resource.relativePath @?; # Relative path for page in IG fhir:index xsd:integer? # Relative position in a list } # Grouping used to present related resources in the IG 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:ImplementationGuide.definition.grouping.name @; # Descriptive name for the package fhir:ImplementationGuide.definition.grouping.description @?; # Human readable text describing the # package fhir:index xsd:integer? # Relative position in a list } # Page/Section in the Guide 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 ( # Where to find that page fhir:ImplementationGuide.definition.page.nameUrl @ | fhir:ImplementationGuide.definition.page.nameReference @ ); fhir:ImplementationGuide.definition.page.title @; # Short title shown for navigational # assistance fhir:ImplementationGuide.definition.page.generation @ AND {fhir:value @fhirvs:guide-page-generation}; # html | markdown | xml | generated fhir:ImplementationGuide.definition.page.page @*; # Nested Pages / Sections fhir:index xsd:integer? # Relative position in a list } # Nested Pages / Sections 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 } # A reference from one resource to another CLOSED { fhir:link IRI?; fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Reference.reference @?; # Literal reference, Relative, # internal or absolute URL fhir:Reference.type @?; # Type the reference refers to (e.g. # "Patient") fhir:Reference.identifier @?; # Logical reference, when literal # reference is not known fhir:Reference.display @?; # Text alternative for the resource 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 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 } # Primitive Type url CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value url?; # Primitive value for url 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 @