PackagesCanonicalsLogsProblems
    Packages
    synapxe.hsar@1.0.0
    http://ihis.sg/StructureDefinition/Consent-pophealth
description: null
package_name: synapxe.hsar
derivation: constraint
name: profile-Consent-put-consent
type: Consent
elements:
  patient:
    index: 18
    elements:
      reference: {index: 19}
      identifier:
        index: 20
        elements:
          use: {index: 21}
          type: {index: 22}
          system:
            pattern: {type: Uri, value: 'http://ihis.sg/identifier/nric'}
            index: 23
          value: {index: 24}
          period: {index: 25}
          assigner: {index: 26}
        required: [value, system]
      display: {index: 27}
    required: [identifier]
  category:
    index: 11
    elements:
      coding:
        binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-consent-category'}
        index: 12
        elements:
          system:
            pattern: {type: Uri, value: 'http://ihis.sg/ValueSet/hsg-consent-category'}
            index: 13
          version: {index: 14}
          code: {short: 'Sample Value : "healthiersg-consent"', index: 15}
          userSelected: {index: 16}
        required: [system]
      text: {index: 17}
    required: [coding]
  provision: {index: 38}
  organization: {index: 30}
  verification: {index: 37}
  source:
    choices: []
    index: 32
  scope:
    elements:
      coding:
        binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-consent-scope'}
        index: 5
        elements:
          system:
            pattern: {type: Uri, value: 'http://ihis.sg/ValueSet/hsg-consent-scope'}
            index: 6
          version: {index: 7}
          code: {short: 'Sample Value : "onboard-healthier-sg"', index: 8}
          userSelected: {index: 9}
        required: [system]
      text: {index: 10}
    required: [coding]
  policy:
    index: 33
    elements:
      authority: {index: 34}
      uri:
        pattern: {type: Uri, value: 'http://ihis.sg/PlanDefinition/healthier-sg/healthier-sg-programme'}
        index: 35
    required: [uri]
  dateTime:
    short: 'Sample Value: "2022-09-09T09:44:32+08:00"'
    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: 28
  extension:
    short: Additional data elements required by Healthier SG
    array: true
    min: 2
    index: 0
    slicing:
      slices:
        provided-by:
          match: {}
          schema: {type: Extension, url: 'http://ihis.sg/extension/provided-by', index: 1}
        consent-authentication-mode:
          match: {}
          schema: {type: Extension, url: 'http://ihis.sg/extension/consent-authentication-mode', index: 2}
  status: {short: fixed value 'active', index: 4}
  policyRule: {index: 36}
  identifier: {index: 3}
  performer: {index: 29}
package_version: 1.0.0
extensions:
  provided-by: {url: 'http://ihis.sg/extension/provided-by', type: Extension, index: 1}
  consent-authentication-mode: {url: 'http://ihis.sg/extension/consent-authentication-mode', type: Extension, index: 2}
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]