PackagesCanonicalsLogsProblems
    Packages
    ca.on.health.idms.agreementmvp@3.0.3
    https://health.gov.on.ca/idms/fhir/StructureDefinition/IDMS-Agreement
description: Agreements and Amendments to Agreements.
package_name: ca.on.health.idms.agreementmvp
derivation: constraint
name: IDMS_Contract_Agreement
type: Contract
elements:
  instantiatesCanonical: {short: Orignial Contract version, index: 31}
  instantiatesUri: {index: 32}
  site: {index: 58}
  relevantHistory: {index: 173}
  supportingInfo: {short: Related Drug Submissions, index: 172}
  applies:
    short: Effective time period
    index: 35
    elements:
      start: {short: Activation date, index: 36}
      end:
        short: End date
        index: 37
        extensions:
          terminationReason: {url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-EffectiveDate-Terminated-Reason', min: 0, type: Extension, index: 39}
        elements:
          extension:
            index: 38
            slicing:
              rules: open
              discriminator:
              - {path: url, type: value}
              min: 0
              slices:
                terminationReason:
                  match: {url: null}
                  schema: {type: Extension, url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-EffectiveDate-Terminated-Reason', index: 39}
                  min: 0
    required: [start]
  name: {index: 59}
  authority:
    short: Manufacturer/Distributor
    index: 46
    elements:
      reference: {index: 47}
      type: {index: 48}
      identifier:
        short: Company Code and Type
        index: 49
        elements:
          use: {index: 50}
          type: {index: 51}
          system: {index: 52}
          value: {short: Company Code, index: 53}
          period: {index: 54}
          assigner: {index: 55}
        required: [type]
      display: {index: 56}
    required: [reference, display]
  rule: {index: 184}
  type:
    short: Agreement Type
    index: 73
    elements:
      coding:
        index: 74
        elements:
          system: {index: 75}
          version: {index: 76}
          code:
            short: Agreement Type Code
            binding: {strength: required, valueSet: 'https://health.gov.on.ca/idms/fhir/ValueSet/AgreementType'}
            index: 77
          display: {short: Agreement Type, index: 78}
          userSelected: {index: 79}
        required: [display, code]
      text: {index: 80}
    required: [coding]
  legal: {index: 183}
  contentDerivative: {index: 33}
  topic:
    choices: [topicCodeableConcept]
    index: 66
  topicCodeableConcept: {type: CodeableConcept, choiceOf: topic, index: 67}
  legalState:
    short: Agreement Status
    index: 23
    elements:
      coding:
        index: 24
        elements:
          system: {index: 25}
          version: {index: 26}
          code: {short: Status Code, index: 27}
          display: {short: Status Name, index: 28}
          userSelected: {index: 29}
      text: {index: 30}
  contentDefinition: {index: 82}
  scope: {index: 64}
  title: {short: Detailed Description of the Agreement, index: 60}
  topic[x]:
    elements:
      coding:
        index: 68
        elements:
          system: {index: 69}
          version: {index: 70}
          userSelected: {index: 71}
      text: {index: 72}
    required: [coding]
  signer:
    short: Agreement Signoffs
    index: 174
    elements:
      type:
        short: Type of Signoff
        index: 175
        elements:
          system: {index: 176}
          version: {index: 177}
          code:
            binding: {strength: required, valueSet: 'https://health.gov.on.ca/idms/fhir/ValueSet/Signatory-Type'}
            index: 178
          userSelected: {index: 179}
      party:
        type: Reference
        refers: ['http://hl7.org/fhir/StructureDefinition/PractitionerRole']
        index: 180
      signature:
        elements:
          type: {index: 181}
  author: {short: Lead Negotiator, index: 63}
  term:
    index: 83
    elements:
      group: {index: 171}
      applies: {index: 86}
      offer:
        index: 93
        elements:
          party: {index: 95}
          linkId: {index: 102}
          decisionMode: {index: 99}
          type: {index: 97}
          topic: {index: 96}
          securityLabelNumber: {index: 103}
          answer: {index: 100}
          identifier: {index: 94}
          decision: {index: 98}
          text: {index: 101}
      type: {index: 89}
      topic:
        choices: []
        index: 88
      identifier: {index: 84}
      action: {index: 170}
      issued: {index: 85}
      subType: {index: 90}
      securityLabel: {index: 92}
      asset:
        short: Drug Products
        index: 104
        extensions:
          productStatus: {url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Agreement-Product-Status', min: 0, type: Extension, index: 106}
          originalAgreementNumber: {url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-original-agreement-number', min: 0, type: Extension, index: 107}
        elements:
          periodType: {index: 125}
          usePeriod: {index: 127}
          linkId: {index: 129}
          relationship: {index: 119}
          type:
            short: Product type
            index: 109
            elements:
              coding:
                index: 110
                elements:
                  system: {index: 111}
                  version: {index: 112}
                  code: {short: Agreement Product Type Code, index: 113}
                  display: {index: 114}
                  userSelected: {index: 115}
                required: [display]
              text: {index: 116}
            required: [coding]
          scope: {index: 108}
          extension:
            index: 105
            slicing:
              rules: open
              discriminator:
              - {path: url, type: value}
              min: 0
              slices:
                productStatus:
                  match: {url: null}
                  schema: {type: Extension, url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Agreement-Product-Status', index: 106}
                  min: 0
                originalAgreementNumber:
                  match: {url: null}
                  schema: {type: Extension, url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-original-agreement-number', index: 107}
                  min: 0
          securityLabelNumber: {short: Schedule A - Table, index: 131}
          typeReference: {short: Drug Product Reference, index: 117}
          condition: {short: Transfer Details, index: 124}
          answer: {index: 130}
          context:
            index: 120
            elements:
              reference: {index: 121}
              code:
                binding: {strength: required, valueSet: 'https://health.gov.on.ca/idms/fhir/ValueSet/Agreement-Funding-Program'}
                index: 122
              text: {index: 123}
          period: {index: 126}
          valuedItem:
            index: 132
            elements:
              linkId: {index: 168}
              payment: {index: 164}
              recipient: {index: 167}
              net: {index: 163}
              points: {index: 162}
              responsible: {index: 166}
              securityLabelNumber: {index: 169}
              factor: {index: 161}
              paymentDate: {index: 165}
              entityCodeableConcept:
                index: 136
                elements:
                  coding:
                    index: 137
                    elements:
                      system: {index: 138}
                      version: {index: 139}
                      code: {index: 140}
                      display: {index: 141}
                      userSelected: {index: 142}
                  text: {index: 143}
                required: [coding]
              identifier:
                index: 144
                elements:
                  use: {index: 145}
                  type:
                    index: 146
                    elements:
                      coding:
                        index: 147
                        elements:
                          system: {index: 148}
                          version: {index: 149}
                          code: {index: 150}
                          display: {index: 151}
                          userSelected: {index: 152}
                        required: [display, code]
                      text: {index: 153}
                  system: {index: 154}
                  value: {index: 155}
                  period: {index: 156}
                  assigner: {index: 157}
              effectiveTime: {index: 158}
              quantity: {index: 159}
              entity:
                choices: []
                index: 134
              unitPrice: {index: 160}
              entityReference: {index: 135}
            required: [entityCodeableConcept]
          subtype: {index: 118}
          text: {index: 128}
        required: [typeReference]
      text: {index: 91}
    required: [asset]
  friendly: {index: 182}
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        updatedDate:
          match: {url: null}
          schema: {type: Extension, url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/UpdatedDate', index: 12}
          min: 1
          max: 1
        updatedUser:
          match: {url: null}
          schema: {type: Extension, url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/UpdatedUser', index: 11}
          min: 1
          max: 1
        originalAgreement:
          match: {url: null}
          schema: {type: Extension, url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Original-Agreement-Reference', index: 1}
          min: 0
          max: 1
        externalStatus:
          match: {url: null}
          schema: {type: Extension, url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Agreement-External-Status', index: 7}
          min: 0
        effectiveDate:
          match: {url: null}
          schema: {type: Extension, url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Contract-Effective-Date', index: 3}
          min: 0
        businessStatus:
          match: {url: null}
          schema: {type: Extension, url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Business-Status', index: 6}
          min: 0
        productRebate:
          match: {url: null}
          schema: {type: Extension, url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Rebate-Reference', index: 8}
          min: 0
        createdUser:
          match: {url: null}
          schema: {type: Extension, url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/CreatedUser', index: 9}
          min: 1
          max: 1
        createdDate:
          match: {url: null}
          schema: {type: Extension, url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/CreatedDate', index: 10}
          min: 1
          max: 1
        amendmentNumeric:
          match: {url: null}
          schema: {type: Extension, url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Agreement-Amendment-Number-Numeric', index: 4}
          min: 0
        companyContact:
          match: {url: null}
          schema: {type: Extension, url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Company-Contact', index: 5}
          min: 0
        assignedTo:
          match: {url: null}
          schema: {type: Extension, url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/ExtensionAssignedTo', index: 2}
          min: 0
  alias: {short: 'One line descrription ', index: 62}
  status: {index: 22}
  subtitle: {short: Version Description, index: 61}
  url: {index: 20}
  identifier:
    array: true
    max: 2
    index: 13
    elements:
      use: {index: 14}
      type: {index: 15}
      system: {index: 16}
      value: {index: 17}
      period: {index: 18}
      assigner: {index: 19}
    required: [value, system]
  expirationType: {index: 40}
  issued: {index: 34}
  domain: {index: 57}
  subType: {index: 81}
  version: {short: Amendment Number, index: 21}
  subject:
    short: Manufacter of Distributor
    index: 41
    elements:
      reference: {short: Reference to the organization, index: 42}
      type: {index: 43}
      identifier: {index: 44}
      display: {short: Extra information about the organization, index: 45}
    required: [reference]
  legallyBinding:
    choices: []
    index: 186
package_version: 3.0.3
extensions:
  updatedDate: {url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/UpdatedDate', min: 1, max: 1, type: Extension, index: 12}
  updatedUser: {url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/UpdatedUser', min: 1, max: 1, type: Extension, index: 11}
  originalAgreement: {url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Original-Agreement-Reference', min: 0, max: 1, type: Extension, index: 1}
  externalStatus: {url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Agreement-External-Status', min: 0, type: Extension, index: 7}
  effectiveDate: {url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Contract-Effective-Date', min: 0, type: Extension, index: 3}
  businessStatus: {url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Business-Status', min: 0, type: Extension, index: 6}
  productRebate: {url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Rebate-Reference', min: 0, type: Extension, index: 8}
  createdUser: {url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/CreatedUser', min: 1, max: 1, type: Extension, index: 9}
  createdDate: {url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/CreatedDate', min: 1, max: 1, type: Extension, index: 10}
  amendmentNumeric: {url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Agreement-Amendment-Number-Numeric', min: 0, type: Extension, index: 4}
  companyContact: {url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Company-Contact', min: 0, type: Extension, index: 5}
  assignedTo: {url: 'https://health.gov.on.ca/idms/fhir/StructureDefinition/ExtensionAssignedTo', min: 0, type: Extension, index: 2}
class: profile
kind: resource
url: https://health.gov.on.ca/idms/fhir/StructureDefinition/IDMS-Agreement
base: http://hl7.org/fhir/StructureDefinition/Contract
version: 3.0.3
required: [legalState, type]