PackagesCanonicalsLogsProblems
    Packages
    sfm.030521@1.0.1
    http://ehelse.no/fhir/StructureDefinition/sfm-reseptamendment
description: Information required in Norwegian e-resept (electronic prescription).
package_name: sfm.030521
derivation: constraint
name: SfmReseptamendment
type: Extension
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        amount:
          match: {url: amount}
          schema:
            short: Amount of drug prescribed
            index: 150
            elements:
              url:
                pattern: {type: Uri, value: amount}
                index: 151
              value:
                choices: [valueQuantity]
                index: 153
              valueQuantity: {type: Quantity, choiceOf: value, index: 154}
              value[x]:
                elements:
                  system:
                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7452'}
                    index: 155
        recallinfo:
          match: {url: recallinfo}
          schema:
            short: Action information for SFM
            index: 204
            extensions:
              recallId:
                url: recallId
                short: pointer to releated prescription
                index: 206
                elements:
                  url:
                    pattern: {type: Uri, value: recallId}
                    index: 207
                  value:
                    choices: [valueString]
                    index: 209
                  valueString: {type: string, choiceOf: value, index: 210}
              text:
                url: text
                index: 211
                elements:
                  url:
                    pattern: {type: Uri, value: text}
                    index: 212
                  value:
                    choices: [valueString]
                    index: 214
                  valueString: {type: string, choiceOf: value, index: 215}
              recallcode:
                url: recallcode
                _required: true
                index: 216
                elements:
                  url:
                    pattern: {type: Uri, value: recallcode}
                    index: 217
                  value:
                    choices: [valueCodeableConcept]
                    index: 219
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 220}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7500'}
                            index: 221
              recalledby:
                url: recalledby
                index: 222
                elements:
                  url:
                    pattern: {type: Uri, value: recalledby}
                    index: 223
                  value:
                    choices: [valueReference]
                    index: 225
                  valueReference:
                    type: Reference
                    choiceOf: value
                    refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-PractitionerRole']
                    index: 226
            elements:
              extension:
                index: 205
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    recallId:
                      match: {url: recallId}
                      schema:
                        short: pointer to releated prescription
                        index: 206
                        elements:
                          url:
                            pattern: {type: Uri, value: recallId}
                            index: 207
                          value:
                            choices: [valueString]
                            index: 209
                          valueString: {type: string, choiceOf: value, index: 210}
                    text:
                      match: {url: text}
                      schema:
                        index: 211
                        elements:
                          url:
                            pattern: {type: Uri, value: text}
                            index: 212
                          value:
                            choices: [valueString]
                            index: 214
                          valueString: {type: string, choiceOf: value, index: 215}
                    recallcode:
                      match: {url: recallcode}
                      schema:
                        _required: true
                        index: 216
                        elements:
                          url:
                            pattern: {type: Uri, value: recallcode}
                            index: 217
                          value:
                            choices: [valueCodeableConcept]
                            index: 219
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 220}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7500'}
                                    index: 221
                    recalledby:
                      match: {url: recalledby}
                      schema:
                        index: 222
                        elements:
                          url:
                            pattern: {type: Uri, value: recalledby}
                            index: 223
                          value:
                            choices: [valueReference]
                            index: 225
                          valueReference:
                            type: Reference
                            choiceOf: value
                            refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-PractitionerRole']
                            index: 226
              url:
                pattern: {type: Uri, value: recallinfo}
                index: 227
              value:
                choices: []
                index: 229
        slvApplication:
          match: {url: slvApplication}
          schema:
            index: 338
            extensions:
              reason:
                url: reason
                _required: true
                index: 340
                elements:
                  url:
                    pattern: {type: Uri, value: reason}
                    index: 341
                  value:
                    choices: [valueString]
                    index: 343
                  valueString: {type: string, choiceOf: value, index: 344}
              manufacturer:
                url: manufacturer
                _required: true
                index: 345
                elements:
                  url:
                    pattern: {type: Uri, value: manufacturer}
                    index: 346
                  value:
                    choices: [valueString]
                    index: 348
                  valueString: {type: string, choiceOf: value, index: 349}
              directApplication:
                url: directApplication
                _required: true
                index: 350
                elements:
                  url:
                    pattern: {type: Uri, value: directApplication}
                    index: 351
                  value:
                    choices: [valueBoolean]
                    index: 353
                  valueBoolean: {type: boolean, choiceOf: value, index: 354}
            elements:
              extension:
                index: 339
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    reason:
                      match: {url: reason}
                      schema:
                        _required: true
                        index: 340
                        elements:
                          url:
                            pattern: {type: Uri, value: reason}
                            index: 341
                          value:
                            choices: [valueString]
                            index: 343
                          valueString: {type: string, choiceOf: value, index: 344}
                    manufacturer:
                      match: {url: manufacturer}
                      schema:
                        _required: true
                        index: 345
                        elements:
                          url:
                            pattern: {type: Uri, value: manufacturer}
                            index: 346
                          value:
                            choices: [valueString]
                            index: 348
                          valueString: {type: string, choiceOf: value, index: 349}
                    directApplication:
                      match: {url: directApplication}
                      schema:
                        _required: true
                        index: 350
                        elements:
                          url:
                            pattern: {type: Uri, value: directApplication}
                            index: 351
                          value:
                            choices: [valueBoolean]
                            index: 353
                          valueBoolean: {type: boolean, choiceOf: value, index: 354}
              url:
                pattern: {type: Uri, value: slvApplication}
                index: 355
              value:
                choices: []
                index: 357
        guardiantransparencyreservation:
          match: {url: guardiantransparencyreservation}
          schema:
            short: Guardian transperecy reservation
            index: 31
            elements:
              url:
                pattern: {type: Uri, value: guardiantransparencyreservation}
                index: 32
              value:
                choices: [valueBoolean]
                index: 34
              valueBoolean: {type: boolean, choiceOf: value, index: 35}
        refnum:
          match: {url: refnum}
          schema:
            short: Reference number
            index: 46
            elements:
              url:
                pattern: {type: Uri, value: refnum}
                index: 47
              value:
                choices: [valueString]
                index: 49
              valueString: {type: string, choiceOf: value, index: 50}
        ownpractice:
          match: {url: ownpractice}
          schema:
            short: Identify that the medication is for use in own organisation
            index: 36
            elements:
              url:
                pattern: {type: Uri, value: ownpractice}
                index: 37
              value:
                choices: [valueBoolean]
                index: 39
              valueBoolean: {type: boolean, choiceOf: value, index: 40}
        ereseptdosing:
          match: {url: ereseptdosing}
          schema:
            short: Dosing as given by e-resept
            index: 230
            extensions:
              starttime:
                url: starttime
                short: The time a dosing period starts
                index: 232
                elements:
                  url:
                    pattern: {type: Uri, value: starttime}
                    index: 233
                  value:
                    choices: [valueDate, valueDateTime]
                    index: 235
                  valueDate: {type: date, choiceOf: value, index: 236}
                  valueDateTime: {type: dateTime, choiceOf: value, index: 237}
              endtime:
                url: endtime
                short: The time a dosing period ends
                index: 238
                elements:
                  url:
                    pattern: {type: Uri, value: endtime}
                    index: 239
                  value:
                    choices: [valueDate, valueDateTime]
                    index: 241
                  valueDate: {type: date, choiceOf: value, index: 242}
                  valueDateTime: {type: dateTime, choiceOf: value, index: 243}
              dosingrule:
                url: dosingrule
                short: Rule related to dosing
                index: 244
                extensions:
                  dosebasedon:
                    url: dosebasedon
                    short: Coding identifying what dose is based on
                    _required: true
                    index: 246
                    elements:
                      url:
                        pattern: {type: Uri, value: dosebasedon}
                        index: 247
                      value:
                        choices: [valueCodeableConcept]
                        index: 249
                      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 250}
                      value[x]:
                        elements:
                          coding:
                            elements:
                              system:
                                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9080'}
                                index: 251
                  text:
                    url: text
                    index: 252
                    elements:
                      url:
                        pattern: {type: Uri, value: text}
                        index: 253
                      value:
                        choices: [valueString]
                        index: 255
                      valueString: {type: string, choiceOf: value, index: 256}
                elements:
                  extension:
                    index: 245
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        dosebasedon:
                          match: {url: dosebasedon}
                          schema:
                            short: Coding identifying what dose is based on
                            _required: true
                            index: 246
                            elements:
                              url:
                                pattern: {type: Uri, value: dosebasedon}
                                index: 247
                              value:
                                choices: [valueCodeableConcept]
                                index: 249
                              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 250}
                              value[x]:
                                elements:
                                  coding:
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9080'}
                                        index: 251
                        text:
                          match: {url: text}
                          schema:
                            index: 252
                            elements:
                              url:
                                pattern: {type: Uri, value: text}
                                index: 253
                              value:
                                choices: [valueString]
                                index: 255
                              valueString: {type: string, choiceOf: value, index: 256}
                  url:
                    pattern: {type: Uri, value: dosingrule}
                    index: 257
                  value:
                    choices: []
                    index: 259
              repeatingdosage:
                url: repeatingdosage
                _required: true
                index: 260
                extensions:
                  amount:
                    url: amount
                    _required: true
                    index: 262
                    elements:
                      url:
                        pattern: {type: Uri, value: amount}
                        index: 263
                      value:
                        choices: [valueQuantity]
                        index: 265
                      valueQuantity: {type: Quantity, choiceOf: value, index: 266}
                      value[x]:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7480'}
                            index: 267
                  interval:
                    url: interval
                    short: how often to repeat dosing
                    index: 268
                    elements:
                      url:
                        pattern: {type: Uri, value: interval}
                        index: 269
                      value:
                        choices: [valueQuantity]
                        index: 271
                      valueQuantity: {type: Quantity, choiceOf: value, index: 272}
                      value[x]:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                            index: 273
                  infusionspeed:
                    url: infusionspeed
                    index: 274
                    extensions:
                      volum:
                        url: volum
                        _required: true
                        index: 276
                        elements:
                          url:
                            pattern: {type: Uri, value: volum}
                            index: 277
                          value:
                            choices: [valueQuantity]
                            index: 279
                          valueQuantity: {type: Quantity, choiceOf: value, index: 280}
                      timeunit:
                        url: timeunit
                        _required: true
                        index: 281
                        elements:
                          url:
                            pattern: {type: Uri, value: timeunit}
                            index: 282
                          value:
                            choices: [valueCodeableConcept]
                            index: 284
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 285}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                                    index: 286
                    elements:
                      extension:
                        index: 275
                        slicing:
                          rules: open
                          discriminator:
                          - {path: url, type: value}
                          min: null
                          slices:
                            volum:
                              match: {url: volum}
                              schema:
                                _required: true
                                index: 276
                                elements:
                                  url:
                                    pattern: {type: Uri, value: volum}
                                    index: 277
                                  value:
                                    choices: [valueQuantity]
                                    index: 279
                                  valueQuantity: {type: Quantity, choiceOf: value, index: 280}
                            timeunit:
                              match: {url: timeunit}
                              schema:
                                _required: true
                                index: 281
                                elements:
                                  url:
                                    pattern: {type: Uri, value: timeunit}
                                    index: 282
                                  value:
                                    choices: [valueCodeableConcept]
                                    index: 284
                                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 285}
                                  value[x]:
                                    elements:
                                      coding:
                                        elements:
                                          system:
                                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                                            index: 286
                      url:
                        pattern: {type: Uri, value: infusionspeed}
                        index: 287
                      value:
                        choices: []
                        index: 289
                  time:
                    url: time
                    index: 290
                    elements:
                      url:
                        pattern: {type: Uri, value: time}
                        index: 291
                      value:
                        choices: [valueTime]
                        index: 293
                      valueTime: {type: time, choiceOf: value, index: 294}
                  timerange:
                    url: timerange
                    index: 295
                    elements:
                      url:
                        pattern: {type: Uri, value: timerange}
                        index: 296
                      value:
                        choices: [valueCodeableConcept]
                        index: 298
                      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 299}
                      value[x]:
                        elements:
                          coding:
                            elements:
                              system:
                                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.8325'}
                                index: 300
                  accurate:
                    url: accurate
                    _required: true
                    index: 301
                    elements:
                      url:
                        pattern: {type: Uri, value: accurate}
                        index: 302
                      value:
                        choices: [valueBoolean]
                        index: 304
                      valueBoolean: {type: boolean, choiceOf: value, index: 305}
                  dosingsequence:
                    url: dosingsequence
                    index: 306
                    extensions:
                      weekdays:
                        url: weekdays
                        index: 308
                        elements:
                          url:
                            pattern: {type: Uri, value: weekdays}
                            index: 309
                          value:
                            choices: [valueCodeableConcept]
                            index: 311
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 312}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9082'}
                                    index: 313
                      dayson:
                        url: dayson
                        index: 314
                        elements:
                          url:
                            pattern: {type: Uri, value: dayson}
                            index: 315
                          value:
                            choices: [valueInteger]
                            index: 317
                          valueInteger: {type: integer, choiceOf: value, index: 318}
                      daysoff:
                        url: daysoff
                        index: 319
                        elements:
                          url:
                            pattern: {type: Uri, value: daysoff}
                            index: 320
                          value:
                            choices: [valueInteger]
                            index: 322
                          valueInteger: {type: integer, choiceOf: value, index: 323}
                    elements:
                      extension:
                        index: 307
                        slicing:
                          rules: open
                          discriminator:
                          - {path: url, type: value}
                          min: null
                          slices:
                            weekdays:
                              match: {url: weekdays}
                              schema:
                                index: 308
                                elements:
                                  url:
                                    pattern: {type: Uri, value: weekdays}
                                    index: 309
                                  value:
                                    choices: [valueCodeableConcept]
                                    index: 311
                                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 312}
                                  value[x]:
                                    elements:
                                      coding:
                                        elements:
                                          system:
                                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9082'}
                                            index: 313
                            dayson:
                              match: {url: dayson}
                              schema:
                                index: 314
                                elements:
                                  url:
                                    pattern: {type: Uri, value: dayson}
                                    index: 315
                                  value:
                                    choices: [valueInteger]
                                    index: 317
                                  valueInteger: {type: integer, choiceOf: value, index: 318}
                            daysoff:
                              match: {url: daysoff}
                              schema:
                                index: 319
                                elements:
                                  url:
                                    pattern: {type: Uri, value: daysoff}
                                    index: 320
                                  value:
                                    choices: [valueInteger]
                                    index: 322
                                  valueInteger: {type: integer, choiceOf: value, index: 323}
                      url:
                        pattern: {type: Uri, value: dosingsequence}
                        index: 324
                      value:
                        choices: []
                        index: 326
                elements:
                  extension:
                    index: 261
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        amount:
                          match: {url: amount}
                          schema:
                            _required: true
                            index: 262
                            elements:
                              url:
                                pattern: {type: Uri, value: amount}
                                index: 263
                              value:
                                choices: [valueQuantity]
                                index: 265
                              valueQuantity: {type: Quantity, choiceOf: value, index: 266}
                              value[x]:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7480'}
                                    index: 267
                        interval:
                          match: {url: interval}
                          schema:
                            short: how often to repeat dosing
                            index: 268
                            elements:
                              url:
                                pattern: {type: Uri, value: interval}
                                index: 269
                              value:
                                choices: [valueQuantity]
                                index: 271
                              valueQuantity: {type: Quantity, choiceOf: value, index: 272}
                              value[x]:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                                    index: 273
                        infusionspeed:
                          match: {url: infusionspeed}
                          schema:
                            index: 274
                            extensions:
                              volum:
                                url: volum
                                _required: true
                                index: 276
                                elements:
                                  url:
                                    pattern: {type: Uri, value: volum}
                                    index: 277
                                  value:
                                    choices: [valueQuantity]
                                    index: 279
                                  valueQuantity: {type: Quantity, choiceOf: value, index: 280}
                              timeunit:
                                url: timeunit
                                _required: true
                                index: 281
                                elements:
                                  url:
                                    pattern: {type: Uri, value: timeunit}
                                    index: 282
                                  value:
                                    choices: [valueCodeableConcept]
                                    index: 284
                                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 285}
                                  value[x]:
                                    elements:
                                      coding:
                                        elements:
                                          system:
                                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                                            index: 286
                            elements:
                              extension:
                                index: 275
                                slicing:
                                  rules: open
                                  discriminator:
                                  - {path: url, type: value}
                                  min: null
                                  slices:
                                    volum:
                                      match: {url: volum}
                                      schema:
                                        _required: true
                                        index: 276
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: volum}
                                            index: 277
                                          value:
                                            choices: [valueQuantity]
                                            index: 279
                                          valueQuantity: {type: Quantity, choiceOf: value, index: 280}
                                    timeunit:
                                      match: {url: timeunit}
                                      schema:
                                        _required: true
                                        index: 281
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: timeunit}
                                            index: 282
                                          value:
                                            choices: [valueCodeableConcept]
                                            index: 284
                                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 285}
                                          value[x]:
                                            elements:
                                              coding:
                                                elements:
                                                  system:
                                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                                                    index: 286
                              url:
                                pattern: {type: Uri, value: infusionspeed}
                                index: 287
                              value:
                                choices: []
                                index: 289
                        time:
                          match: {url: time}
                          schema:
                            index: 290
                            elements:
                              url:
                                pattern: {type: Uri, value: time}
                                index: 291
                              value:
                                choices: [valueTime]
                                index: 293
                              valueTime: {type: time, choiceOf: value, index: 294}
                        timerange:
                          match: {url: timerange}
                          schema:
                            index: 295
                            elements:
                              url:
                                pattern: {type: Uri, value: timerange}
                                index: 296
                              value:
                                choices: [valueCodeableConcept]
                                index: 298
                              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 299}
                              value[x]:
                                elements:
                                  coding:
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.8325'}
                                        index: 300
                        accurate:
                          match: {url: accurate}
                          schema:
                            _required: true
                            index: 301
                            elements:
                              url:
                                pattern: {type: Uri, value: accurate}
                                index: 302
                              value:
                                choices: [valueBoolean]
                                index: 304
                              valueBoolean: {type: boolean, choiceOf: value, index: 305}
                        dosingsequence:
                          match: {url: dosingsequence}
                          schema:
                            index: 306
                            extensions:
                              weekdays:
                                url: weekdays
                                index: 308
                                elements:
                                  url:
                                    pattern: {type: Uri, value: weekdays}
                                    index: 309
                                  value:
                                    choices: [valueCodeableConcept]
                                    index: 311
                                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 312}
                                  value[x]:
                                    elements:
                                      coding:
                                        elements:
                                          system:
                                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9082'}
                                            index: 313
                              dayson:
                                url: dayson
                                index: 314
                                elements:
                                  url:
                                    pattern: {type: Uri, value: dayson}
                                    index: 315
                                  value:
                                    choices: [valueInteger]
                                    index: 317
                                  valueInteger: {type: integer, choiceOf: value, index: 318}
                              daysoff:
                                url: daysoff
                                index: 319
                                elements:
                                  url:
                                    pattern: {type: Uri, value: daysoff}
                                    index: 320
                                  value:
                                    choices: [valueInteger]
                                    index: 322
                                  valueInteger: {type: integer, choiceOf: value, index: 323}
                            elements:
                              extension:
                                index: 307
                                slicing:
                                  rules: open
                                  discriminator:
                                  - {path: url, type: value}
                                  min: null
                                  slices:
                                    weekdays:
                                      match: {url: weekdays}
                                      schema:
                                        index: 308
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: weekdays}
                                            index: 309
                                          value:
                                            choices: [valueCodeableConcept]
                                            index: 311
                                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 312}
                                          value[x]:
                                            elements:
                                              coding:
                                                elements:
                                                  system:
                                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9082'}
                                                    index: 313
                                    dayson:
                                      match: {url: dayson}
                                      schema:
                                        index: 314
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: dayson}
                                            index: 315
                                          value:
                                            choices: [valueInteger]
                                            index: 317
                                          valueInteger: {type: integer, choiceOf: value, index: 318}
                                    daysoff:
                                      match: {url: daysoff}
                                      schema:
                                        index: 319
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: daysoff}
                                            index: 320
                                          value:
                                            choices: [valueInteger]
                                            index: 322
                                          valueInteger: {type: integer, choiceOf: value, index: 323}
                              url:
                                pattern: {type: Uri, value: dosingsequence}
                                index: 324
                              value:
                                choices: []
                                index: 326
                  url:
                    pattern: {type: Uri, value: repeatingdosage}
                    index: 327
                  value:
                    choices: []
                    index: 329
            elements:
              extension:
                index: 231
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    starttime:
                      match: {url: starttime}
                      schema:
                        short: The time a dosing period starts
                        index: 232
                        elements:
                          url:
                            pattern: {type: Uri, value: starttime}
                            index: 233
                          value:
                            choices: [valueDate, valueDateTime]
                            index: 235
                          valueDate: {type: date, choiceOf: value, index: 236}
                          valueDateTime: {type: dateTime, choiceOf: value, index: 237}
                    endtime:
                      match: {url: endtime}
                      schema:
                        short: The time a dosing period ends
                        index: 238
                        elements:
                          url:
                            pattern: {type: Uri, value: endtime}
                            index: 239
                          value:
                            choices: [valueDate, valueDateTime]
                            index: 241
                          valueDate: {type: date, choiceOf: value, index: 242}
                          valueDateTime: {type: dateTime, choiceOf: value, index: 243}
                    dosingrule:
                      match: {url: dosingrule}
                      schema:
                        short: Rule related to dosing
                        index: 244
                        extensions:
                          dosebasedon:
                            url: dosebasedon
                            short: Coding identifying what dose is based on
                            _required: true
                            index: 246
                            elements:
                              url:
                                pattern: {type: Uri, value: dosebasedon}
                                index: 247
                              value:
                                choices: [valueCodeableConcept]
                                index: 249
                              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 250}
                              value[x]:
                                elements:
                                  coding:
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9080'}
                                        index: 251
                          text:
                            url: text
                            index: 252
                            elements:
                              url:
                                pattern: {type: Uri, value: text}
                                index: 253
                              value:
                                choices: [valueString]
                                index: 255
                              valueString: {type: string, choiceOf: value, index: 256}
                        elements:
                          extension:
                            index: 245
                            slicing:
                              rules: open
                              discriminator:
                              - {path: url, type: value}
                              min: null
                              slices:
                                dosebasedon:
                                  match: {url: dosebasedon}
                                  schema:
                                    short: Coding identifying what dose is based on
                                    _required: true
                                    index: 246
                                    elements:
                                      url:
                                        pattern: {type: Uri, value: dosebasedon}
                                        index: 247
                                      value:
                                        choices: [valueCodeableConcept]
                                        index: 249
                                      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 250}
                                      value[x]:
                                        elements:
                                          coding:
                                            elements:
                                              system:
                                                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9080'}
                                                index: 251
                                text:
                                  match: {url: text}
                                  schema:
                                    index: 252
                                    elements:
                                      url:
                                        pattern: {type: Uri, value: text}
                                        index: 253
                                      value:
                                        choices: [valueString]
                                        index: 255
                                      valueString: {type: string, choiceOf: value, index: 256}
                          url:
                            pattern: {type: Uri, value: dosingrule}
                            index: 257
                          value:
                            choices: []
                            index: 259
                    repeatingdosage:
                      match: {url: repeatingdosage}
                      schema:
                        _required: true
                        index: 260
                        extensions:
                          amount:
                            url: amount
                            _required: true
                            index: 262
                            elements:
                              url:
                                pattern: {type: Uri, value: amount}
                                index: 263
                              value:
                                choices: [valueQuantity]
                                index: 265
                              valueQuantity: {type: Quantity, choiceOf: value, index: 266}
                              value[x]:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7480'}
                                    index: 267
                          interval:
                            url: interval
                            short: how often to repeat dosing
                            index: 268
                            elements:
                              url:
                                pattern: {type: Uri, value: interval}
                                index: 269
                              value:
                                choices: [valueQuantity]
                                index: 271
                              valueQuantity: {type: Quantity, choiceOf: value, index: 272}
                              value[x]:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                                    index: 273
                          infusionspeed:
                            url: infusionspeed
                            index: 274
                            extensions:
                              volum:
                                url: volum
                                _required: true
                                index: 276
                                elements:
                                  url:
                                    pattern: {type: Uri, value: volum}
                                    index: 277
                                  value:
                                    choices: [valueQuantity]
                                    index: 279
                                  valueQuantity: {type: Quantity, choiceOf: value, index: 280}
                              timeunit:
                                url: timeunit
                                _required: true
                                index: 281
                                elements:
                                  url:
                                    pattern: {type: Uri, value: timeunit}
                                    index: 282
                                  value:
                                    choices: [valueCodeableConcept]
                                    index: 284
                                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 285}
                                  value[x]:
                                    elements:
                                      coding:
                                        elements:
                                          system:
                                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                                            index: 286
                            elements:
                              extension:
                                index: 275
                                slicing:
                                  rules: open
                                  discriminator:
                                  - {path: url, type: value}
                                  min: null
                                  slices:
                                    volum:
                                      match: {url: volum}
                                      schema:
                                        _required: true
                                        index: 276
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: volum}
                                            index: 277
                                          value:
                                            choices: [valueQuantity]
                                            index: 279
                                          valueQuantity: {type: Quantity, choiceOf: value, index: 280}
                                    timeunit:
                                      match: {url: timeunit}
                                      schema:
                                        _required: true
                                        index: 281
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: timeunit}
                                            index: 282
                                          value:
                                            choices: [valueCodeableConcept]
                                            index: 284
                                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 285}
                                          value[x]:
                                            elements:
                                              coding:
                                                elements:
                                                  system:
                                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                                                    index: 286
                              url:
                                pattern: {type: Uri, value: infusionspeed}
                                index: 287
                              value:
                                choices: []
                                index: 289
                          time:
                            url: time
                            index: 290
                            elements:
                              url:
                                pattern: {type: Uri, value: time}
                                index: 291
                              value:
                                choices: [valueTime]
                                index: 293
                              valueTime: {type: time, choiceOf: value, index: 294}
                          timerange:
                            url: timerange
                            index: 295
                            elements:
                              url:
                                pattern: {type: Uri, value: timerange}
                                index: 296
                              value:
                                choices: [valueCodeableConcept]
                                index: 298
                              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 299}
                              value[x]:
                                elements:
                                  coding:
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.8325'}
                                        index: 300
                          accurate:
                            url: accurate
                            _required: true
                            index: 301
                            elements:
                              url:
                                pattern: {type: Uri, value: accurate}
                                index: 302
                              value:
                                choices: [valueBoolean]
                                index: 304
                              valueBoolean: {type: boolean, choiceOf: value, index: 305}
                          dosingsequence:
                            url: dosingsequence
                            index: 306
                            extensions:
                              weekdays:
                                url: weekdays
                                index: 308
                                elements:
                                  url:
                                    pattern: {type: Uri, value: weekdays}
                                    index: 309
                                  value:
                                    choices: [valueCodeableConcept]
                                    index: 311
                                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 312}
                                  value[x]:
                                    elements:
                                      coding:
                                        elements:
                                          system:
                                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9082'}
                                            index: 313
                              dayson:
                                url: dayson
                                index: 314
                                elements:
                                  url:
                                    pattern: {type: Uri, value: dayson}
                                    index: 315
                                  value:
                                    choices: [valueInteger]
                                    index: 317
                                  valueInteger: {type: integer, choiceOf: value, index: 318}
                              daysoff:
                                url: daysoff
                                index: 319
                                elements:
                                  url:
                                    pattern: {type: Uri, value: daysoff}
                                    index: 320
                                  value:
                                    choices: [valueInteger]
                                    index: 322
                                  valueInteger: {type: integer, choiceOf: value, index: 323}
                            elements:
                              extension:
                                index: 307
                                slicing:
                                  rules: open
                                  discriminator:
                                  - {path: url, type: value}
                                  min: null
                                  slices:
                                    weekdays:
                                      match: {url: weekdays}
                                      schema:
                                        index: 308
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: weekdays}
                                            index: 309
                                          value:
                                            choices: [valueCodeableConcept]
                                            index: 311
                                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 312}
                                          value[x]:
                                            elements:
                                              coding:
                                                elements:
                                                  system:
                                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9082'}
                                                    index: 313
                                    dayson:
                                      match: {url: dayson}
                                      schema:
                                        index: 314
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: dayson}
                                            index: 315
                                          value:
                                            choices: [valueInteger]
                                            index: 317
                                          valueInteger: {type: integer, choiceOf: value, index: 318}
                                    daysoff:
                                      match: {url: daysoff}
                                      schema:
                                        index: 319
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: daysoff}
                                            index: 320
                                          value:
                                            choices: [valueInteger]
                                            index: 322
                                          valueInteger: {type: integer, choiceOf: value, index: 323}
                              url:
                                pattern: {type: Uri, value: dosingsequence}
                                index: 324
                              value:
                                choices: []
                                index: 326
                        elements:
                          extension:
                            index: 261
                            slicing:
                              rules: open
                              discriminator:
                              - {path: url, type: value}
                              min: null
                              slices:
                                amount:
                                  match: {url: amount}
                                  schema:
                                    _required: true
                                    index: 262
                                    elements:
                                      url:
                                        pattern: {type: Uri, value: amount}
                                        index: 263
                                      value:
                                        choices: [valueQuantity]
                                        index: 265
                                      valueQuantity: {type: Quantity, choiceOf: value, index: 266}
                                      value[x]:
                                        elements:
                                          system:
                                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7480'}
                                            index: 267
                                interval:
                                  match: {url: interval}
                                  schema:
                                    short: how often to repeat dosing
                                    index: 268
                                    elements:
                                      url:
                                        pattern: {type: Uri, value: interval}
                                        index: 269
                                      value:
                                        choices: [valueQuantity]
                                        index: 271
                                      valueQuantity: {type: Quantity, choiceOf: value, index: 272}
                                      value[x]:
                                        elements:
                                          system:
                                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                                            index: 273
                                infusionspeed:
                                  match: {url: infusionspeed}
                                  schema:
                                    index: 274
                                    extensions:
                                      volum:
                                        url: volum
                                        _required: true
                                        index: 276
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: volum}
                                            index: 277
                                          value:
                                            choices: [valueQuantity]
                                            index: 279
                                          valueQuantity: {type: Quantity, choiceOf: value, index: 280}
                                      timeunit:
                                        url: timeunit
                                        _required: true
                                        index: 281
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: timeunit}
                                            index: 282
                                          value:
                                            choices: [valueCodeableConcept]
                                            index: 284
                                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 285}
                                          value[x]:
                                            elements:
                                              coding:
                                                elements:
                                                  system:
                                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                                                    index: 286
                                    elements:
                                      extension:
                                        index: 275
                                        slicing:
                                          rules: open
                                          discriminator:
                                          - {path: url, type: value}
                                          min: null
                                          slices:
                                            volum:
                                              match: {url: volum}
                                              schema:
                                                _required: true
                                                index: 276
                                                elements:
                                                  url:
                                                    pattern: {type: Uri, value: volum}
                                                    index: 277
                                                  value:
                                                    choices: [valueQuantity]
                                                    index: 279
                                                  valueQuantity: {type: Quantity, choiceOf: value, index: 280}
                                            timeunit:
                                              match: {url: timeunit}
                                              schema:
                                                _required: true
                                                index: 281
                                                elements:
                                                  url:
                                                    pattern: {type: Uri, value: timeunit}
                                                    index: 282
                                                  value:
                                                    choices: [valueCodeableConcept]
                                                    index: 284
                                                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 285}
                                                  value[x]:
                                                    elements:
                                                      coding:
                                                        elements:
                                                          system:
                                                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                                                            index: 286
                                      url:
                                        pattern: {type: Uri, value: infusionspeed}
                                        index: 287
                                      value:
                                        choices: []
                                        index: 289
                                time:
                                  match: {url: time}
                                  schema:
                                    index: 290
                                    elements:
                                      url:
                                        pattern: {type: Uri, value: time}
                                        index: 291
                                      value:
                                        choices: [valueTime]
                                        index: 293
                                      valueTime: {type: time, choiceOf: value, index: 294}
                                timerange:
                                  match: {url: timerange}
                                  schema:
                                    index: 295
                                    elements:
                                      url:
                                        pattern: {type: Uri, value: timerange}
                                        index: 296
                                      value:
                                        choices: [valueCodeableConcept]
                                        index: 298
                                      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 299}
                                      value[x]:
                                        elements:
                                          coding:
                                            elements:
                                              system:
                                                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.8325'}
                                                index: 300
                                accurate:
                                  match: {url: accurate}
                                  schema:
                                    _required: true
                                    index: 301
                                    elements:
                                      url:
                                        pattern: {type: Uri, value: accurate}
                                        index: 302
                                      value:
                                        choices: [valueBoolean]
                                        index: 304
                                      valueBoolean: {type: boolean, choiceOf: value, index: 305}
                                dosingsequence:
                                  match: {url: dosingsequence}
                                  schema:
                                    index: 306
                                    extensions:
                                      weekdays:
                                        url: weekdays
                                        index: 308
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: weekdays}
                                            index: 309
                                          value:
                                            choices: [valueCodeableConcept]
                                            index: 311
                                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 312}
                                          value[x]:
                                            elements:
                                              coding:
                                                elements:
                                                  system:
                                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9082'}
                                                    index: 313
                                      dayson:
                                        url: dayson
                                        index: 314
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: dayson}
                                            index: 315
                                          value:
                                            choices: [valueInteger]
                                            index: 317
                                          valueInteger: {type: integer, choiceOf: value, index: 318}
                                      daysoff:
                                        url: daysoff
                                        index: 319
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: daysoff}
                                            index: 320
                                          value:
                                            choices: [valueInteger]
                                            index: 322
                                          valueInteger: {type: integer, choiceOf: value, index: 323}
                                    elements:
                                      extension:
                                        index: 307
                                        slicing:
                                          rules: open
                                          discriminator:
                                          - {path: url, type: value}
                                          min: null
                                          slices:
                                            weekdays:
                                              match: {url: weekdays}
                                              schema:
                                                index: 308
                                                elements:
                                                  url:
                                                    pattern: {type: Uri, value: weekdays}
                                                    index: 309
                                                  value:
                                                    choices: [valueCodeableConcept]
                                                    index: 311
                                                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 312}
                                                  value[x]:
                                                    elements:
                                                      coding:
                                                        elements:
                                                          system:
                                                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9082'}
                                                            index: 313
                                            dayson:
                                              match: {url: dayson}
                                              schema:
                                                index: 314
                                                elements:
                                                  url:
                                                    pattern: {type: Uri, value: dayson}
                                                    index: 315
                                                  value:
                                                    choices: [valueInteger]
                                                    index: 317
                                                  valueInteger: {type: integer, choiceOf: value, index: 318}
                                            daysoff:
                                              match: {url: daysoff}
                                              schema:
                                                index: 319
                                                elements:
                                                  url:
                                                    pattern: {type: Uri, value: daysoff}
                                                    index: 320
                                                  value:
                                                    choices: [valueInteger]
                                                    index: 322
                                                  valueInteger: {type: integer, choiceOf: value, index: 323}
                                      url:
                                        pattern: {type: Uri, value: dosingsequence}
                                        index: 324
                                      value:
                                        choices: []
                                        index: 326
                          url:
                            pattern: {type: Uri, value: repeatingdosage}
                            index: 327
                          value:
                            choices: []
                            index: 329
              url:
                pattern: {type: Uri, value: ereseptdosing}
                index: 330
              value:
                choices: []
                index: 332
        lastchanged:
          match: {url: lastchanged}
          schema:
            index: 358
            elements:
              url:
                pattern: {type: Uri, value: lastchanged}
                index: 359
              value:
                choices: [valueDateTime]
                index: 361
              valueDateTime: {type: dateTime, choiceOf: value, index: 362}
        dispatchrequest:
          match: {url: dispatchrequest}
          schema:
            short: Request for delivery to patient
            index: 57
            extensions:
              condition:
                url: condition
                short: Maps to e-resept Vilkar
                _required: true
                index: 59
                elements:
                  url:
                    pattern: {type: Uri, value: condition}
                    index: 60
                  value:
                    choices: [valueBoolean]
                    index: 62
                  valueBoolean: {type: boolean, choiceOf: value, index: 63}
              metod:
                url: metod
                short: Maps to e-resept MetodeEkspedering
                _required: true
                index: 64
                elements:
                  url:
                    pattern: {type: Uri, value: metod}
                    index: 65
                  value:
                    choices: [valueCodeableConcept]
                    index: 67
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 68}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7404'}
                            index: 69
              organization:
                url: organization
                short: Maps to e-resept Utleverer
                _required: true
                index: 70
                elements:
                  url:
                    pattern: {type: Uri, value: organization}
                    index: 71
                  value:
                    choices: [valueString]
                    index: 73
                  valueString: {type: string, choiceOf: value, index: 74}
              contactperson:
                url: contactperson
                short: Maps to e-resept Kontaktperson
                _required: true
                index: 75
                elements:
                  url:
                    pattern: {type: Uri, value: contactperson}
                    index: 76
                  value:
                    choices: [valueString]
                    index: 78
                  valueString: {type: string, choiceOf: value, index: 79}
              note:
                url: note
                short: Maps to e-resept Merkand in Ekspederingsanmodning
                index: 80
                elements:
                  url:
                    pattern: {type: Uri, value: note}
                    index: 81
                  value:
                    choices: [valueString]
                    index: 83
                  valueString: {type: string, choiceOf: value, index: 84}
              orgnum:
                url: orgnum
                short: Maps to e-resept OrgNrUtleverer
                _required: true
                index: 85
                elements:
                  url:
                    pattern: {type: Uri, value: orgnum}
                    index: 86
                  value:
                    choices: [valueString]
                    index: 88
                  valueString: {type: string, choiceOf: value, index: 89}
              orgname:
                url: orgname
                short: Maps to e-resept UtlevererNavn
                _required: true
                index: 90
                elements:
                  url:
                    pattern: {type: Uri, value: orgname}
                    index: 91
                  value:
                    choices: [valueString]
                    index: 93
                  valueString: {type: string, choiceOf: value, index: 94}
              address:
                url: address
                index: 95
                elements:
                  url:
                    pattern: {type: Uri, value: address}
                    index: 96
                  value:
                    choices: [valueAddress]
                    index: 98
                  valueAddress: {type: Address, choiceOf: value, index: 99}
            elements:
              extension:
                index: 58
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    condition:
                      match: {url: condition}
                      schema:
                        short: Maps to e-resept Vilkar
                        _required: true
                        index: 59
                        elements:
                          url:
                            pattern: {type: Uri, value: condition}
                            index: 60
                          value:
                            choices: [valueBoolean]
                            index: 62
                          valueBoolean: {type: boolean, choiceOf: value, index: 63}
                    metod:
                      match: {url: metod}
                      schema:
                        short: Maps to e-resept MetodeEkspedering
                        _required: true
                        index: 64
                        elements:
                          url:
                            pattern: {type: Uri, value: metod}
                            index: 65
                          value:
                            choices: [valueCodeableConcept]
                            index: 67
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 68}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7404'}
                                    index: 69
                    organization:
                      match: {url: organization}
                      schema:
                        short: Maps to e-resept Utleverer
                        _required: true
                        index: 70
                        elements:
                          url:
                            pattern: {type: Uri, value: organization}
                            index: 71
                          value:
                            choices: [valueString]
                            index: 73
                          valueString: {type: string, choiceOf: value, index: 74}
                    contactperson:
                      match: {url: contactperson}
                      schema:
                        short: Maps to e-resept Kontaktperson
                        _required: true
                        index: 75
                        elements:
                          url:
                            pattern: {type: Uri, value: contactperson}
                            index: 76
                          value:
                            choices: [valueString]
                            index: 78
                          valueString: {type: string, choiceOf: value, index: 79}
                    note:
                      match: {url: note}
                      schema:
                        short: Maps to e-resept Merkand in Ekspederingsanmodning
                        index: 80
                        elements:
                          url:
                            pattern: {type: Uri, value: note}
                            index: 81
                          value:
                            choices: [valueString]
                            index: 83
                          valueString: {type: string, choiceOf: value, index: 84}
                    orgnum:
                      match: {url: orgnum}
                      schema:
                        short: Maps to e-resept OrgNrUtleverer
                        _required: true
                        index: 85
                        elements:
                          url:
                            pattern: {type: Uri, value: orgnum}
                            index: 86
                          value:
                            choices: [valueString]
                            index: 88
                          valueString: {type: string, choiceOf: value, index: 89}
                    orgname:
                      match: {url: orgname}
                      schema:
                        short: Maps to e-resept UtlevererNavn
                        _required: true
                        index: 90
                        elements:
                          url:
                            pattern: {type: Uri, value: orgname}
                            index: 91
                          value:
                            choices: [valueString]
                            index: 93
                          valueString: {type: string, choiceOf: value, index: 94}
                    address:
                      match: {url: address}
                      schema:
                        index: 95
                        elements:
                          url:
                            pattern: {type: Uri, value: address}
                            index: 96
                          value:
                            choices: [valueAddress]
                            index: 98
                          valueAddress: {type: Address, choiceOf: value, index: 99}
              url:
                pattern: {type: Uri, value: dispatchrequest}
                index: 100
              value:
                choices: []
                index: 102
        dischargedhospital:
          match: {url: dischargedhospital}
          schema:
            short: Discharged from hosptital
            index: 108
            elements:
              url:
                pattern: {type: Uri, value: dischargedhospital}
                index: 109
              value:
                choices: [valueBoolean]
                index: 111
              valueBoolean: {type: boolean, choiceOf: value, index: 112}
        festUpdate:
          match: {url: festUpdate}
          schema:
            short: Version of FEST
            index: 11
            elements:
              url:
                pattern: {type: Uri, value: festUpdate}
                index: 12
              value:
                choices: [valueDateTime]
                index: 14
              valueDateTime: {type: dateTime, choiceOf: value, index: 15}
        reseptdate:
          match: {url: reseptdate}
          schema:
            short: Date the resept was signed
            index: 1
            elements:
              url:
                pattern: {type: Uri, value: reseptdate}
                index: 2
              value:
                choices: [valueDate]
                index: 4
              valueDate: {type: date, choiceOf: value, index: 5}
        dssn:
          match: {url: dssn}
          schema:
            index: 156
            elements:
              url:
                pattern: {type: Uri, value: dssn}
                index: 157
              value:
                choices: [valueString]
                index: 159
              valueString: {type: string, choiceOf: value, index: 160}
        freecard:
          match: {url: freecard}
          schema:
            short: Refund card
            index: 26
            elements:
              url:
                pattern: {type: Uri, value: freecard}
                index: 27
              value:
                choices: [valueBoolean]
                index: 29
              valueBoolean: {type: boolean, choiceOf: value, index: 30}
        helfoapplication:
          match: {url: helfoapplication}
          schema:
            short: Individuel application to Helfo
            index: 21
            elements:
              url:
                pattern: {type: Uri, value: helfoapplication}
                index: 22
              value:
                choices: [valueBoolean]
                index: 24
              valueBoolean: {type: boolean, choiceOf: value, index: 25}
        note:
          match: {url: note}
          schema:
            short: Note from prescriber to pharmacy
            index: 199
            elements:
              url:
                pattern: {type: Uri, value: note}
                index: 200
              value:
                choices: [valueString]
                index: 202
              valueString: {type: string, choiceOf: value, index: 203}
        rfstatus:
          match: {url: rfstatus}
          schema:
            short: Identifies if in RF and status in RF
            index: 161
            extensions:
              status:
                url: status
                short: Status for prescription in RF
                index: 163
                elements:
                  url:
                    pattern: {type: Uri, value: status}
                    index: 164
                  value:
                    choices: [valueCodeableConcept]
                    index: 166
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 167}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7408'}
                            index: 168
              nameDispenser:
                url: nameDispenser
                short: Dispenser that are dispensing product
                index: 169
                elements:
                  url:
                    pattern: {type: Uri, value: nameDispenser}
                    index: 170
                  value:
                    choices: [valueString]
                    index: 172
                  valueString: {type: string, choiceOf: value, index: 173}
              sentSLVDate:
                url: sentSLVDate
                short: Date when application sent to SLV
                index: 174
                elements:
                  url:
                    pattern: {type: Uri, value: sentSLVDate}
                    index: 175
                  value:
                    choices: [valueDate]
                    index: 177
                  valueDate: {type: date, choiceOf: value, index: 178}
              statusSlvApplication:
                url: statusSlvApplication
                short: Status regarding SLV application
                index: 179
                elements:
                  url:
                    pattern: {type: Uri, value: statusSlvApplication}
                    index: 180
                  value:
                    choices: [valueCodeableConcept]
                    index: 182
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 183}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7436'}
                            index: 184
              recallStatus:
                url: recallStatus
                short: Identify if allredy recalled if RF status is "Under ekspedering"
                index: 185
                elements:
                  url:
                    pattern: {type: Uri, value: recallStatus}
                    index: 186
                  value:
                    choices: [valueBoolean]
                    index: 188
                  valueBoolean: {type: boolean, choiceOf: value, index: 189}
              recallReason:
                url: recallReason
                short: Reason given for recalling resept
                index: 190
                elements:
                  url:
                    pattern: {type: Uri, value: recallReason}
                    index: 191
                  value:
                    choices: [valueCodeableConcept]
                    index: 193
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 194}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7500'}
                            index: 195
            elements:
              extension:
                index: 162
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    status:
                      match: {url: status}
                      schema:
                        short: Status for prescription in RF
                        index: 163
                        elements:
                          url:
                            pattern: {type: Uri, value: status}
                            index: 164
                          value:
                            choices: [valueCodeableConcept]
                            index: 166
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 167}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7408'}
                                    index: 168
                    nameDispenser:
                      match: {url: nameDispenser}
                      schema:
                        short: Dispenser that are dispensing product
                        index: 169
                        elements:
                          url:
                            pattern: {type: Uri, value: nameDispenser}
                            index: 170
                          value:
                            choices: [valueString]
                            index: 172
                          valueString: {type: string, choiceOf: value, index: 173}
                    sentSLVDate:
                      match: {url: sentSLVDate}
                      schema:
                        short: Date when application sent to SLV
                        index: 174
                        elements:
                          url:
                            pattern: {type: Uri, value: sentSLVDate}
                            index: 175
                          value:
                            choices: [valueDate]
                            index: 177
                          valueDate: {type: date, choiceOf: value, index: 178}
                    statusSlvApplication:
                      match: {url: statusSlvApplication}
                      schema:
                        short: Status regarding SLV application
                        index: 179
                        elements:
                          url:
                            pattern: {type: Uri, value: statusSlvApplication}
                            index: 180
                          value:
                            choices: [valueCodeableConcept]
                            index: 182
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 183}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7436'}
                                    index: 184
                    recallStatus:
                      match: {url: recallStatus}
                      schema:
                        short: Identify if allredy recalled if RF status is "Under ekspedering"
                        index: 185
                        elements:
                          url:
                            pattern: {type: Uri, value: recallStatus}
                            index: 186
                          value:
                            choices: [valueBoolean]
                            index: 188
                          valueBoolean: {type: boolean, choiceOf: value, index: 189}
                    recallReason:
                      match: {url: recallReason}
                      schema:
                        short: Reason given for recalling resept
                        index: 190
                        elements:
                          url:
                            pattern: {type: Uri, value: recallReason}
                            index: 191
                          value:
                            choices: [valueCodeableConcept]
                            index: 193
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 194}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7500'}
                                    index: 195
              url:
                pattern: {type: Uri, value: rfstatus}
                index: 196
              value:
                choices: []
                index: 198
        itemgroup:
          match: {url: itemgroup}
          schema:
            short: Type of resept
            _required: true
            index: 118
            elements:
              url:
                pattern: {type: Uri, value: itemgroup}
                index: 119
              value:
                choices: [valueCodeableConcept]
                index: 121
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 122}
              value[x]:
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7402'}
                        index: 123
        numberofpackages:
          match: {url: numberofpackages}
          schema:
            short: Number of packages
            index: 124
            elements:
              url:
                pattern: {type: Uri, value: numberofpackages}
                index: 125
              value:
                choices: [valueDecimal]
                index: 127
              valueDecimal: {type: decimal, choiceOf: value, index: 128}
        earliestdispence:
          match: {url: earliestdispence}
          schema:
            short: Earliest delivery
            index: 103
            elements:
              url:
                pattern: {type: Uri, value: earliestdispence}
                index: 104
              value:
                choices: [valueDateTime]
                index: 106
              valueDateTime: {type: dateTime, choiceOf: value, index: 107}
        reimbursementparagraph:
          match: {url: reimbursementparagraph}
          schema:
            short: Refund paragraph
            index: 129
            elements:
              url:
                pattern: {type: Uri, value: reimbursementparagraph}
                index: 130
              value:
                choices: [valueCodeableConcept]
                index: 132
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 133}
              value[x]:
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7427'}
                        index: 134
        plomedicationmanagement:
          match: {url: plomedicationmanagement}
          schema:
            short: Patient treated by the municipal
            index: 140
            elements:
              url:
                pattern: {type: Uri, value: plomedicationmanagement}
                index: 141
              value:
                choices: [valueString]
                index: 143
              valueString: {type: string, choiceOf: value, index: 144}
        indoctorsname:
          match: {url: indoctorsname}
          schema:
            short: Resept in doctors name
            index: 41
            elements:
              url:
                pattern: {type: Uri, value: indoctorsname}
                index: 42
              value:
                choices: [valueBoolean]
                index: 44
              valueBoolean: {type: boolean, choiceOf: value, index: 45}
        reimbursementcode:
          match: {url: reimbursementcode}
          schema:
            short: Refund code
            index: 135
            elements:
              url:
                pattern: {type: Uri, value: reimbursementcode}
                index: 136
              value:
                choices: [valueCodeableConcept]
                index: 138
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 139}
        reit:
          match: {url: reit}
          schema:
            short: Number of deliveries
            index: 145
            elements:
              url:
                pattern: {type: Uri, value: reit}
                index: 146
              value:
                choices: [valueString]
                index: 148
              valueString: {type: string, choiceOf: value, index: 149}
        createeresept:
          match: {url: createeresept}
          schema:
            short: Identifes if SFM should generate resept
            index: 333
            elements:
              url:
                pattern: {type: Uri, value: createeresept}
                index: 334
              value:
                choices: [valueBoolean]
                index: 336
              valueBoolean: {type: boolean, choiceOf: value, index: 337}
        conscription:
          match: {url: conscription}
          schema:
            short: Concriptive soldier
            index: 16
            elements:
              url:
                pattern: {type: Uri, value: conscription}
                index: 17
              value:
                choices: [valueBoolean]
                index: 19
              valueBoolean: {type: boolean, choiceOf: value, index: 20}
        lockedresept:
          match: {url: lockedresept}
          schema:
            short: Locked resept
            index: 113
            elements:
              url:
                pattern: {type: Uri, value: lockedresept}
                index: 114
              value:
                choices: [valueBoolean]
                index: 116
              valueBoolean: {type: boolean, choiceOf: value, index: 117}
        typeresept:
          match: {url: typeresept}
          schema:
            index: 363
            elements:
              url:
                pattern: {type: Uri, value: typeresept}
                index: 364
              value:
                choices: [valueCodeableConcept]
                index: 366
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 367}
              value[x]:
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7491'}
                        index: 368
                      code: {index: 369}
                      display: {index: 370}
                    required: [display, system, code]
        expirationdate:
          match: {url: expirationdate}
          schema:
            short: Last date the pharmacy can deliver
            index: 6
            elements:
              url:
                pattern: {type: Uri, value: expirationdate}
                index: 7
              value:
                choices: [valueDate]
                index: 9
              valueDate: {type: date, choiceOf: value, index: 10}
        speciality:
          match: {url: speciality}
          schema:
            short: Speciality
            index: 51
            elements:
              url:
                pattern: {type: Uri, value: speciality}
                index: 52
              value:
                choices: [valueCodeableConcept]
                index: 54
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 55}
              value[x]:
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7426'}
                        index: 56
  url:
    pattern: {type: Uri, value: 'http://ehelse.no/fhir/StructureDefinition/sfm-reseptamendment'}
    index: 371
  value:
    choices: []
    index: 373
package_version: 1.0.1
extensions:
  amount:
    url: amount
    short: Amount of drug prescribed
    index: 150
    elements:
      url:
        pattern: {type: Uri, value: amount}
        index: 151
      value:
        choices: [valueQuantity]
        index: 153
      valueQuantity: {type: Quantity, choiceOf: value, index: 154}
      value[x]:
        elements:
          system:
            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7452'}
            index: 155
  recallinfo:
    url: recallinfo
    short: Action information for SFM
    index: 204
    extensions:
      recallId:
        url: recallId
        short: pointer to releated prescription
        index: 206
        elements:
          url:
            pattern: {type: Uri, value: recallId}
            index: 207
          value:
            choices: [valueString]
            index: 209
          valueString: {type: string, choiceOf: value, index: 210}
      text:
        url: text
        index: 211
        elements:
          url:
            pattern: {type: Uri, value: text}
            index: 212
          value:
            choices: [valueString]
            index: 214
          valueString: {type: string, choiceOf: value, index: 215}
      recallcode:
        url: recallcode
        _required: true
        index: 216
        elements:
          url:
            pattern: {type: Uri, value: recallcode}
            index: 217
          value:
            choices: [valueCodeableConcept]
            index: 219
          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 220}
          value[x]:
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7500'}
                    index: 221
      recalledby:
        url: recalledby
        index: 222
        elements:
          url:
            pattern: {type: Uri, value: recalledby}
            index: 223
          value:
            choices: [valueReference]
            index: 225
          valueReference:
            type: Reference
            choiceOf: value
            refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-PractitionerRole']
            index: 226
    elements:
      extension:
        index: 205
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            recallId:
              match: {url: recallId}
              schema:
                short: pointer to releated prescription
                index: 206
                elements:
                  url:
                    pattern: {type: Uri, value: recallId}
                    index: 207
                  value:
                    choices: [valueString]
                    index: 209
                  valueString: {type: string, choiceOf: value, index: 210}
            text:
              match: {url: text}
              schema:
                index: 211
                elements:
                  url:
                    pattern: {type: Uri, value: text}
                    index: 212
                  value:
                    choices: [valueString]
                    index: 214
                  valueString: {type: string, choiceOf: value, index: 215}
            recallcode:
              match: {url: recallcode}
              schema:
                _required: true
                index: 216
                elements:
                  url:
                    pattern: {type: Uri, value: recallcode}
                    index: 217
                  value:
                    choices: [valueCodeableConcept]
                    index: 219
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 220}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7500'}
                            index: 221
            recalledby:
              match: {url: recalledby}
              schema:
                index: 222
                elements:
                  url:
                    pattern: {type: Uri, value: recalledby}
                    index: 223
                  value:
                    choices: [valueReference]
                    index: 225
                  valueReference:
                    type: Reference
                    choiceOf: value
                    refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-PractitionerRole']
                    index: 226
      url:
        pattern: {type: Uri, value: recallinfo}
        index: 227
      value:
        choices: []
        index: 229
  slvApplication:
    url: slvApplication
    index: 338
    extensions:
      reason:
        url: reason
        _required: true
        index: 340
        elements:
          url:
            pattern: {type: Uri, value: reason}
            index: 341
          value:
            choices: [valueString]
            index: 343
          valueString: {type: string, choiceOf: value, index: 344}
      manufacturer:
        url: manufacturer
        _required: true
        index: 345
        elements:
          url:
            pattern: {type: Uri, value: manufacturer}
            index: 346
          value:
            choices: [valueString]
            index: 348
          valueString: {type: string, choiceOf: value, index: 349}
      directApplication:
        url: directApplication
        _required: true
        index: 350
        elements:
          url:
            pattern: {type: Uri, value: directApplication}
            index: 351
          value:
            choices: [valueBoolean]
            index: 353
          valueBoolean: {type: boolean, choiceOf: value, index: 354}
    elements:
      extension:
        index: 339
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            reason:
              match: {url: reason}
              schema:
                _required: true
                index: 340
                elements:
                  url:
                    pattern: {type: Uri, value: reason}
                    index: 341
                  value:
                    choices: [valueString]
                    index: 343
                  valueString: {type: string, choiceOf: value, index: 344}
            manufacturer:
              match: {url: manufacturer}
              schema:
                _required: true
                index: 345
                elements:
                  url:
                    pattern: {type: Uri, value: manufacturer}
                    index: 346
                  value:
                    choices: [valueString]
                    index: 348
                  valueString: {type: string, choiceOf: value, index: 349}
            directApplication:
              match: {url: directApplication}
              schema:
                _required: true
                index: 350
                elements:
                  url:
                    pattern: {type: Uri, value: directApplication}
                    index: 351
                  value:
                    choices: [valueBoolean]
                    index: 353
                  valueBoolean: {type: boolean, choiceOf: value, index: 354}
      url:
        pattern: {type: Uri, value: slvApplication}
        index: 355
      value:
        choices: []
        index: 357
  guardiantransparencyreservation:
    url: guardiantransparencyreservation
    short: Guardian transperecy reservation
    index: 31
    elements:
      url:
        pattern: {type: Uri, value: guardiantransparencyreservation}
        index: 32
      value:
        choices: [valueBoolean]
        index: 34
      valueBoolean: {type: boolean, choiceOf: value, index: 35}
  refnum:
    url: refnum
    short: Reference number
    index: 46
    elements:
      url:
        pattern: {type: Uri, value: refnum}
        index: 47
      value:
        choices: [valueString]
        index: 49
      valueString: {type: string, choiceOf: value, index: 50}
  ownpractice:
    url: ownpractice
    short: Identify that the medication is for use in own organisation
    index: 36
    elements:
      url:
        pattern: {type: Uri, value: ownpractice}
        index: 37
      value:
        choices: [valueBoolean]
        index: 39
      valueBoolean: {type: boolean, choiceOf: value, index: 40}
  ereseptdosing:
    url: ereseptdosing
    short: Dosing as given by e-resept
    index: 230
    extensions:
      starttime:
        url: starttime
        short: The time a dosing period starts
        index: 232
        elements:
          url:
            pattern: {type: Uri, value: starttime}
            index: 233
          value:
            choices: [valueDate, valueDateTime]
            index: 235
          valueDate: {type: date, choiceOf: value, index: 236}
          valueDateTime: {type: dateTime, choiceOf: value, index: 237}
      endtime:
        url: endtime
        short: The time a dosing period ends
        index: 238
        elements:
          url:
            pattern: {type: Uri, value: endtime}
            index: 239
          value:
            choices: [valueDate, valueDateTime]
            index: 241
          valueDate: {type: date, choiceOf: value, index: 242}
          valueDateTime: {type: dateTime, choiceOf: value, index: 243}
      dosingrule:
        url: dosingrule
        short: Rule related to dosing
        index: 244
        extensions:
          dosebasedon:
            url: dosebasedon
            short: Coding identifying what dose is based on
            _required: true
            index: 246
            elements:
              url:
                pattern: {type: Uri, value: dosebasedon}
                index: 247
              value:
                choices: [valueCodeableConcept]
                index: 249
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 250}
              value[x]:
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9080'}
                        index: 251
          text:
            url: text
            index: 252
            elements:
              url:
                pattern: {type: Uri, value: text}
                index: 253
              value:
                choices: [valueString]
                index: 255
              valueString: {type: string, choiceOf: value, index: 256}
        elements:
          extension:
            index: 245
            slicing:
              rules: open
              discriminator:
              - {path: url, type: value}
              min: null
              slices:
                dosebasedon:
                  match: {url: dosebasedon}
                  schema:
                    short: Coding identifying what dose is based on
                    _required: true
                    index: 246
                    elements:
                      url:
                        pattern: {type: Uri, value: dosebasedon}
                        index: 247
                      value:
                        choices: [valueCodeableConcept]
                        index: 249
                      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 250}
                      value[x]:
                        elements:
                          coding:
                            elements:
                              system:
                                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9080'}
                                index: 251
                text:
                  match: {url: text}
                  schema:
                    index: 252
                    elements:
                      url:
                        pattern: {type: Uri, value: text}
                        index: 253
                      value:
                        choices: [valueString]
                        index: 255
                      valueString: {type: string, choiceOf: value, index: 256}
          url:
            pattern: {type: Uri, value: dosingrule}
            index: 257
          value:
            choices: []
            index: 259
      repeatingdosage:
        url: repeatingdosage
        _required: true
        index: 260
        extensions:
          amount:
            url: amount
            _required: true
            index: 262
            elements:
              url:
                pattern: {type: Uri, value: amount}
                index: 263
              value:
                choices: [valueQuantity]
                index: 265
              valueQuantity: {type: Quantity, choiceOf: value, index: 266}
              value[x]:
                elements:
                  system:
                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7480'}
                    index: 267
          interval:
            url: interval
            short: how often to repeat dosing
            index: 268
            elements:
              url:
                pattern: {type: Uri, value: interval}
                index: 269
              value:
                choices: [valueQuantity]
                index: 271
              valueQuantity: {type: Quantity, choiceOf: value, index: 272}
              value[x]:
                elements:
                  system:
                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                    index: 273
          infusionspeed:
            url: infusionspeed
            index: 274
            extensions:
              volum:
                url: volum
                _required: true
                index: 276
                elements:
                  url:
                    pattern: {type: Uri, value: volum}
                    index: 277
                  value:
                    choices: [valueQuantity]
                    index: 279
                  valueQuantity: {type: Quantity, choiceOf: value, index: 280}
              timeunit:
                url: timeunit
                _required: true
                index: 281
                elements:
                  url:
                    pattern: {type: Uri, value: timeunit}
                    index: 282
                  value:
                    choices: [valueCodeableConcept]
                    index: 284
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 285}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                            index: 286
            elements:
              extension:
                index: 275
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    volum:
                      match: {url: volum}
                      schema:
                        _required: true
                        index: 276
                        elements:
                          url:
                            pattern: {type: Uri, value: volum}
                            index: 277
                          value:
                            choices: [valueQuantity]
                            index: 279
                          valueQuantity: {type: Quantity, choiceOf: value, index: 280}
                    timeunit:
                      match: {url: timeunit}
                      schema:
                        _required: true
                        index: 281
                        elements:
                          url:
                            pattern: {type: Uri, value: timeunit}
                            index: 282
                          value:
                            choices: [valueCodeableConcept]
                            index: 284
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 285}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                                    index: 286
              url:
                pattern: {type: Uri, value: infusionspeed}
                index: 287
              value:
                choices: []
                index: 289
          time:
            url: time
            index: 290
            elements:
              url:
                pattern: {type: Uri, value: time}
                index: 291
              value:
                choices: [valueTime]
                index: 293
              valueTime: {type: time, choiceOf: value, index: 294}
          timerange:
            url: timerange
            index: 295
            elements:
              url:
                pattern: {type: Uri, value: timerange}
                index: 296
              value:
                choices: [valueCodeableConcept]
                index: 298
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 299}
              value[x]:
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.8325'}
                        index: 300
          accurate:
            url: accurate
            _required: true
            index: 301
            elements:
              url:
                pattern: {type: Uri, value: accurate}
                index: 302
              value:
                choices: [valueBoolean]
                index: 304
              valueBoolean: {type: boolean, choiceOf: value, index: 305}
          dosingsequence:
            url: dosingsequence
            index: 306
            extensions:
              weekdays:
                url: weekdays
                index: 308
                elements:
                  url:
                    pattern: {type: Uri, value: weekdays}
                    index: 309
                  value:
                    choices: [valueCodeableConcept]
                    index: 311
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 312}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9082'}
                            index: 313
              dayson:
                url: dayson
                index: 314
                elements:
                  url:
                    pattern: {type: Uri, value: dayson}
                    index: 315
                  value:
                    choices: [valueInteger]
                    index: 317
                  valueInteger: {type: integer, choiceOf: value, index: 318}
              daysoff:
                url: daysoff
                index: 319
                elements:
                  url:
                    pattern: {type: Uri, value: daysoff}
                    index: 320
                  value:
                    choices: [valueInteger]
                    index: 322
                  valueInteger: {type: integer, choiceOf: value, index: 323}
            elements:
              extension:
                index: 307
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    weekdays:
                      match: {url: weekdays}
                      schema:
                        index: 308
                        elements:
                          url:
                            pattern: {type: Uri, value: weekdays}
                            index: 309
                          value:
                            choices: [valueCodeableConcept]
                            index: 311
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 312}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9082'}
                                    index: 313
                    dayson:
                      match: {url: dayson}
                      schema:
                        index: 314
                        elements:
                          url:
                            pattern: {type: Uri, value: dayson}
                            index: 315
                          value:
                            choices: [valueInteger]
                            index: 317
                          valueInteger: {type: integer, choiceOf: value, index: 318}
                    daysoff:
                      match: {url: daysoff}
                      schema:
                        index: 319
                        elements:
                          url:
                            pattern: {type: Uri, value: daysoff}
                            index: 320
                          value:
                            choices: [valueInteger]
                            index: 322
                          valueInteger: {type: integer, choiceOf: value, index: 323}
              url:
                pattern: {type: Uri, value: dosingsequence}
                index: 324
              value:
                choices: []
                index: 326
        elements:
          extension:
            index: 261
            slicing:
              rules: open
              discriminator:
              - {path: url, type: value}
              min: null
              slices:
                amount:
                  match: {url: amount}
                  schema:
                    _required: true
                    index: 262
                    elements:
                      url:
                        pattern: {type: Uri, value: amount}
                        index: 263
                      value:
                        choices: [valueQuantity]
                        index: 265
                      valueQuantity: {type: Quantity, choiceOf: value, index: 266}
                      value[x]:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7480'}
                            index: 267
                interval:
                  match: {url: interval}
                  schema:
                    short: how often to repeat dosing
                    index: 268
                    elements:
                      url:
                        pattern: {type: Uri, value: interval}
                        index: 269
                      value:
                        choices: [valueQuantity]
                        index: 271
                      valueQuantity: {type: Quantity, choiceOf: value, index: 272}
                      value[x]:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                            index: 273
                infusionspeed:
                  match: {url: infusionspeed}
                  schema:
                    index: 274
                    extensions:
                      volum:
                        url: volum
                        _required: true
                        index: 276
                        elements:
                          url:
                            pattern: {type: Uri, value: volum}
                            index: 277
                          value:
                            choices: [valueQuantity]
                            index: 279
                          valueQuantity: {type: Quantity, choiceOf: value, index: 280}
                      timeunit:
                        url: timeunit
                        _required: true
                        index: 281
                        elements:
                          url:
                            pattern: {type: Uri, value: timeunit}
                            index: 282
                          value:
                            choices: [valueCodeableConcept]
                            index: 284
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 285}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                                    index: 286
                    elements:
                      extension:
                        index: 275
                        slicing:
                          rules: open
                          discriminator:
                          - {path: url, type: value}
                          min: null
                          slices:
                            volum:
                              match: {url: volum}
                              schema:
                                _required: true
                                index: 276
                                elements:
                                  url:
                                    pattern: {type: Uri, value: volum}
                                    index: 277
                                  value:
                                    choices: [valueQuantity]
                                    index: 279
                                  valueQuantity: {type: Quantity, choiceOf: value, index: 280}
                            timeunit:
                              match: {url: timeunit}
                              schema:
                                _required: true
                                index: 281
                                elements:
                                  url:
                                    pattern: {type: Uri, value: timeunit}
                                    index: 282
                                  value:
                                    choices: [valueCodeableConcept]
                                    index: 284
                                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 285}
                                  value[x]:
                                    elements:
                                      coding:
                                        elements:
                                          system:
                                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                                            index: 286
                      url:
                        pattern: {type: Uri, value: infusionspeed}
                        index: 287
                      value:
                        choices: []
                        index: 289
                time:
                  match: {url: time}
                  schema:
                    index: 290
                    elements:
                      url:
                        pattern: {type: Uri, value: time}
                        index: 291
                      value:
                        choices: [valueTime]
                        index: 293
                      valueTime: {type: time, choiceOf: value, index: 294}
                timerange:
                  match: {url: timerange}
                  schema:
                    index: 295
                    elements:
                      url:
                        pattern: {type: Uri, value: timerange}
                        index: 296
                      value:
                        choices: [valueCodeableConcept]
                        index: 298
                      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 299}
                      value[x]:
                        elements:
                          coding:
                            elements:
                              system:
                                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.8325'}
                                index: 300
                accurate:
                  match: {url: accurate}
                  schema:
                    _required: true
                    index: 301
                    elements:
                      url:
                        pattern: {type: Uri, value: accurate}
                        index: 302
                      value:
                        choices: [valueBoolean]
                        index: 304
                      valueBoolean: {type: boolean, choiceOf: value, index: 305}
                dosingsequence:
                  match: {url: dosingsequence}
                  schema:
                    index: 306
                    extensions:
                      weekdays:
                        url: weekdays
                        index: 308
                        elements:
                          url:
                            pattern: {type: Uri, value: weekdays}
                            index: 309
                          value:
                            choices: [valueCodeableConcept]
                            index: 311
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 312}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9082'}
                                    index: 313
                      dayson:
                        url: dayson
                        index: 314
                        elements:
                          url:
                            pattern: {type: Uri, value: dayson}
                            index: 315
                          value:
                            choices: [valueInteger]
                            index: 317
                          valueInteger: {type: integer, choiceOf: value, index: 318}
                      daysoff:
                        url: daysoff
                        index: 319
                        elements:
                          url:
                            pattern: {type: Uri, value: daysoff}
                            index: 320
                          value:
                            choices: [valueInteger]
                            index: 322
                          valueInteger: {type: integer, choiceOf: value, index: 323}
                    elements:
                      extension:
                        index: 307
                        slicing:
                          rules: open
                          discriminator:
                          - {path: url, type: value}
                          min: null
                          slices:
                            weekdays:
                              match: {url: weekdays}
                              schema:
                                index: 308
                                elements:
                                  url:
                                    pattern: {type: Uri, value: weekdays}
                                    index: 309
                                  value:
                                    choices: [valueCodeableConcept]
                                    index: 311
                                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 312}
                                  value[x]:
                                    elements:
                                      coding:
                                        elements:
                                          system:
                                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9082'}
                                            index: 313
                            dayson:
                              match: {url: dayson}
                              schema:
                                index: 314
                                elements:
                                  url:
                                    pattern: {type: Uri, value: dayson}
                                    index: 315
                                  value:
                                    choices: [valueInteger]
                                    index: 317
                                  valueInteger: {type: integer, choiceOf: value, index: 318}
                            daysoff:
                              match: {url: daysoff}
                              schema:
                                index: 319
                                elements:
                                  url:
                                    pattern: {type: Uri, value: daysoff}
                                    index: 320
                                  value:
                                    choices: [valueInteger]
                                    index: 322
                                  valueInteger: {type: integer, choiceOf: value, index: 323}
                      url:
                        pattern: {type: Uri, value: dosingsequence}
                        index: 324
                      value:
                        choices: []
                        index: 326
          url:
            pattern: {type: Uri, value: repeatingdosage}
            index: 327
          value:
            choices: []
            index: 329
    elements:
      extension:
        index: 231
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            starttime:
              match: {url: starttime}
              schema:
                short: The time a dosing period starts
                index: 232
                elements:
                  url:
                    pattern: {type: Uri, value: starttime}
                    index: 233
                  value:
                    choices: [valueDate, valueDateTime]
                    index: 235
                  valueDate: {type: date, choiceOf: value, index: 236}
                  valueDateTime: {type: dateTime, choiceOf: value, index: 237}
            endtime:
              match: {url: endtime}
              schema:
                short: The time a dosing period ends
                index: 238
                elements:
                  url:
                    pattern: {type: Uri, value: endtime}
                    index: 239
                  value:
                    choices: [valueDate, valueDateTime]
                    index: 241
                  valueDate: {type: date, choiceOf: value, index: 242}
                  valueDateTime: {type: dateTime, choiceOf: value, index: 243}
            dosingrule:
              match: {url: dosingrule}
              schema:
                short: Rule related to dosing
                index: 244
                extensions:
                  dosebasedon:
                    url: dosebasedon
                    short: Coding identifying what dose is based on
                    _required: true
                    index: 246
                    elements:
                      url:
                        pattern: {type: Uri, value: dosebasedon}
                        index: 247
                      value:
                        choices: [valueCodeableConcept]
                        index: 249
                      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 250}
                      value[x]:
                        elements:
                          coding:
                            elements:
                              system:
                                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9080'}
                                index: 251
                  text:
                    url: text
                    index: 252
                    elements:
                      url:
                        pattern: {type: Uri, value: text}
                        index: 253
                      value:
                        choices: [valueString]
                        index: 255
                      valueString: {type: string, choiceOf: value, index: 256}
                elements:
                  extension:
                    index: 245
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        dosebasedon:
                          match: {url: dosebasedon}
                          schema:
                            short: Coding identifying what dose is based on
                            _required: true
                            index: 246
                            elements:
                              url:
                                pattern: {type: Uri, value: dosebasedon}
                                index: 247
                              value:
                                choices: [valueCodeableConcept]
                                index: 249
                              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 250}
                              value[x]:
                                elements:
                                  coding:
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9080'}
                                        index: 251
                        text:
                          match: {url: text}
                          schema:
                            index: 252
                            elements:
                              url:
                                pattern: {type: Uri, value: text}
                                index: 253
                              value:
                                choices: [valueString]
                                index: 255
                              valueString: {type: string, choiceOf: value, index: 256}
                  url:
                    pattern: {type: Uri, value: dosingrule}
                    index: 257
                  value:
                    choices: []
                    index: 259
            repeatingdosage:
              match: {url: repeatingdosage}
              schema:
                _required: true
                index: 260
                extensions:
                  amount:
                    url: amount
                    _required: true
                    index: 262
                    elements:
                      url:
                        pattern: {type: Uri, value: amount}
                        index: 263
                      value:
                        choices: [valueQuantity]
                        index: 265
                      valueQuantity: {type: Quantity, choiceOf: value, index: 266}
                      value[x]:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7480'}
                            index: 267
                  interval:
                    url: interval
                    short: how often to repeat dosing
                    index: 268
                    elements:
                      url:
                        pattern: {type: Uri, value: interval}
                        index: 269
                      value:
                        choices: [valueQuantity]
                        index: 271
                      valueQuantity: {type: Quantity, choiceOf: value, index: 272}
                      value[x]:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                            index: 273
                  infusionspeed:
                    url: infusionspeed
                    index: 274
                    extensions:
                      volum:
                        url: volum
                        _required: true
                        index: 276
                        elements:
                          url:
                            pattern: {type: Uri, value: volum}
                            index: 277
                          value:
                            choices: [valueQuantity]
                            index: 279
                          valueQuantity: {type: Quantity, choiceOf: value, index: 280}
                      timeunit:
                        url: timeunit
                        _required: true
                        index: 281
                        elements:
                          url:
                            pattern: {type: Uri, value: timeunit}
                            index: 282
                          value:
                            choices: [valueCodeableConcept]
                            index: 284
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 285}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                                    index: 286
                    elements:
                      extension:
                        index: 275
                        slicing:
                          rules: open
                          discriminator:
                          - {path: url, type: value}
                          min: null
                          slices:
                            volum:
                              match: {url: volum}
                              schema:
                                _required: true
                                index: 276
                                elements:
                                  url:
                                    pattern: {type: Uri, value: volum}
                                    index: 277
                                  value:
                                    choices: [valueQuantity]
                                    index: 279
                                  valueQuantity: {type: Quantity, choiceOf: value, index: 280}
                            timeunit:
                              match: {url: timeunit}
                              schema:
                                _required: true
                                index: 281
                                elements:
                                  url:
                                    pattern: {type: Uri, value: timeunit}
                                    index: 282
                                  value:
                                    choices: [valueCodeableConcept]
                                    index: 284
                                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 285}
                                  value[x]:
                                    elements:
                                      coding:
                                        elements:
                                          system:
                                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                                            index: 286
                      url:
                        pattern: {type: Uri, value: infusionspeed}
                        index: 287
                      value:
                        choices: []
                        index: 289
                  time:
                    url: time
                    index: 290
                    elements:
                      url:
                        pattern: {type: Uri, value: time}
                        index: 291
                      value:
                        choices: [valueTime]
                        index: 293
                      valueTime: {type: time, choiceOf: value, index: 294}
                  timerange:
                    url: timerange
                    index: 295
                    elements:
                      url:
                        pattern: {type: Uri, value: timerange}
                        index: 296
                      value:
                        choices: [valueCodeableConcept]
                        index: 298
                      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 299}
                      value[x]:
                        elements:
                          coding:
                            elements:
                              system:
                                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.8325'}
                                index: 300
                  accurate:
                    url: accurate
                    _required: true
                    index: 301
                    elements:
                      url:
                        pattern: {type: Uri, value: accurate}
                        index: 302
                      value:
                        choices: [valueBoolean]
                        index: 304
                      valueBoolean: {type: boolean, choiceOf: value, index: 305}
                  dosingsequence:
                    url: dosingsequence
                    index: 306
                    extensions:
                      weekdays:
                        url: weekdays
                        index: 308
                        elements:
                          url:
                            pattern: {type: Uri, value: weekdays}
                            index: 309
                          value:
                            choices: [valueCodeableConcept]
                            index: 311
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 312}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9082'}
                                    index: 313
                      dayson:
                        url: dayson
                        index: 314
                        elements:
                          url:
                            pattern: {type: Uri, value: dayson}
                            index: 315
                          value:
                            choices: [valueInteger]
                            index: 317
                          valueInteger: {type: integer, choiceOf: value, index: 318}
                      daysoff:
                        url: daysoff
                        index: 319
                        elements:
                          url:
                            pattern: {type: Uri, value: daysoff}
                            index: 320
                          value:
                            choices: [valueInteger]
                            index: 322
                          valueInteger: {type: integer, choiceOf: value, index: 323}
                    elements:
                      extension:
                        index: 307
                        slicing:
                          rules: open
                          discriminator:
                          - {path: url, type: value}
                          min: null
                          slices:
                            weekdays:
                              match: {url: weekdays}
                              schema:
                                index: 308
                                elements:
                                  url:
                                    pattern: {type: Uri, value: weekdays}
                                    index: 309
                                  value:
                                    choices: [valueCodeableConcept]
                                    index: 311
                                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 312}
                                  value[x]:
                                    elements:
                                      coding:
                                        elements:
                                          system:
                                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9082'}
                                            index: 313
                            dayson:
                              match: {url: dayson}
                              schema:
                                index: 314
                                elements:
                                  url:
                                    pattern: {type: Uri, value: dayson}
                                    index: 315
                                  value:
                                    choices: [valueInteger]
                                    index: 317
                                  valueInteger: {type: integer, choiceOf: value, index: 318}
                            daysoff:
                              match: {url: daysoff}
                              schema:
                                index: 319
                                elements:
                                  url:
                                    pattern: {type: Uri, value: daysoff}
                                    index: 320
                                  value:
                                    choices: [valueInteger]
                                    index: 322
                                  valueInteger: {type: integer, choiceOf: value, index: 323}
                      url:
                        pattern: {type: Uri, value: dosingsequence}
                        index: 324
                      value:
                        choices: []
                        index: 326
                elements:
                  extension:
                    index: 261
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        amount:
                          match: {url: amount}
                          schema:
                            _required: true
                            index: 262
                            elements:
                              url:
                                pattern: {type: Uri, value: amount}
                                index: 263
                              value:
                                choices: [valueQuantity]
                                index: 265
                              valueQuantity: {type: Quantity, choiceOf: value, index: 266}
                              value[x]:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7480'}
                                    index: 267
                        interval:
                          match: {url: interval}
                          schema:
                            short: how often to repeat dosing
                            index: 268
                            elements:
                              url:
                                pattern: {type: Uri, value: interval}
                                index: 269
                              value:
                                choices: [valueQuantity]
                                index: 271
                              valueQuantity: {type: Quantity, choiceOf: value, index: 272}
                              value[x]:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                                    index: 273
                        infusionspeed:
                          match: {url: infusionspeed}
                          schema:
                            index: 274
                            extensions:
                              volum:
                                url: volum
                                _required: true
                                index: 276
                                elements:
                                  url:
                                    pattern: {type: Uri, value: volum}
                                    index: 277
                                  value:
                                    choices: [valueQuantity]
                                    index: 279
                                  valueQuantity: {type: Quantity, choiceOf: value, index: 280}
                              timeunit:
                                url: timeunit
                                _required: true
                                index: 281
                                elements:
                                  url:
                                    pattern: {type: Uri, value: timeunit}
                                    index: 282
                                  value:
                                    choices: [valueCodeableConcept]
                                    index: 284
                                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 285}
                                  value[x]:
                                    elements:
                                      coding:
                                        elements:
                                          system:
                                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                                            index: 286
                            elements:
                              extension:
                                index: 275
                                slicing:
                                  rules: open
                                  discriminator:
                                  - {path: url, type: value}
                                  min: null
                                  slices:
                                    volum:
                                      match: {url: volum}
                                      schema:
                                        _required: true
                                        index: 276
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: volum}
                                            index: 277
                                          value:
                                            choices: [valueQuantity]
                                            index: 279
                                          valueQuantity: {type: Quantity, choiceOf: value, index: 280}
                                    timeunit:
                                      match: {url: timeunit}
                                      schema:
                                        _required: true
                                        index: 281
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: timeunit}
                                            index: 282
                                          value:
                                            choices: [valueCodeableConcept]
                                            index: 284
                                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 285}
                                          value[x]:
                                            elements:
                                              coding:
                                                elements:
                                                  system:
                                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9088'}
                                                    index: 286
                              url:
                                pattern: {type: Uri, value: infusionspeed}
                                index: 287
                              value:
                                choices: []
                                index: 289
                        time:
                          match: {url: time}
                          schema:
                            index: 290
                            elements:
                              url:
                                pattern: {type: Uri, value: time}
                                index: 291
                              value:
                                choices: [valueTime]
                                index: 293
                              valueTime: {type: time, choiceOf: value, index: 294}
                        timerange:
                          match: {url: timerange}
                          schema:
                            index: 295
                            elements:
                              url:
                                pattern: {type: Uri, value: timerange}
                                index: 296
                              value:
                                choices: [valueCodeableConcept]
                                index: 298
                              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 299}
                              value[x]:
                                elements:
                                  coding:
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.8325'}
                                        index: 300
                        accurate:
                          match: {url: accurate}
                          schema:
                            _required: true
                            index: 301
                            elements:
                              url:
                                pattern: {type: Uri, value: accurate}
                                index: 302
                              value:
                                choices: [valueBoolean]
                                index: 304
                              valueBoolean: {type: boolean, choiceOf: value, index: 305}
                        dosingsequence:
                          match: {url: dosingsequence}
                          schema:
                            index: 306
                            extensions:
                              weekdays:
                                url: weekdays
                                index: 308
                                elements:
                                  url:
                                    pattern: {type: Uri, value: weekdays}
                                    index: 309
                                  value:
                                    choices: [valueCodeableConcept]
                                    index: 311
                                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 312}
                                  value[x]:
                                    elements:
                                      coding:
                                        elements:
                                          system:
                                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9082'}
                                            index: 313
                              dayson:
                                url: dayson
                                index: 314
                                elements:
                                  url:
                                    pattern: {type: Uri, value: dayson}
                                    index: 315
                                  value:
                                    choices: [valueInteger]
                                    index: 317
                                  valueInteger: {type: integer, choiceOf: value, index: 318}
                              daysoff:
                                url: daysoff
                                index: 319
                                elements:
                                  url:
                                    pattern: {type: Uri, value: daysoff}
                                    index: 320
                                  value:
                                    choices: [valueInteger]
                                    index: 322
                                  valueInteger: {type: integer, choiceOf: value, index: 323}
                            elements:
                              extension:
                                index: 307
                                slicing:
                                  rules: open
                                  discriminator:
                                  - {path: url, type: value}
                                  min: null
                                  slices:
                                    weekdays:
                                      match: {url: weekdays}
                                      schema:
                                        index: 308
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: weekdays}
                                            index: 309
                                          value:
                                            choices: [valueCodeableConcept]
                                            index: 311
                                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 312}
                                          value[x]:
                                            elements:
                                              coding:
                                                elements:
                                                  system:
                                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9082'}
                                                    index: 313
                                    dayson:
                                      match: {url: dayson}
                                      schema:
                                        index: 314
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: dayson}
                                            index: 315
                                          value:
                                            choices: [valueInteger]
                                            index: 317
                                          valueInteger: {type: integer, choiceOf: value, index: 318}
                                    daysoff:
                                      match: {url: daysoff}
                                      schema:
                                        index: 319
                                        elements:
                                          url:
                                            pattern: {type: Uri, value: daysoff}
                                            index: 320
                                          value:
                                            choices: [valueInteger]
                                            index: 322
                                          valueInteger: {type: integer, choiceOf: value, index: 323}
                              url:
                                pattern: {type: Uri, value: dosingsequence}
                                index: 324
                              value:
                                choices: []
                                index: 326
                  url:
                    pattern: {type: Uri, value: repeatingdosage}
                    index: 327
                  value:
                    choices: []
                    index: 329
      url:
        pattern: {type: Uri, value: ereseptdosing}
        index: 330
      value:
        choices: []
        index: 332
  lastchanged:
    url: lastchanged
    index: 358
    elements:
      url:
        pattern: {type: Uri, value: lastchanged}
        index: 359
      value:
        choices: [valueDateTime]
        index: 361
      valueDateTime: {type: dateTime, choiceOf: value, index: 362}
  dispatchrequest:
    url: dispatchrequest
    short: Request for delivery to patient
    index: 57
    extensions:
      condition:
        url: condition
        short: Maps to e-resept Vilkar
        _required: true
        index: 59
        elements:
          url:
            pattern: {type: Uri, value: condition}
            index: 60
          value:
            choices: [valueBoolean]
            index: 62
          valueBoolean: {type: boolean, choiceOf: value, index: 63}
      metod:
        url: metod
        short: Maps to e-resept MetodeEkspedering
        _required: true
        index: 64
        elements:
          url:
            pattern: {type: Uri, value: metod}
            index: 65
          value:
            choices: [valueCodeableConcept]
            index: 67
          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 68}
          value[x]:
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7404'}
                    index: 69
      organization:
        url: organization
        short: Maps to e-resept Utleverer
        _required: true
        index: 70
        elements:
          url:
            pattern: {type: Uri, value: organization}
            index: 71
          value:
            choices: [valueString]
            index: 73
          valueString: {type: string, choiceOf: value, index: 74}
      contactperson:
        url: contactperson
        short: Maps to e-resept Kontaktperson
        _required: true
        index: 75
        elements:
          url:
            pattern: {type: Uri, value: contactperson}
            index: 76
          value:
            choices: [valueString]
            index: 78
          valueString: {type: string, choiceOf: value, index: 79}
      note:
        url: note
        short: Maps to e-resept Merkand in Ekspederingsanmodning
        index: 80
        elements:
          url:
            pattern: {type: Uri, value: note}
            index: 81
          value:
            choices: [valueString]
            index: 83
          valueString: {type: string, choiceOf: value, index: 84}
      orgnum:
        url: orgnum
        short: Maps to e-resept OrgNrUtleverer
        _required: true
        index: 85
        elements:
          url:
            pattern: {type: Uri, value: orgnum}
            index: 86
          value:
            choices: [valueString]
            index: 88
          valueString: {type: string, choiceOf: value, index: 89}
      orgname:
        url: orgname
        short: Maps to e-resept UtlevererNavn
        _required: true
        index: 90
        elements:
          url:
            pattern: {type: Uri, value: orgname}
            index: 91
          value:
            choices: [valueString]
            index: 93
          valueString: {type: string, choiceOf: value, index: 94}
      address:
        url: address
        index: 95
        elements:
          url:
            pattern: {type: Uri, value: address}
            index: 96
          value:
            choices: [valueAddress]
            index: 98
          valueAddress: {type: Address, choiceOf: value, index: 99}
    elements:
      extension:
        index: 58
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            condition:
              match: {url: condition}
              schema:
                short: Maps to e-resept Vilkar
                _required: true
                index: 59
                elements:
                  url:
                    pattern: {type: Uri, value: condition}
                    index: 60
                  value:
                    choices: [valueBoolean]
                    index: 62
                  valueBoolean: {type: boolean, choiceOf: value, index: 63}
            metod:
              match: {url: metod}
              schema:
                short: Maps to e-resept MetodeEkspedering
                _required: true
                index: 64
                elements:
                  url:
                    pattern: {type: Uri, value: metod}
                    index: 65
                  value:
                    choices: [valueCodeableConcept]
                    index: 67
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 68}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7404'}
                            index: 69
            organization:
              match: {url: organization}
              schema:
                short: Maps to e-resept Utleverer
                _required: true
                index: 70
                elements:
                  url:
                    pattern: {type: Uri, value: organization}
                    index: 71
                  value:
                    choices: [valueString]
                    index: 73
                  valueString: {type: string, choiceOf: value, index: 74}
            contactperson:
              match: {url: contactperson}
              schema:
                short: Maps to e-resept Kontaktperson
                _required: true
                index: 75
                elements:
                  url:
                    pattern: {type: Uri, value: contactperson}
                    index: 76
                  value:
                    choices: [valueString]
                    index: 78
                  valueString: {type: string, choiceOf: value, index: 79}
            note:
              match: {url: note}
              schema:
                short: Maps to e-resept Merkand in Ekspederingsanmodning
                index: 80
                elements:
                  url:
                    pattern: {type: Uri, value: note}
                    index: 81
                  value:
                    choices: [valueString]
                    index: 83
                  valueString: {type: string, choiceOf: value, index: 84}
            orgnum:
              match: {url: orgnum}
              schema:
                short: Maps to e-resept OrgNrUtleverer
                _required: true
                index: 85
                elements:
                  url:
                    pattern: {type: Uri, value: orgnum}
                    index: 86
                  value:
                    choices: [valueString]
                    index: 88
                  valueString: {type: string, choiceOf: value, index: 89}
            orgname:
              match: {url: orgname}
              schema:
                short: Maps to e-resept UtlevererNavn
                _required: true
                index: 90
                elements:
                  url:
                    pattern: {type: Uri, value: orgname}
                    index: 91
                  value:
                    choices: [valueString]
                    index: 93
                  valueString: {type: string, choiceOf: value, index: 94}
            address:
              match: {url: address}
              schema:
                index: 95
                elements:
                  url:
                    pattern: {type: Uri, value: address}
                    index: 96
                  value:
                    choices: [valueAddress]
                    index: 98
                  valueAddress: {type: Address, choiceOf: value, index: 99}
      url:
        pattern: {type: Uri, value: dispatchrequest}
        index: 100
      value:
        choices: []
        index: 102
  dischargedhospital:
    url: dischargedhospital
    short: Discharged from hosptital
    index: 108
    elements:
      url:
        pattern: {type: Uri, value: dischargedhospital}
        index: 109
      value:
        choices: [valueBoolean]
        index: 111
      valueBoolean: {type: boolean, choiceOf: value, index: 112}
  festUpdate:
    url: festUpdate
    short: Version of FEST
    index: 11
    elements:
      url:
        pattern: {type: Uri, value: festUpdate}
        index: 12
      value:
        choices: [valueDateTime]
        index: 14
      valueDateTime: {type: dateTime, choiceOf: value, index: 15}
  reseptdate:
    url: reseptdate
    short: Date the resept was signed
    index: 1
    elements:
      url:
        pattern: {type: Uri, value: reseptdate}
        index: 2
      value:
        choices: [valueDate]
        index: 4
      valueDate: {type: date, choiceOf: value, index: 5}
  dssn:
    url: dssn
    index: 156
    elements:
      url:
        pattern: {type: Uri, value: dssn}
        index: 157
      value:
        choices: [valueString]
        index: 159
      valueString: {type: string, choiceOf: value, index: 160}
  freecard:
    url: freecard
    short: Refund card
    index: 26
    elements:
      url:
        pattern: {type: Uri, value: freecard}
        index: 27
      value:
        choices: [valueBoolean]
        index: 29
      valueBoolean: {type: boolean, choiceOf: value, index: 30}
  helfoapplication:
    url: helfoapplication
    short: Individuel application to Helfo
    index: 21
    elements:
      url:
        pattern: {type: Uri, value: helfoapplication}
        index: 22
      value:
        choices: [valueBoolean]
        index: 24
      valueBoolean: {type: boolean, choiceOf: value, index: 25}
  note:
    url: note
    short: Note from prescriber to pharmacy
    index: 199
    elements:
      url:
        pattern: {type: Uri, value: note}
        index: 200
      value:
        choices: [valueString]
        index: 202
      valueString: {type: string, choiceOf: value, index: 203}
  rfstatus:
    url: rfstatus
    short: Identifies if in RF and status in RF
    index: 161
    extensions:
      status:
        url: status
        short: Status for prescription in RF
        index: 163
        elements:
          url:
            pattern: {type: Uri, value: status}
            index: 164
          value:
            choices: [valueCodeableConcept]
            index: 166
          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 167}
          value[x]:
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7408'}
                    index: 168
      nameDispenser:
        url: nameDispenser
        short: Dispenser that are dispensing product
        index: 169
        elements:
          url:
            pattern: {type: Uri, value: nameDispenser}
            index: 170
          value:
            choices: [valueString]
            index: 172
          valueString: {type: string, choiceOf: value, index: 173}
      sentSLVDate:
        url: sentSLVDate
        short: Date when application sent to SLV
        index: 174
        elements:
          url:
            pattern: {type: Uri, value: sentSLVDate}
            index: 175
          value:
            choices: [valueDate]
            index: 177
          valueDate: {type: date, choiceOf: value, index: 178}
      statusSlvApplication:
        url: statusSlvApplication
        short: Status regarding SLV application
        index: 179
        elements:
          url:
            pattern: {type: Uri, value: statusSlvApplication}
            index: 180
          value:
            choices: [valueCodeableConcept]
            index: 182
          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 183}
          value[x]:
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7436'}
                    index: 184
      recallStatus:
        url: recallStatus
        short: Identify if allredy recalled if RF status is "Under ekspedering"
        index: 185
        elements:
          url:
            pattern: {type: Uri, value: recallStatus}
            index: 186
          value:
            choices: [valueBoolean]
            index: 188
          valueBoolean: {type: boolean, choiceOf: value, index: 189}
      recallReason:
        url: recallReason
        short: Reason given for recalling resept
        index: 190
        elements:
          url:
            pattern: {type: Uri, value: recallReason}
            index: 191
          value:
            choices: [valueCodeableConcept]
            index: 193
          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 194}
          value[x]:
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7500'}
                    index: 195
    elements:
      extension:
        index: 162
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            status:
              match: {url: status}
              schema:
                short: Status for prescription in RF
                index: 163
                elements:
                  url:
                    pattern: {type: Uri, value: status}
                    index: 164
                  value:
                    choices: [valueCodeableConcept]
                    index: 166
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 167}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7408'}
                            index: 168
            nameDispenser:
              match: {url: nameDispenser}
              schema:
                short: Dispenser that are dispensing product
                index: 169
                elements:
                  url:
                    pattern: {type: Uri, value: nameDispenser}
                    index: 170
                  value:
                    choices: [valueString]
                    index: 172
                  valueString: {type: string, choiceOf: value, index: 173}
            sentSLVDate:
              match: {url: sentSLVDate}
              schema:
                short: Date when application sent to SLV
                index: 174
                elements:
                  url:
                    pattern: {type: Uri, value: sentSLVDate}
                    index: 175
                  value:
                    choices: [valueDate]
                    index: 177
                  valueDate: {type: date, choiceOf: value, index: 178}
            statusSlvApplication:
              match: {url: statusSlvApplication}
              schema:
                short: Status regarding SLV application
                index: 179
                elements:
                  url:
                    pattern: {type: Uri, value: statusSlvApplication}
                    index: 180
                  value:
                    choices: [valueCodeableConcept]
                    index: 182
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 183}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7436'}
                            index: 184
            recallStatus:
              match: {url: recallStatus}
              schema:
                short: Identify if allredy recalled if RF status is "Under ekspedering"
                index: 185
                elements:
                  url:
                    pattern: {type: Uri, value: recallStatus}
                    index: 186
                  value:
                    choices: [valueBoolean]
                    index: 188
                  valueBoolean: {type: boolean, choiceOf: value, index: 189}
            recallReason:
              match: {url: recallReason}
              schema:
                short: Reason given for recalling resept
                index: 190
                elements:
                  url:
                    pattern: {type: Uri, value: recallReason}
                    index: 191
                  value:
                    choices: [valueCodeableConcept]
                    index: 193
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 194}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7500'}
                            index: 195
      url:
        pattern: {type: Uri, value: rfstatus}
        index: 196
      value:
        choices: []
        index: 198
  itemgroup:
    url: itemgroup
    short: Type of resept
    _required: true
    index: 118
    elements:
      url:
        pattern: {type: Uri, value: itemgroup}
        index: 119
      value:
        choices: [valueCodeableConcept]
        index: 121
      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 122}
      value[x]:
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7402'}
                index: 123
  numberofpackages:
    url: numberofpackages
    short: Number of packages
    index: 124
    elements:
      url:
        pattern: {type: Uri, value: numberofpackages}
        index: 125
      value:
        choices: [valueDecimal]
        index: 127
      valueDecimal: {type: decimal, choiceOf: value, index: 128}
  earliestdispence:
    url: earliestdispence
    short: Earliest delivery
    index: 103
    elements:
      url:
        pattern: {type: Uri, value: earliestdispence}
        index: 104
      value:
        choices: [valueDateTime]
        index: 106
      valueDateTime: {type: dateTime, choiceOf: value, index: 107}
  reimbursementparagraph:
    url: reimbursementparagraph
    short: Refund paragraph
    index: 129
    elements:
      url:
        pattern: {type: Uri, value: reimbursementparagraph}
        index: 130
      value:
        choices: [valueCodeableConcept]
        index: 132
      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 133}
      value[x]:
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7427'}
                index: 134
  plomedicationmanagement:
    url: plomedicationmanagement
    short: Patient treated by the municipal
    index: 140
    elements:
      url:
        pattern: {type: Uri, value: plomedicationmanagement}
        index: 141
      value:
        choices: [valueString]
        index: 143
      valueString: {type: string, choiceOf: value, index: 144}
  indoctorsname:
    url: indoctorsname
    short: Resept in doctors name
    index: 41
    elements:
      url:
        pattern: {type: Uri, value: indoctorsname}
        index: 42
      value:
        choices: [valueBoolean]
        index: 44
      valueBoolean: {type: boolean, choiceOf: value, index: 45}
  reimbursementcode:
    url: reimbursementcode
    short: Refund code
    index: 135
    elements:
      url:
        pattern: {type: Uri, value: reimbursementcode}
        index: 136
      value:
        choices: [valueCodeableConcept]
        index: 138
      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 139}
  reit:
    url: reit
    short: Number of deliveries
    index: 145
    elements:
      url:
        pattern: {type: Uri, value: reit}
        index: 146
      value:
        choices: [valueString]
        index: 148
      valueString: {type: string, choiceOf: value, index: 149}
  createeresept:
    url: createeresept
    short: Identifes if SFM should generate resept
    index: 333
    elements:
      url:
        pattern: {type: Uri, value: createeresept}
        index: 334
      value:
        choices: [valueBoolean]
        index: 336
      valueBoolean: {type: boolean, choiceOf: value, index: 337}
  conscription:
    url: conscription
    short: Concriptive soldier
    index: 16
    elements:
      url:
        pattern: {type: Uri, value: conscription}
        index: 17
      value:
        choices: [valueBoolean]
        index: 19
      valueBoolean: {type: boolean, choiceOf: value, index: 20}
  lockedresept:
    url: lockedresept
    short: Locked resept
    index: 113
    elements:
      url:
        pattern: {type: Uri, value: lockedresept}
        index: 114
      value:
        choices: [valueBoolean]
        index: 116
      valueBoolean: {type: boolean, choiceOf: value, index: 117}
  typeresept:
    url: typeresept
    index: 363
    elements:
      url:
        pattern: {type: Uri, value: typeresept}
        index: 364
      value:
        choices: [valueCodeableConcept]
        index: 366
      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 367}
      value[x]:
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7491'}
                index: 368
              code: {index: 369}
              display: {index: 370}
            required: [display, system, code]
  expirationdate:
    url: expirationdate
    short: Last date the pharmacy can deliver
    index: 6
    elements:
      url:
        pattern: {type: Uri, value: expirationdate}
        index: 7
      value:
        choices: [valueDate]
        index: 9
      valueDate: {type: date, choiceOf: value, index: 10}
  speciality:
    url: speciality
    short: Speciality
    index: 51
    elements:
      url:
        pattern: {type: Uri, value: speciality}
        index: 52
      value:
        choices: [valueCodeableConcept]
        index: 54
      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 55}
      value[x]:
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7426'}
                index: 56
class: extension
kind: complex-type
url: http://ehelse.no/fhir/StructureDefinition/sfm-reseptamendment
base: http://hl7.org/fhir/StructureDefinition/Extension
version: '1.0'