---
title: MEDITECH CS NPR utility program for changing the length of a multiple field
description: How to truncate (remove spaces) a MEDITECH NPR multiple field value (Chid Segment with multiple lines). 
---

[IPeople Blog](https://blog.ipeople.com)

# [MEDITECH CS NPR utility program for changing the length of a multiple field](https://blog.ipeople.com/meditech-cs-npr-utility-program-for-changing-the-length-of-a-multiple-field)

 Written by [Gary](https://blog.ipeople.com/author/gary) | May 2, 2022 5:00:00 AM

Sometimes a field from a Child Segment has multiple lines of free text. Let's assume the length of the Child Field is 40 but you would like it to be reformatted to print a length of 30.  The following example converts the text stored in the Child Segment into another table called /GMOD but with a length of 30 instead of 40.  Then the contents of /GMOD are put into an MV Array:

` ""^TEMP,`  
` DO{>/GMOD[TEMP]^TEMP ""^/GMOD[TEMP]},`  
` %NUR.TOOL.BOX.convert.length(^@Root(@child.segment),^/GMOD,30),`  
` ""^TEMP,`  
` DO{+(/GMOD[TEMP],LN)^TEMP "  "_LN^@Z.rpt.mv[MARKER,TEMP,FIELD]}`

MARKER would need to be replaced with whatever value used in your MV Line Attribute.  FIELD would be replaced by the field # on your Report Picture.

[View full post](https://blog.ipeople.com/meditech-cs-npr-utility-program-for-changing-the-length-of-a-multiple-field)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Gary"
  },
  "dateModified" : "2022-10-06T04:43:50.453Z",
  "datePublished" : "2022-05-02T05:00:00Z",
  "headline" : "MEDITECH CS NPR utility program for changing the length of a multiple field",
  "image" : {
    "@type" : "ImageObject",
    "height" : 60,
    "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
    "width" : 60
  },
  "mainEntityOfPage" : "https://blog.ipeople.com/meditech-cs-npr-utility-program-for-changing-the-length-of-a-multiple-field",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60.0,
      "url" : "https://cdn2.hubspot.net/hubfs/6612510/iplogo-teal-dark%20blue.png",
      "width" : 240.31374
    },
    "name" : "IPeople Blog"
  }
}
```