PackagesCanonicalsLogsProblems
    Packages
    synapxe.hsar.hsg@4.3.0-v3
    http://ihis.sg/StructureDefinition/Consent-pophealth-output
description: null
package_name: synapxe.hsar.hsg
derivation: constraint
name: profile-Consent-get-consent
type: Consent
elements:
  patient:
    short: n/a
    index: 46
    elements:
      id: {index: 47}
      extension: {index: 48}
      reference: {short: n/a, index: 49}
      type: {short: n/a, index: 50}
      identifier:
        short: n/a
        index: 51
        elements:
          id: {index: 52}
          extension: {index: 53}
          use: {short: n/a, index: 54}
          type: {short: n/a, index: 55}
          system:
            short: n/a
            pattern: {type: Uri, value: 'http://ihis.sg/identifier/nric'}
            index: 56
          value: {short: n/a, index: 57}
          period: {short: n/a, index: 58}
          assigner: {short: n/a, index: 59}
        extensions: {}
        required: [value, system]
      display: {short: n/a, index: 60}
    extensions: {}
    required: [identifier, reference]
  category:
    short: n/a
    index: 34
    elements:
      id: {index: 35}
      extension: {index: 36}
      coding:
        short: n/a
        binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-consent-category'}
        index: 37
        elements:
          id: {index: 38}
          extension: {index: 39}
          system:
            short: n/a
            pattern: {type: Uri, value: 'http://ihis.sg/ValueSet/hsg-consent-category'}
            index: 40
          version: {short: n/a, index: 41}
          code: {short: n/a, index: 42}
          display: {short: n/a, index: 43}
          userSelected: {short: n/a, index: 44}
        extensions: {}
        required: [system, code]
      text: {short: n/a, index: 45}
    extensions: {}
    required: [coding]
  provision:
    short: n/a
    index: 74
    elements:
      provision: {short: n/a, index: 86}
      purpose: {short: n/a, index: 81}
      dataPeriod: {short: n/a, index: 84}
      type: {short: n/a, index: 75}
      class: {short: n/a, index: 82}
      code: {short: n/a, index: 83}
      action: {short: n/a, index: 79}
      period:
        short: n/a
        index: 76
        elements:
          start: {short: n/a, index: 77}
        required: [start]
      securityLabel: {short: n/a, index: 80}
      actor: {short: n/a, index: 78}
      data: {short: n/a, index: 85}
    required: [period]
  meta:
    short: n/a
    index: 1
    elements:
      id: {index: 2}
      extension: {index: 3}
      versionId: {short: n/a, index: 4}
      lastUpdated: {short: n/a, index: 5}
      source: {index: 6}
      profile: {index: 7}
      security: {index: 8}
      tag: {index: 9}
    extensions: {}
    required: [lastUpdated, versionId]
  implicitRules: {index: 10}
  organization: {short: n/a, index: 63}
  verification: {short: n/a, index: 73}
  source:
    short: n/a
    choices: []
    index: 65
  scope:
    short: n/a
    index: 22
    elements:
      id: {index: 23}
      extension: {index: 24}
      coding:
        short: n/a
        binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-consent-scope'}
        index: 25
        elements:
          id: {index: 26}
          extension: {index: 27}
          system:
            short: n/a
            pattern: {type: Uri, value: 'http://ihis.sg/ValueSet/hsg-consent-scope'}
            index: 28
          version: {short: n/a, index: 29}
          code: {short: n/a, index: 30}
          display: {short: n/a, index: 31}
          userSelected: {short: n/a, index: 32}
        extensions: {}
        required: [system, code]
      text: {short: n/a, index: 33}
    extensions: {}
    required: [coding]
  policy:
    short: n/a
    index: 66
    elements:
      id: {index: 67}
      extension: {index: 68}
      modifierExtension: {index: 69}
      authority: {short: n/a, index: 70}
      uri:
        short: n/a
        pattern: {type: Uri, value: 'http://ihis.sg/PlanDefinition/healthier-sg/healthier-sg-programme'}
        index: 71
    extensions: {}
    required: [uri]
  dateTime:
    short: n/a
    constraint:
      consent-dateTime: {human: Consent datetime cannot be future datetime, severity: error, expression: $this.convertsToDateTime() = false or $this.hasValue().not() or  (now() + 5 seconds) > $this}
    index: 61
  extension:
    min: 2
    short: n/a
    array: true
    max: 2
    index: 14
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 2
      max: 2
      slices:
        provided-by:
          match: {url: null}
          schema:
            type: Extension
            url: http://ihis.sg/extension/consent-provided-by
            index: 15
            elements:
              id: {short: n/a, index: 16}
        consent-authentication-mode:
          match: {url: null}
          schema:
            type: Extension
            short: n/a
            url: http://ihis.sg/extension/consent-authentication-mode
            index: 17
            elements:
              id: {short: n/a, index: 18}
  contained: {index: 13}
  status:
    short: n/a
    pattern: {type: Code, value: active}
    index: 21
  language: {index: 11}
  id: {short: n/a, index: 0}
  policyRule: {short: n/a, index: 72}
  identifier: {short: n/a, index: 20}
  modifierExtension: {index: 19}
  performer: {short: n/a, index: 62}
  text: {index: 12}
package_version: 4.3.0-v3
extensions:
  provided-by:
    url: http://ihis.sg/extension/consent-provided-by
    type: Extension
    index: 15
    elements:
      id: {short: n/a, index: 16}
  consent-authentication-mode:
    url: http://ihis.sg/extension/consent-authentication-mode
    type: Extension
    short: n/a
    index: 17
    elements:
      id: {short: n/a, index: 18}
class: profile
kind: resource
url: http://ihis.sg/StructureDefinition/Consent-pophealth-output
base: http://hl7.org/fhir/StructureDefinition/Consent
version: 0.1.0
required: [id, dateTime, policy, meta, patient]