HL7 FHIR Implementation Guide - New Zealand Formulary/NZULM IG
0.1.0 - ci-build

HL7 FHIR Implementation Guide - New Zealand Formulary/NZULM IG, published by New Zealand Medicines Formulary LP. This is not an authorized publication; it is the continuous build for version 0.1.0). This version is based on the current content of https://github.com/HL7NZ/nzf/ and changes regularly. See the Directory of published versions

Extension: LegalClass

Legal classification

The official URL for this extension is:

http://hl7.org.nz/fhir/StructureDefinition/nzf-legalclass

Status: draft
Extension maintained by: New Zealand Medicines Formulary LP

Context of Use

This extension may be used on the following element(s):

  • Medication

Usage info

Usage:

Formal Views of Extension Content

Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.

This structure is derived from Extension

Summary

Mandatory: 2 elements
Fixed Value: 3 elements
Prohibited: 3 elements

Slices

This structure defines the following Slices:

  • The element Extension.extension.value[x] is sliced based on the value of type:$this

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..*ExtensionExtension
... extension 1..*ExtensionExtension
... extension:code 1..1ExtensionMedsafe legal classification code
.... extension 0..0
.... url 1..1uri"code"
.... Slices for value[x] 0..1CodeableConceptValue of extension
Slice: Unordered, Open by type:$this
.... valueCodeableConcept 0..1CodeableConceptValue of extension
Binding: Legal Medication status (required)
... extension:conditions 0..1ExtensionClassification conditions
.... extension 0..0
.... url 1..1uri"conditions"
.... value[x] 0..1stringValue of extension
... value[x] 0..0

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..*ExtensionExtension
... id 0..1stringUnique id for inter-element referencing
... Slices for extension 1..*ExtensionExtension
Slice: Unordered, Open by value:url
... extension:code 1..1ExtensionMedsafe legal classification code
.... id 0..1stringUnique id for inter-element referencing
.... Slices for extension 0..0
.... url 1..1uri"code"
.... Slices for value[x] 0..1CodeableConceptValue of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueCodeableConcept 0..1CodeableConceptValue of extension
Binding: Legal Medication status (required)
.... id 0..1stringUnique id for inter-element referencing
.... Slices for extension 0..0
.... url 1..1uri"conditions"
.... value[x] 0..1stringValue of extension
... url 1..1uri"http://hl7.org.nz/fhir/StructureDefinition/nzf-legalclass"

doco Documentation for this format

This structure is derived from Extension

Summary

Mandatory: 2 elements
Fixed Value: 3 elements
Prohibited: 3 elements

Slices

This structure defines the following Slices:

  • The element Extension.extension.value[x] is sliced based on the value of type:$this

Differential View

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..*ExtensionExtension
... extension 1..*ExtensionExtension
... extension:code 1..1ExtensionMedsafe legal classification code
.... extension 0..0
.... url 1..1uri"code"
.... Slices for value[x] 0..1CodeableConceptValue of extension
Slice: Unordered, Open by type:$this
.... valueCodeableConcept 0..1CodeableConceptValue of extension
Binding: Legal Medication status (required)
... extension:conditions 0..1ExtensionClassification conditions
.... extension 0..0
.... url 1..1uri"conditions"
.... value[x] 0..1stringValue of extension
... value[x] 0..0

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..*ExtensionExtension
... id 0..1stringUnique id for inter-element referencing
... Slices for extension 1..*ExtensionExtension
Slice: Unordered, Open by value:url
... extension:code 1..1ExtensionMedsafe legal classification code
.... id 0..1stringUnique id for inter-element referencing
.... Slices for extension 0..0
.... url 1..1uri"code"
.... Slices for value[x] 0..1CodeableConceptValue of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueCodeableConcept 0..1CodeableConceptValue of extension
Binding: Legal Medication status (required)
.... id 0..1stringUnique id for inter-element referencing
.... Slices for extension 0..0
.... url 1..1uri"conditions"
.... value[x] 0..1stringValue of extension
... url 1..1uri"http://hl7.org.nz/fhir/StructureDefinition/nzf-legalclass"

doco Documentation for this format

 

Other representations of profile: CSV, Excel, Schematron

Terminology Bindings

PathConformanceValueSet
Extension.extension:code.value[x]:valueCodeableConceptrequiredMedicineClassificationCodeHB

Constraints

IdPathDetailsRequirements
ele-1ExtensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1ExtensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Extension.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Extension.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Extension.extension:codeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Extension.extension:codeMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Extension.extension:code.value[x]All FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Extension.extension:code.value[x]:valueCodeableConceptAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Extension.extension:conditionsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Extension.extension:conditionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Extension.extension:conditions.value[x]All FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())