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