PackagesCanonicalsLogsProblems
    Packages
    synapxe.hsar@1.0.0
    http://ihis.sg/StructureDefinition/Contact-Consent-pophealth
description: null
package_name: synapxe.hsar
derivation: constraint
name: profile-Consent-put-contact-consent
type: Consent
elements:
  patient:
    index: 17
    elements:
      reference: {index: 18}
      type:
        pattern: {type: Uri, value: Patient}
        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, type]
  category:
    binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-consent-category'}
    index: 10
    elements:
      coding:
        elements:
          system:
            code:
            - {code: contact-channel-consent, system: 'http://ihis.sg/ValueSet/hsg-consent-category', display: Contact Channel Consent}
            index: 11
          version: {index: 12}
          code: {index: 13}
          display: {index: 14}
          userSelected: {index: 15}
        required: [display, system, code]
      text: {index: 16}
  provision: {index: 48}
  organization:
    index: 30
    elements:
      reference: {index: 31}
      type:
        pattern: {type: Uri, value: Organization}
        index: 32
      identifier:
        index: 33
        elements:
          use: {index: 34}
          type: {index: 35}
          system:
            pattern: {type: Uri, value: 'http://ihis.sg/identifier/hci-code'}
            index: 36
          value:
            constraint:
              organization-name-constraint: {human: 'Organization value must be ''NHG'',''NUHS'' or ''SHS''', severity: error, expression: '$this.toString().matches(''(?i)^(shs|nhg|nuhs)$'')'}
            index: 37
          period: {index: 38}
          assigner: {index: 39}
        required: [value, system]
      display: {index: 40}
    required: [identifier, type]
  verification: {index: 47}
  source:
    choices: []
    index: 42
  scope:
    binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-consent-scope'}
    index: 2
    elements:
      coding:
        code:
        - {code: healthier-sg-contact, system: 'http://ihis.sg/ValueSet/hsg-consent-scope', display: Healthier SG Contact}
        index: 3
        elements:
          system: {index: 4}
          version: {index: 5}
          code: {index: 6}
          display: {index: 7}
          userSelected: {index: 8}
        required: [display, system, code]
      text: {index: 9}
    required: [coding]
  policy:
    index: 43
    elements:
      authority: {index: 44}
      uri:
        pattern: {type: Uri, value: 'http://ihis.sg/PlanDefinition/healthier-sg/healthier-sg-contact'}
        index: 45
    required: [uri]
  dateTime: {short: 'Sample Value: "2022-09-09T09:44:32+08:00"', index: 28}
  status:
    short: fixed value 'active'
    pattern: {type: Code, value: active}
    index: 1
  policyRule: {index: 46}
  identifier: {index: 0}
  performer: {index: 29}
package_version: 1.0.0
class: profile
kind: resource
url: http://ihis.sg/StructureDefinition/Contact-Consent-pophealth
base: http://hl7.org/fhir/StructureDefinition/Consent
version: null
required: [dateTime, policy, patient, organization]